POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
getnkfromnsk
wallet/getnkfromnsk
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getnkfromnsk \
  --header 'Content-Type: application/json' \
  --data '{
  "value": "0x03a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890"
}'
{
  "value": "0x04a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890"
}
TRON API method that derives a nullifier key (nk) from a nullifier secret key (nsk) for shielded TRC20 transactions. The nullifier key is used to generate nullifiers that prevent double-spending in the shielded transaction protocol.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • value — the nullifier secret key (nsk) in hexadecimal format

Response

  • value — the derived nullifier key (nk) in hexadecimal format

Use case

The wallet/getnkfromnsk method is used for:
  • Deriving nullifier keys required for preventing double-spending in shielded transactions
  • Converting secret nullifier keys to public nullifier key components
  • Supporting the cryptographic foundation for privacy-preserving transaction verification
  • Enabling secure nullifier generation in shielded TRC20 implementations

Body

application/json

Response

200 - application/json

Successfully derived nullifier key

The response is of type object.