curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getnkfromnsk \
--header 'Content-Type: application/json' \
--data '
{
"value": "abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcd"
}
'{
"value": "04b2c3d4e5f6789012345678901234567890123456789abcdef0123456789abcd"
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getnkfromnsk \
--header 'Content-Type: application/json' \
--data '
{
"value": "abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcd"
}
'{
"value": "04b2c3d4e5f6789012345678901234567890123456789abcdef0123456789abcd"
}value — nullifier secret key (nsk) as a 32‑byte (64‑hex) string, no 0x prefix.value — the derived nullifier key (nk) in hexadecimal formatwallet/getnkfromnsk method is used for:
curl --request POST \
--url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getnkfromnsk' \
--header 'Content-Type: application/json' \
--data '{
"value": "abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcd"
}'
value is exactly 64 hexadecimal characters without a 0x prefix; otherwise the node returns a validation error indicating the expected length.Nullifier secret key (nsk) as a 32‑byte (64‑hex) string without 0x prefix.
"abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcd"
Successfully derived nullifier key
The derived nullifier key (nk) in hexadecimal format (no 0x prefix)
"04b2c3d4e5f6789012345678901234567890123456789abcdef0123456789abcd"
Was this page helpful?