e445c15e5bee
Get maximum spendable
Returns the maximum amount that can be spent with a single transaction on the wallet.
The maximum spendable amount can differ from a wallet’s total balance. A transaction can only use up to 200 unspents. Wallets that have more than 200 unspents cannot spend the full balance in one transaction. Additionally, the value returned for the maximum spendable amount accounts for the current fee level by deducting the estimated fees. The amount will only be calculated based on the unspents that fit the parameters passed.
Path parameters
A cryptocurrency or token ticker symbol.
The wallet ID.
Query parameters
Enforces minConfirms on change inputs
Maximum number of results to return. If the result set is truncated, use the nextBatchPrevId value to get the next batch.
Maximum value of each unspent in base units (e.g. satoshis). For doge, only string is allowed.
Minimum number of confirmations for the collected inputs. Only applies to external unspents. Use enforceMinConfirmsForChange to filter change as well.
Minimum block height of the unspents
Minimum value of each unspent in base units (e.g. satoshis). For doge, only string is allowed.
(BTC only) The number of blocks required to confirm a transaction. You can use numBlocks to estimate the fee rate by targeting confirmation within a given number of blocks. If both feeRate and numBlocks are absent, the transaction defaults to 2 blocks for confirmation.
Note: The maxFeeRate limits the fee rate generated by numBlocks.
[ "003f688cc349f1fca8ac5ffa21671ca911b6ef351085c60733ed8c2ebf162cb8:2" ]
Response
OK
Example response
{
"coin": "btc",
"maximumSpendable": "19948310"
}