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"
}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.
"03b2c3d4e5f67890123456789012345678901234567890123456789012345678"
Nullifier key (nk) as a 32‑byte (64‑hex) string without 0x prefix.
"04c3d4e5f6789012345678901234567890123456789012345678901234567890"
Successfully derived incoming viewing key
The derived incoming viewing key (ivk) in hexadecimal format (no 0x prefix)
"05d4e5f6789012345678901234567890123456789012345678901234567890abcdef"
Was this page helpful?