wallet/isshieldedtrc20contractnotespent | TRON
TRON API method that checks whether a specific shielded TRC20 contract note has been spent. wallet/isshieldedtrc20contractnotespent on TRON via Chainstack.
Parameters
note— the note object to check for spending statusvalue— scaled value (multiplied by contract’s scalingFactor)payment_address— shielded payment address (ztron1 format)rcm— random commitment trapdoor (64 hex characters, no0xprefix)
ak— authorization key (64 hex characters, no0xprefix)nk— nullifier key (64 hex characters, no0xprefix)position— leaf position index in Merkle treeshielded_TRC20_contract_address— the shielded TRC20 contract address (hex format starting with 41, no0xprefix)
Response
is_spent— boolean indicating if the note has been spent (true = spent, false = unspent)
Use case
Thewallet/isshieldedtrc20contractnotespent method is used for:
- Preventing double-spending attacks in shielded transactions
- Validating that notes are available for spending before creating transactions
- Maintaining the security and integrity of the shielded transaction system
- Supporting wallet implementations that need to track note spending status
Body
The note to check for spending status
Authorization key (64 hex characters, no 0x prefix)
"8072d9110c9de9d9ade33d5d0f5890a7aa65b0cde42af7816d187297caf2fd64"
Nullifier key (64 hex characters, no 0x prefix)
"590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14"
Leaf position index in Merkle tree
272
Shielded TRC20 contract address (hex format, no 0x prefix)
"41274fc7464fadac5c00c893c58bce6c39bf59e4c7"
Response
Successfully checked nullifier spending status
Whether the note has been spent (true = spent, false = unspent)
false