iridium_walletd estimateFusion method
The estimateFusion method counts the number of unspent outputs of the specified addresses and returns how many of those outputs can be optimized.
This method is used to understand if a fusion transaction can be created. If fusionReadyCount returns a value = 0, then a fusion transaction cannot be created.
Input:
Argument | Mandatory | Description | Format | Example |
---|---|---|---|---|
threshold | Yes | Value that determines which outputs will be optimized1) | uint64 | 1000000 |
addresses | No | Array of string2) | array |
Output:
Argument | Description | Format | Example |
---|---|---|---|
totalOutputCount | Total number of unspent outputs of the specified addresses. | uint64 | 1000 |
fusionReadyCount | Number of outputs that can be optimized. | uint64 | 50 |
Input example:
{ 'params':{ 'threshold':1000000, 'addresses':[ 'ir2qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs', 'ir3iyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGsiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs', 'ir4qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiEq8BRSRyHnahcKJrPRZg8rHtkRCEq8BRSRyHnahcKJrP' ] }, 'jsonrpc':'2.0', 'id':'test', 'method':'estimateFusion' }
Output example:
{ 'jsonrpc':'2.0', 'id':'test', 'result':{ 'totalOutputCount':1000, 'fusionReadyCount':50 } }