Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple spend transaction fee #122

Open
haysquareA opened this issue Mar 10, 2023 · 1 comment
Open

Simple spend transaction fee #122

haysquareA opened this issue Mar 10, 2023 · 1 comment

Comments

@haysquareA
Copy link

haysquareA commented Mar 10, 2023

Hello there
Please I would like to know how to use my own transaction fee using simple spend api, send from BTC wallet address to another wallet address
Note: I'm already using simple send to transact but the transaction fee is too high .
Thanks in advance

@frier17
Copy link
Contributor

frier17 commented Jul 22, 2023

Hi. The default transaction fee for simple_spend uses a 'high' value (this allow for transactions to be confirmed faster). I worked on your issue and will be adding it as a Pull Request. The changes I made allows for a preference parameter for the simple_spend to be called with 'low', 'medium', 'zero' or 'high' values. This will allow users to select their preferred fees. The 'zero' option though theoretically allowed may lead to transactions not being added. I consider it impractical for commercial uses but okay for testing purposes only - I may be wrong. However, if you want fine grained control you will need to generate your transaction, sign your transactions, and broadcast it as shown in the blockcypher documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants