placeAskOrder
Place an asset order. POST only. Refer to Create Transaction Request for common parameters.
Request:
requestType is placeAskOrder
asset is the asset ID of the asset being ordered
quantityQNT is the amount (in QNT) of the asset being ordered
priceNQT is the bid/ask price (in NQT)
Response: Refer to Create Transaction Response. The transaction ID is also the order ID.
Example:
Request:
http://localhost:801/BEAM?requestType=placeAskOrder&asset=3702027329806229573&quantityQNT=1&priceNQT=100000000&secretPhrase=IWontTellYou&feeNQT=100000000&deadline=1
Response:
{ “signatureHash”: “3358f546ce7136ca478692102d0b526f80b4ca83eb78e90d15813b9636b654e5”, “unsignedTransactionBytes”: “0213c6cc47070100a61325eec9e83d7cac55544b8eca8ea8034559bafb5834b8a5d3b6d4efb85f120000000000000000000000000000000000e1f505*”, “transactionJSON”: { “senderPublicKey”: “a61325eec9e83d7cac55544b8eca8ea8034559bafb5834b8a5d3b6d4efb85f12”, “signature”: “48d14f308d26380e4dfa26b296c8728eef04af8704acff60f4d8bef28a126701ea29878753d2106a16228cfc3829e8f3d6a2e5baf739dbd0460fd45cff1241e0”, “feeNQT”: “100000000”, “type”: 2, “fullHash”: “229f52765195110e0e096b81b91f04186be14ada7e29949841ee30e37b655775”, “version”: 1, “ecBlockId”: “6656096466494440810”, “signatureHash”: “3358f546ce7136ca478692102d0b526f80b4ca83eb78e90d15813b9636b654e5”, “attachment”: { “quantityQNT”: “1”, “priceNQT”: “100000000”, “asset”: “3702027329806229573”, “version.AskOrderPlacement”: 1 }, “senderRS”: “BEAM-7X92-29W5-7LQA-4V8CH”, “subtype”: 3, “amountNQT”: “0”, “sender”: “16922903237994405232”, “ecBlockHeight”: 504963, “deadline”: 1, “transaction”: “1013755568245088034”, “timestamp”: 122145990, “height”: 2147483647 }, “broadcasted”: false, “requestProcessingTime”: 3, “transactionBytes”: “0213c6cc47070100a61325eec9e83d7cac55544b8eca8ea8034559bafb5834b8a5d3b6d4efb85f120000000000000000000000000000000000e1f505*”, “fullHash”: “229f52765195110e0e096b81b91f04186be14ada7e29949841ee30e37b655775”, “transaction”: “1013755568245088034” }
Last updated