iridium_walletd createDelayedTransaction method
The createDelayedTransaction method creates a delayed transaction. Such transactions are not sent into the network automatically and should be pushed using sendDelayedTransaction method method
Input:
Argument | Mandatory | Description | Format | Example |
---|---|---|---|---|
addresses | No | Array of strings, where each string is an address | array | |
transfers | Yes | Array of address,amount | array | “amount”: 10000000000,“address”: “ir2qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs” |
fee | Yes | Transaction fee1) | uint64 | 5000 |
unlockTime | No | Height of the block until which transaction is locked. | uint64 | 0 |
anonymity | Yes | Privacy level (mixin). Level 6 is the higher. | uint64 | 3 |
extra | No | String of variable length. Can contain A-Z, 0-9 characters. | string | |
paymentId | No | payment_id | string | somePaymentId |
changeAddress | No | Valid and existing in this container address. | string | ir2qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs |
Note: if container contains only 1 address, changeAddress field can be left empty and the change is going to be sent to this address
Note: if addresses field contains only 1 address, changeAddress can be left empty and the change is going to be sent to this address
Note: in the rest of the cases, changeAddress field is mandatory and must contain an address.
Note: outputs that were used for this transactions will be locked until the transaction is sent or cancelled
Output:
Argument | Description | Format | Example |
---|---|---|---|
transactionHash | Hash of the sent transaction. | string | 93faedc8b8a80a084a02dfeffd163934746c2163f23a1b6022b32423ec9ae08f |
Input Example:
{ 'params':{ 'anonymity':0, 'fee':5000, 'unlockTime':0, 'paymentId':'somePaymentId', 'addresses':[ 'ir2qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs', 'ir3iyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGsiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs', 'ir4qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiEq8BRSRyHnahcKJrPRZg8rHtkRCEq8BRSRyHnahcKJrP' ], 'transfers':[ { 'amount':123456, 'address':'ir1qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs' }, { 'amount':234567, 'address':'ir2qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs' }, { 'amount':345678, 'address':'ir3qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs' } ], 'changeAddress':'ir4qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs' }, 'jsonrpc':'2.0', 'id':'test', 'method':'sendTransaction' }
Output Example:
{ 'jsonrpc':'2.0', 'id':'test', 'result':{ 'transactionHash':'93faedc8b8a80a084a02dfeffd163934746c2163f23a1b6022b32423ec9ae08f' } }
1)
Minimal fee in Iridium is 0.0005 IRD. This parameter should be specified in minimal available IRD units. For example, if your fee is 0.0005 IRD, you should pass it as 5000