curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/isshieldedtrc20contractnotespent \
--header 'Content-Type: application/json' \
--data '
{
"note": {
"value": 40,
"payment_address": "ztron1768kf7dy4qquefp46szk978d65eeua66yhr4zv260c0uzj68t3tfjl3en9lhyyfxalv4jus30xs",
"rcm": "296070782a94c6936b0b4f6daf8d7c7605a4374fe595b96148dc0f4b59015d0d"
},
"ak": "8072d9110c9de9d9ade33d5d0f5890a7aa65b0cde42af7816d187297caf2fd64",
"nk": "590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14",
"position": 272,
"shielded_TRC20_contract_address": "41274fc7464fadac5c00c893c58bce6c39bf59e4c7"
}
'{
"is_spent": false
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/isshieldedtrc20contractnotespent \
--header 'Content-Type: application/json' \
--data '
{
"note": {
"value": 40,
"payment_address": "ztron1768kf7dy4qquefp46szk978d65eeua66yhr4zv260c0uzj68t3tfjl3en9lhyyfxalv4jus30xs",
"rcm": "296070782a94c6936b0b4f6daf8d7c7605a4374fe595b96148dc0f4b59015d0d"
},
"ak": "8072d9110c9de9d9ade33d5d0f5890a7aa65b0cde42af7816d187297caf2fd64",
"nk": "590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14",
"position": 272,
"shielded_TRC20_contract_address": "41274fc7464fadac5c00c893c58bce6c39bf59e4c7"
}
'{
"is_spent": false
}ak, nk, rcm) must be provided without the 0x prefix and must be exactly 64 hexadecimal characters (32 bytes). The shielded_TRC20_contract_address must be in hex format (starting with 41), not base58 format. The value represents the scaled value multiplied by the contract’s scalingFactor.note — the note object to check for spending status
value — scaled value (multiplied by contract’s scalingFactor)payment_address — shielded payment address (ztron1 format)rcm — random commitment trapdoor (64 hex characters, no 0x prefix)ak — authorization key (64 hex characters, no 0x prefix)nk — nullifier key (64 hex characters, no 0x prefix)position — leaf position index in Merkle treeshielded_TRC20_contract_address — the shielded TRC20 contract address (hex format starting with 41, no 0x prefix)is_spent — boolean indicating if the note has been spent (true = spent, false = unspent)wallet/isshieldedtrc20contractnotespent method is used for:
The note to check for spending status
Show child attributes
Scaled value (multiplied by contract's scalingFactor)
40
Shielded payment address
"ztron1768kf7dy4qquefp46szk978d65eeua66yhr4zv260c0uzj68t3tfjl3en9lhyyfxalv4jus30xs"
Random commitment trapdoor (64 hex characters, no 0x prefix)
"296070782a94c6936b0b4f6daf8d7c7605a4374fe595b96148dc0f4b59015d0d"
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"
Successfully checked nullifier spending status
Whether the note has been spent (true = spent, false = unspent)
false
Was this page helpful?