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.

back to methods summary

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:

ArgumentMandatoryDescriptionFormatExample
threshold Yes Value that determines which outputs will be optimized1)uint641000000
addresses No Array of string2)array

Output:

ArgumentDescriptionFormatExample
totalOutputCountTotal number of unspent outputs of the specified addresses.uint641000
fusionReadyCountNumber of outputs that can be optimized.uint6450

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
  }
}

back to methods summary


1)
Only the outputs, lesser than the threshold value, will be included into a fusion transaction.
2)
where each string is an address to take the funds from.