Build Split Txo Transaction

This is a convenience method for building a transaction that will split a txo into multiple output txos to the origin account.

Parameters

Required ParamPurposeRequirements

txo_id

The TXO on which to perform this action

TXO must exist in the wallet

output_values

The output values of the generated TXOs

Optional ParamPurposeRequirements

destination_subaddress_index

fee

tombstone_block

Example

{
  "method": "build_split_txo_transaction",
  "params": {
    "txo_id": "a8c9c7acb96cf4ad9154eec9384c09f2c75a340b441924847fe5f60a41805bde",
    "output_values": ["1000000000", "1000000000", "1240275839", "1257284399532"],
    "destination_subaddress_index": "4",
    "fee": "1000000000",
    "tombstone_block": "150000"
  },
  "jsonrpc": "2.0",
  "id": 1
}

If an account is not fully-synced, you may see the following error message:

{
  "error": "Connection(Operation { error: TransactionValidation(ContainsSpentKeyImage), total_delay: 0ns, tries: 1 })"
}

Call check_balance for the account, and note the synced_blocks value. If that value is less than the local_block_height value, then your TXOs may not all be updated to their spent status.

Last updated