Skip to content

way to spend certain amount of bitcoin including the fee #57

@ha1331

Description

@ha1331

The problem I'm trying to solve here is the following: If I have an application where the users have certain balances, I would wan't to have a way for them to withdraw that balance without me having to pay the cost of the operation. So, say user has 1btc and he/she decides to transfer these funds to where ever. Now when this transaction is happening, the user gets 1btc but I end up paying the fee. What I would like to have happen here is the following: My wallets balance is reduced by 1btc and the user is going to receive what ever amount is left after the fee has been payed.

I could do what some apps do and have their balance go to negative (the amount of fee payed is reduced from onsite balance after the transaction has been sent), but I don't like that. I could also have a set withdrawal fee, percentage or similar arrangement, but I would like to not do that either. Ideally I could charge a fee on the service I provide and advertise that my service doesn't charge extra for withdrawals, you just pay the costs that are enforced by the network.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions