issueAsset
Create an asset on the exchange. POST only. Refer to Create Transaction Request for common parameters.
Request:
requestType is issueAsset
name is the name of the asset
description is the url-encoded description of the asset in UTF-8 with a maximum length of 1000 bytes (optional)
quantityQNT is the total amount (in QNT) of the asset in existence
decimals is the number of decimal places used by the asset (optional, zero default)
Response: Refer to Create Transaction Response. The transaction ID is also the asset ID.
Example: Refer to Issue Asset example.
Issue Asset
Note: Actual data is not used in this example.
Request:
http://localhost:801/BEAM?requestType=issueAsset&publicKey=57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c&name=SecretCoin&description=This+is+SecretCoin&quantityQNT=100&deadline=60&feeNQT=100000000000
Response:
{ “unsignedTransactionBytes”: “021095e5da013c0073080c6a224062660184f10ebb7fb431d459364a12403…”, “transactionJSON”: { “senderPublicKey”: “73080c6a224062660184f10ebb7fb431d459364a12403320c7f601f9d75cc547”, “feeNQT”: “100000000000”, “type”: 2, “version”: 1, “ecBlockId”: “1564408139943737911”, “attachment”: { “name”: “SecretCoin”, “description”: “This+is+SecretCoin”, “quantityQNT”: “100”, “version.AssetIssuance”: 1, “decimals”: 0 }, “senderRS”: “BEAM-7X92-29W5-4WWQ-GVM8S”, “subtype”: 0, “amountNQT”: “0”, “sender”: “17013046603665206934”, “ecBlockHeight”: 288402, “deadline”: 60, “timestamp”: 31122837, “height”: 2147483647 }, “broadcasted”: false, “requestProcessingTime”: 2 }
Last updated