curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getakfromask \
--header 'Content-Type: application/json' \
--data '
{
"value": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
}
'{
"value": "03b2c3d4e5f6789012345678901234567890123456789abcdef0123456789abcd"
}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.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 — authentication secret key (ask) as a 32‑byte (64‑hex) string, no 0x prefix.value — the derived authentication key (ak) in hexadecimal formatwallet/getakfromask method is used for:
curl --request POST \
--url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getakfromask' \
--header 'Content-Type: application/json' \
--data '{
"value": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
}'
value is exactly 64 hexadecimal characters without a 0x prefix. Using the wrong length or including 0x will cause a validation error.Authentication secret key (ask) as a 32‑byte (64‑hex) string without 0x prefix.
^[0-9a-fA-F]{64}$"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
Successfully derived authentication key
The derived authentication key (ak) in hexadecimal format (no 0x prefix)
"03b2c3d4e5f6789012345678901234567890123456789abcdef0123456789abcd"
Was this page helpful?