Skip to main content
POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
getakfromask
wallet/getakfromask
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getakfromask \
  --header 'Content-Type: application/json' \
  --data '{
  "value": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
}'
{
  "value": "03b2c3d4e5f6789012345678901234567890123456789abcdef0123456789abcd"
}
TRON API method that derives an authentication key (ak) from an authentication secret key (ask) for shielded TRC20 transactions. This is part of the key derivation process 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 — authentication secret key (ask) as a 32‑byte (64‑hex) string, no 0x prefix.

Response

  • value — the derived authentication key (ak) in hexadecimal format

Use case

The wallet/getakfromask method is used for:
  • Deriving authentication keys needed for shielded transaction verification
  • Converting secret keys to public key components in the shielded protocol
  • Supporting cryptographic operations in privacy-preserving transactions
  • Enabling wallet implementations of shielded TRC20 functionality

curl example

Shell
curl --request POST \
  --url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getakfromask' \
  --header 'Content-Type: application/json' \
  --data '{
    "value": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
  }'
Ensure value is exactly 64 hexadecimal characters without a 0x prefix. Using the wrong length or including 0x will cause a validation error.

Body

application/json
value
string
required

Authentication secret key (ask) as a 32‑byte (64‑hex) string without 0x prefix.

Example:

"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"

Response

200 - application/json

Successfully derived authentication key

value
string

The derived authentication key (ak) in hexadecimal format (no 0x prefix)

Example:

"03b2c3d4e5f6789012345678901234567890123456789abcdef0123456789abcd"