Get the hex representation of a mint tokens transaction without input data.
POST/wallet/p2sh/tx-proposal/mint-tokens
Get the hex representation of a mint tokens transaction without input data.
Request
Header Parameters
Defines the key of the wallet on which the request will be executed.
- application/json
Body
required
Data to mint tokens.
UID of the token to mint.
The amount of tokens to mint. It must be an integer with the value in cents, i.e., 123 means 1.23.
Optional destination address of the minted tokens.
Optional address to send the change amount.
If should create another mint authority for the created token. Default is true.
Optional address to send the new mint authority output created.
If the mint authority address is allowed to be from another wallet. Default is false.
Add data outputs at the beginning of the outputs. Default is true.
List of utf-8 encoded strings to create a data output for each.
Responses
- 200
Mint tokens.
- application/json
- Schema
- error
- success
- wallet-not-ready
- no-wallet-id
- invalid-wallet-id
Schema
any
Insufficient amount of tokens
{
"success": false,
"error": "Don't have enough HTR funds to mint this amount."
}
Success
{
"success": true,
"txHex": "0001010203000016392ed330ed99ff0f74e4169a8d257fd1d07d3b38c4f8ecf21a78f10efa000016392ed330ed99ff0f74e4169a8d257fd1d07d3b38c4f8ecf21a78f10efa00006946304402201166baf8513c0bfd21edcb169a4df5645ca826b22b6ed22d13945628094a04c502204f382ef9e6b903397b2bcaaed5316b0bb54212037a30e5cda7a5cf4d785b8f332102a5c1b462ccdcd8b4bb2cf672e0672576420c3102ecbe74da15b2cf56cf49b4a5000016392ed330ed99ff0f74e4169a8d257fd1d07d3b38c4f8ecf21a78f10efa02006946304402201166baf8513c0bfd21edcb169a4df5645ca826b22b6ed22d13945628094a04c502204f382ef9e6b903397b2bcaaed5316b0bb54212037a30e5cda7a5cf4d785b8f332102a5c1b462ccdcd8b4bb2cf672e0672576420c3102ecbe74da15b2cf56cf49b4a5000001f1000017a91462d397b360118b99a8d35892366074fe16fa6f098700000001010017a91462d397b360118b99a8d35892366074fe16fa6f098700000001810017a91462d397b360118b99a8d35892366074fe16fa6f098740327a9b3baad50b649b5f1d0000000000"
}
Wallet is not ready yet
{
"success": false,
"message": "Wallet is not ready.",
"state": 1
}
No wallet id parameter
{
"success": false,
"message": "Parameter 'wallet-id' is required."
}
Wallet id parameter is invalid
{
"success": false,
"message": "Invalid wallet-id parameter."
}