POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
createspendauthsig
wallet/createspendauthsig
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"
}
TRON API method that creates a spending authorization signature for shielded TRC20 transactions. This signature authorizes the spending of shielded notes and is a critical component of the privacy-preserving transaction protocol.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • ask — the authentication secret key used for signing
  • alpha — the alpha parameter for randomization
  • tx_hash — the transaction hash being authorized
  • sighash_type — the signature hash type (typically SIGHASH_ALL)

Response

  • signature — the generated spending authorization signature
  • randomized_pk — the randomized public key used in the signature

Use case

The wallet/createspendauthsig method is used for:
  • Authorizing the spending of shielded notes in privacy transactions
  • Creating cryptographic signatures that prove spending authority without revealing identity
  • Supporting the zero-knowledge proof system in shielded transactions
  • Enabling secure authorization of shielded TRC20 transfers

Body

application/json

Response

200 - application/json

Successfully created spending authorization signature

The response is of type object.