POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
getexpandedspendingkey
wallet/getexpandedspendingkey
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getexpandedspendingkey \
  --header 'Content-Type: application/json' \
  --data '{
  "value": "0x02a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890"
}'
{
  "ask": "<string>",
  "nsk": "<string>",
  "ovk": "<string>"
}
TRON API method that derives an expanded spending key from a spending key for shielded TRC20 transactions. The expanded spending key contains additional cryptographic material used in the shielded 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

  • value — the spending key in hexadecimal format

Response

  • ask — the authentication secret key component
  • nsk — the nullifier secret key component
  • ovk — the outgoing viewing key component

Use case

The wallet/getexpandedspendingkey method is used for:
  • Deriving cryptographic components needed for shielded transactions
  • Generating keys required for creating shielded TRC20 transfers
  • Supporting wallet implementations of the shielded transaction protocol
  • Enabling advanced privacy features in TRON applications

Body

application/json

Response

200 - application/json

Successfully derived expanded spending key

The response is of type object.