curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/createspendauthsig \
--header 'Content-Type: application/json' \
--data '{
"ask": "0x0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890",
"alpha": "0x0bb2c3d4e5f6789012345678901234567890123456789012345678901234567890ab",
"tx_hash": "0x0cc3d4e5f6789012345678901234567890123456789012345678901234567890abcd",
"sighash_type": "0x01"
}'
{
"signature": "0x0dd4e5f6789012345678901234567890123456789012345678901234567890abcdef",
"randomized_pk": "0x0ee5f6789012345678901234567890123456789012345678901234567890abcdef01"
}
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/createspendauthsig \
--header 'Content-Type: application/json' \
--data '{
"ask": "0x0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890",
"alpha": "0x0bb2c3d4e5f6789012345678901234567890123456789012345678901234567890ab",
"tx_hash": "0x0cc3d4e5f6789012345678901234567890123456789012345678901234567890abcd",
"sighash_type": "0x01"
}'
{
"signature": "0x0dd4e5f6789012345678901234567890123456789012345678901234567890abcdef",
"randomized_pk": "0x0ee5f6789012345678901234567890123456789012345678901234567890abcdef01"
}
ask
— the authentication secret key used for signingalpha
— the alpha parameter for randomizationtx_hash
— the transaction hash being authorizedsighash_type
— the signature hash type (typically SIGHASH_ALL)signature
— the generated spending authorization signaturerandomized_pk
— the randomized public key used in the signaturewallet/createspendauthsig
method is used for:
Successfully created spending authorization signature
The response is of type object
.