curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getincomingviewingkey \
--header 'Content-Type: application/json' \
--data '
{
"ak": "03b2c3d4e5f67890123456789012345678901234567890123456789012345678",
"nk": "04c3d4e5f6789012345678901234567890123456789012345678901234567890"
}
'{
"ivk": "05d4e5f6789012345678901234567890123456789012345678901234567890abcdef"
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getincomingviewingkey \
--header 'Content-Type: application/json' \
--data '
{
"ak": "03b2c3d4e5f67890123456789012345678901234567890123456789012345678",
"nk": "04c3d4e5f6789012345678901234567890123456789012345678901234567890"
}
'{
"ivk": "05d4e5f6789012345678901234567890123456789012345678901234567890abcdef"
}TRON API method that derives an incoming viewing key (ivk) from authentication key (ak) and nullifier key (nk) for shielded TRC20 transactions. The incoming viewing key is used to scan for incoming shielded payments.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.
ak — authentication key as a 32‑byte (64‑hex) string, no 0x prefix.nk — nullifier key as a 32‑byte (64‑hex) string, no 0x prefix.ivk — the derived incoming viewing key in hexadecimal formatwallet/getincomingviewingkey method is used for:
curl --request POST \
--url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getincomingviewingkey' \
--header 'Content-Type: application/json' \
--data '{
"ak": "03b2c3d4e5f67890123456789012345678901234567890123456789012345678",
"nk": "04c3d4e5f6789012345678901234567890123456789012345678901234567890"
}'
0x prefix. Otherwise the node returns an error like: “param length must be 32”.Authentication key (ak) as a 32‑byte (64‑hex) string without 0x prefix.
^[0-9a-fA-F]{64}$"03b2c3d4e5f67890123456789012345678901234567890123456789012345678"
Nullifier key (nk) as a 32‑byte (64‑hex) string without 0x prefix.
^[0-9a-fA-F]{64}$"04c3d4e5f6789012345678901234567890123456789012345678901234567890"
Successfully derived incoming viewing key
The derived incoming viewing key (ivk) in hexadecimal format (no 0x prefix)
"05d4e5f6789012345678901234567890123456789012345678901234567890abcdef"
Was this page helpful?