iridium_walletd sendFusionTransaction method

The sendFusionTransaction method allows you to send a fusion transaction, by taking funds from selected addresses and transferring them to the destination address.

back to methods summary

If there aren't any outputs that can be optimized, sendFusionTransaction will return an error. You can use the estimateFusion method to check the outputs, available for the optimization.

Input:

ArgumentMandatoryDescriptionFormatExample
threshold Yes Value that determines which outputs will be optimized1)uint641000000
anonymity Yes Privacy level (mixin). Level 6 is the higher.uint643
addresses No Array of string2)array
destinationAddress No An address that the optimized funds will be sent to3)stringir2qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs

Note: if container contains only 1 address, destinationAddress field can be left empty and the funds are going to be sent to this address.

Note: if addresses field contains only 1 address, destinationAddress can be left empty and the funds are going to be sent to this address.

Note: in the rest of the cases, destinationAddress field is mandatory and must contain an address.

Output:

ArgumentDescriptionFormatExample
transactionHashHash of the sent transaction.string93faedc8b8a80a084a02dfeffd163934746c2163f23a1b6022b32423ec9ae08f

Input Example:

{  
  'params':{  
     'anonymity':6,
     'threshold':1000000,
     'addresses':[  
        '27eJo2S9eVo5N2G9zyjkqNBZPR6d2qvVD122vQMGAhcrjZjLu8nsMqk3c4KQ9iMJ4AV4fpBMccmjfJ4cu7uprKLNFX4qWNh',
        '24JtjYsLdSJKNNDCPGdMco5NbMBLqVWZ5ZiW5vzjXQUrLpMs1MRnfTQ3c4KQ9iMJ4AV4fpBMccmjfJ4cu7uprKLNFXHARwn',
        '21fYPCpaM3ochSSyLnhDAhgw1yV5WPb5c1BfyX5eidbMGyEPgnbSgJW3c4KQ9iMJ4AV4fpBMccmjfJ4cu7uprKLNFX8VQMv'
     ],
     'destinationAddress':'27eJo2S9eVo5N2G9zyjkqNBZPR6d2qvVD122vQMGAhcrjZjLu8nsMqk3c4KQ9iMJ4AV4fpBMccmjfJ4cu7uprKLNFX4qWNh'
  },
  'jsonrpc':'2.0',
  'id':'test',
  'method':'sendFusionTransaction'
}

Return value example:

{  
  'jsonrpc':'2.0',
  'id':'test',
  'result':{  
     'transactionHash':'93faedc8b8a80a084a02dfeffd163934746c2163f23a1b6022b32423ec9ae08f'
  }
}

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
3)
Valid and existing in this container address