Get the hex representation of a create a token transaction without input data.
POST/wallet/p2sh/tx-proposal/create-token
Get the hex representation of a create a token 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 create the token.
Name of the token.
Symbol of the token.
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 mint authority for the created token. Default is true.
Optional address to send the mint authority output created.
If the mint authority address is allowed to be from another wallet. Default is false.
If should create melt authority for the created token. Default is true.
Optional address to send the melt authority output created.
If the melt authority address is allowed to be from another wallet. Default is false.
If we should lock the utxos chosen as inputs so they are not chosen when creating another transaction.
Responses
- 200
Create the token
- application/json
- Schema
- error
- success
- wallet-not-ready
- no-wallet-id
- invalid-wallet-id
Schema
any
Insuficient amount of tokens
{
"success": false,
"error": "Don't have enough HTR funds to mint this amount."
}
Success
{
"success": true,
"txHex": "00020104000016392ed330ed99ff0f74e4169a8d257fd1d07d3b38c4f8ecf21a78f10efa000069463044022074a1bf9c2d56e887558f459573d75df647acbde7b90de3502b7220425ff69dcb022000e0690e43ad306adef7f59bd07cf817ab8da29bce5cd82ede61ffb99cb460022102a5c1b462ccdcd8b4bb2cf672e0672576420c3102ecbe74da15b2cf56cf49b4a5000001f1000017a91462d397b360118b99a8d35892366074fe16fa6f098700000001010017a91462d397b360118b99a8d35892366074fe16fa6f098700000001810017a91462d397b360118b99a8d35892366074fe16fa6f098700000002810017a91462d397b360118b99a8d35892366074fe16fa6f098701164d7920437573746f6d20546f6b656e204d616e75616c034d43544031dbcd5cef20c5649b59130000000000"
}
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."
}