Skip to main content
Version: Develop (2.2.1.506 · 16e457b)

transfer

Make new payment transaction from the wallet

URL: http:://127.0.0.1:11211/json_rpc

Request:

{
"id": 0,
"jsonrpc": "2.0",
"method": "transfer",
"params": {
"comment": "Thanks for the coffe",
"destinations": [{
"address": "ZxBvJDuQjMG9R2j4WnYUhBYNrwZPwuyXrC7FHdVmWqaESgowDvgfWtiXeNGu8Px9B24pkmjsA39fzSSiEQG1ekB225ZnrMTBp",
"amount": 10000000000000,
"asset_id": "cc608f59f8080e2fbfe3c8c80eb6e6a953d47cf2d6aebd345bada3a1cab99852"
}],
"fee": 10000000000,
"mixin": 15,
"out_ids_to_spend": [10,15,305],
"service_entries": [{
"body": "dcfd7e055a6a3043ea3541a571a57a63e25dcc64e4a270f14fa9a58ac5dbec85dcfd7e055a6a3043ea3541a571a57a63e25dcc64e4a270f14fa9a58ac5dbec85",
"flags": 0,
"instruction": "K",
"security": "d8f6e37f28a632c06b0b3466db1b9d2d1b36a580ee35edfd971dc1423bc412a5",
"service_id": "C"
}],
"service_entries_permanent": true
}
}

Request description:

    "comment": Text comment that is displayed in UI
"destinations": List of destinations
"address": Destination address
"amount": Amount to transfer to destination
"asset_id": Asset id to transfer
"fee": Fee to be paid on behalf of sender's wallet(paid in native coins)
"mixin": Specifies number of mixins (decoys) that would be used to create input, actual for pre-Zarcanum outputs, for post-Zarcanum outputs instead of this option, number that is defined by network hard rules (15+)
"out_ids_to_spend": [optional] List of output IDs that should only be used for this transfer. If empty or not present -- no restriction (default).
"service_entries": Service entries that might be used by different apps that works on top of Zano network, not part of consensus
"body": Hex-encoded body of the attachment
"flags": Flags that help wallet to automatically process some properties of the attachment(combination of TX_SERVICE_ATTACHMENT_ENCRYPT_BODY=1, TX_SERVICE_ATTACHMENT_DEFLATE_BODY=2, TX_SERVICE_ATTACHMENT_ENCRYPT_BODY_ISOLATE_AUDITABLE=4,TX_SERVICE_ATTACHMENT_ENCRYPT_ADD_PROOF=8 )
"instruction": Instruction that make sence for this particular service
"security": Hex-encoded public key of the owner, optional
"service_id": Service ID, identificator that diferent one service from another
"service_entries_permanent": Point to wallet that service_entries should be placed to 'extra' section of transaction(which won't be pruned after checkpoints)

Response:

{
"id": 0,
"jsonrpc": "2.0",
"result": {
"tx_hash": "01220e8304d46b940a86e383d55ca5887b34f158a7365bbcdd17c5a305814a93",
"tx_size": 1234,
"tx_unsigned_hex": "e383d55ca5887b34f158a7365bbcd01220e8304d46b940a86e383d55ca5887b34f158a7365bbcdd17c5a305814a9301220e8304d46b940a86e383d55ca5887b34f158a7365bbcdd17c5a305814a9301220e8304d46b940a86e383d55ca5887b34f158a7365bbcdd17c5a305814a93",
"used_out_ids": [10,15,305]
}
}

Response description:

    "tx_hash": Has of the generated transaction(if succeded)
"tx_size": Transaction size in bytes
"tx_unsigned_hex": Has unsigned tx blob in hex encoding
"used_out_ids": Output IDs that were actually spent.

Auto-doc built with: 2.2.1.506[16e457b-develop]