curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getspendingkey \
--header 'Content-Type: application/json' \
--data '{}'{
"value": "02a1b2c3d4e5f67890123456789012345678901234567890123456789012345678"
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getspendingkey \
--header 'Content-Type: application/json' \
--data '{}'{
"value": "02a1b2c3d4e5f67890123456789012345678901234567890123456789012345678"
}TRON API method that generates a new spending key for shielded TRC20 transactions. The spending key is the master private key used to derive other keys in the shielded transaction system and must be kept secure.Documentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
value — the generated spending key as a hexadecimal stringwallet/getspendingkey method is essential for:
The body is of type object.
Successfully generated spending key
The generated spending key in hexadecimal format (64 hex characters, no 0x prefix)
"02a1b2c3d4e5f67890123456789012345678901234567890123456789012345678"
Was this page helpful?