Skip to main content

TokenRedeemTransactionParams

txTypeTokenTransactionType (string)

Must be "token:redeem"

Possible values: [token:redeem]

tokenAddressstringrequired

The address of the token contract.

senderstringrequired

The address (public key) of the sender.

senderPrivateKeystring

The private key of the sender. It is NOT recommended to use this field. Please use the sender field instead. Use this field at your own risk and only if you know what you are doing and do not have access to mina-signer or wallet to get the signature.

nonceint64

Optional. The nonce for the transaction.

memostring

Optional. A memo for the transaction.

developerFeedouble

Optional. The developer fee for the transaction.

amountdoublerequired

The amount of tokens to redeem.

pricedoublerequired

The minimum price of the tokens to be redeemed.

slippageint32

The maximum slippage allowed for the redemption, default is 50 (5%).

Possible values: >= 0 and <= 999

TokenRedeemTransactionParams
{
"txType": "token:redeem",
"tokenAddress": "string",
"sender": "string",
"senderPrivateKey": "string",
"nonce": 0,
"memo": "string",
"developerFee": 0,
"amount": 0,
"price": 0,
"slippage": 0
}