transferAsset
Transfer a quantity of an asset from one account to another. POST only. Refer to Create Transaction Request for common parameters.
Request:
requestType is transferAsset
recipient is the recipient account ID
recipientPublicKey is the public key of the recipient account (optional, enhances security of a new account)
asset is the ID of the asset being transferred
quantityQNT is the amount (in QNT) of the asset being transferred
Response: Refer to Create Transaction Response. The transaction ID is also the transfered asset ID.
Example:
Request:
http://localhost:801/BEAM?requestType=transferAsset&recipient=17001464071916561838&asset=3702027329806229573&quantityQNT=1&secretPhrase=IWontTellYou&feeNQT=100000000&deadline=1&broadcast=true
Response:
{ “signatureHash”: “59456e26081926b27c38ca46d574e4a6373953b932e8368f131f7bc86ffc3aa9”, “unsignedTransactionBytes”: “021143d147070100a61325eec9e83d7cac55544b8eca8ea8034559bafb5834b8a5d3b6d4efb85f12ae2527ec7e55f1eb000000000000000000e1f505*”, “transactionJSON”: { “senderPublicKey”: “a61325eec9e83d7cac55544b8eca8ea8034559bafb5834b8a5d3b6d4efb85f12”, “signature”: “b5f33599a52e5e4e56ad5c316cd6f6ced8ebe9e9931222aaee30407570ede60031a068b6a89714fca851b486e8d8c2509ef46b3e0e1ef44c819cbff5b0bb78c4”, “feeNQT”: “100000000”, “type”: 2, “fullHash”: “3b7d9f5b998ce795a3300ed1e6df1ba8fe467b137e2f2c662c9149a5b0f878d9”, “version”: 1, “ecBlockId”: “6974740076508916530”, “signatureHash”: “59456e26081926b27c38ca46d574e4a6373953b932e8368f131f7bc86ffc3aa9”, “attachment”: { “version.AssetTransfer”: 1, “quantityQNT”: “1”, “asset”: “3702027329806229573” }, “senderRS”: “BEAM-7X92-29W5-MY9A-GUKQP”, “subtype”: 1, “amountNQT”: “0”, “sender”: “16922903237994405232”, “recipientRS”: “BEAM-7X92-29W5-8AMM-GPCWR”, “recipient”: “17001464071916561838”, “ecBlockHeight”: 504968, “deadline”: 1, “transaction”: “10801756821566487867”, “timestamp”: 122147139, “height”: 2147483647 }, “broadcasted”: true, “requestProcessingTime”: 5, “transactionBytes”: “021143d147070100a61325eec9e83d7cac55544b8eca8ea8034559bafb5834b8a5d3b6d4efb85f12ae2527ec7e55f1eb000000000000000000e1f505*”, “fullHash”: “3b7d9f5b998ce795a3300ed1e6df1ba8fe467b137e2f2c662c9149a5b0f878d9”, “transaction”: “10801756821566487867” }
Last updated