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

Feature request: Set sat/byte miner fees for tx0, and pool mining fees #5

Open
Technifocal opened this issue Jun 24, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@Technifocal
Copy link

I'd like to see two new features added to the tx0 creation API call.

  1. sat/byte value that affects the actual tx0 transaction
  2. An overfund by value that configures how much more than the poolsize each UTXO should be valued at. This value should be sanity checked against the pool's mustMixBalanceMin and mustMixBalanceMax.

For example, on the tx0 API call, two new parameters could be added:

feeSatPerByte

and

mixUtxoOverspend

and an API query (in bash for the lowest fee) might look like:

OVERSPEND="$(($(http --body 'http://127.0.0.1:8899/rest/pools' "apiKey:${API_KEY}" | jq '.pools[] | select(.denomination == 1000000) | .mustMixBalanceMin')-1000000))"
http "http://localhost:8899/rest/utxos/${hash}:${index}/tx0" "apiKey:${API_KEY}" 'poolId=0.01btc' 'feeSatPerByte=2' "mixUtxoOverspend=${OVERSPEND}"
@zeroleak zeroleak added the enhancement New feature or request label Jul 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants