-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I'd like to see two new features added to the tx0 creation API call.
sat/bytevalue that affects the actual tx0 transaction- An
overfund byvalue that configures how much more than the poolsize each UTXO should be valued at. This value should be sanity checked against the pool'smustMixBalanceMinandmustMixBalanceMax.
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}"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request