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"
}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.
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
Successfully derived authentication key
The derived authentication key (ak) in hexadecimal format (no 0x prefix)
"03b2c3d4e5f6789012345678901234567890123456789abcdef0123456789abcd"
Was this page helpful?