curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/gettriggerinputforshieldedtrc20contract \
--header 'Content-Type: application/json' \
--data '
{
"shielded_TRC20_Parameters": {
"spend_description": [
{
"value_commitment": "219ed48bc4bfe14cc2953ab5027528353e177e2263479122ea97c609ce187986",
"anchor": "c1dda86b7af8ce842e349347b364936baf24ad36be65046e2fd7349640bba873",
"nullifier": "79e938e0951d4d6cf6acd679fc6bb59147a6abc2f9e2828185328e93a83ab2f1",
"rk": "99c0c1fbe3ad8a6e27d712632064fdeeb10952624c60a0ddcba0eb233bbf4e8b",
"zkproof": "b536d0f442f6e0517930a9ccdb551c9e551a148c41fcf1e4748d1330d6c3e6f9"
}
],
"binding_signature": "c7f303709c57e49264fd5ae5922bf977ef2a57ccc84d746effc5c6937eecf36e05b09faf95e5f869aeaf1aa87b24570eb723a4d8c77edea32c31b2909c84eb04",
"message_hash": "7fb99e66df052f430d50e80a3f197c319a4e35184ed48a433d6219e025741337",
"parameter_type": "transfer",
"receive_description": [
{
"value_commitment": "19ac352ba8d7f5167ef43a5b9c225056db2c44fb19f7fe8c63e0d2b956771656",
"note_commitment": "e40b9da38887963c8cd1e163b4b7d4b999502c32e1204b791242633aebcdbb6d",
"epk": "b1675f0b5331371466ff30d621991f0a30c9bc4d34c322be44619a0acf932905",
"c_enc": "b69f20ae969de55319d2b7617bf7351a4683098af1e7b16fa64d44ff758471f3",
"c_out": "1e5333e35985d343697dcce92703c2536a861eb49722e1c83a112cf004006e9c",
"zkproof": "a6b41694f8fa378886ef77d5bd07de56de55b9ad7c8438d05380dd5fa1ce2e7d"
}
]
},
"spend_authority_signature": [
{
"value": "66c806bc592a7599e65833bf25c3c7005c8b21b7895dd835a84c97d7bec49d0f1493d2c73a68eeb9b9699b92cae42406f9e44ebe19acaea3d5febfe28de57109"
}
]
}
'{
"trigger_contract_input": "a9059cbb000000000000000000000041..."
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/gettriggerinputforshieldedtrc20contract \
--header 'Content-Type: application/json' \
--data '
{
"shielded_TRC20_Parameters": {
"spend_description": [
{
"value_commitment": "219ed48bc4bfe14cc2953ab5027528353e177e2263479122ea97c609ce187986",
"anchor": "c1dda86b7af8ce842e349347b364936baf24ad36be65046e2fd7349640bba873",
"nullifier": "79e938e0951d4d6cf6acd679fc6bb59147a6abc2f9e2828185328e93a83ab2f1",
"rk": "99c0c1fbe3ad8a6e27d712632064fdeeb10952624c60a0ddcba0eb233bbf4e8b",
"zkproof": "b536d0f442f6e0517930a9ccdb551c9e551a148c41fcf1e4748d1330d6c3e6f9"
}
],
"binding_signature": "c7f303709c57e49264fd5ae5922bf977ef2a57ccc84d746effc5c6937eecf36e05b09faf95e5f869aeaf1aa87b24570eb723a4d8c77edea32c31b2909c84eb04",
"message_hash": "7fb99e66df052f430d50e80a3f197c319a4e35184ed48a433d6219e025741337",
"parameter_type": "transfer",
"receive_description": [
{
"value_commitment": "19ac352ba8d7f5167ef43a5b9c225056db2c44fb19f7fe8c63e0d2b956771656",
"note_commitment": "e40b9da38887963c8cd1e163b4b7d4b999502c32e1204b791242633aebcdbb6d",
"epk": "b1675f0b5331371466ff30d621991f0a30c9bc4d34c322be44619a0acf932905",
"c_enc": "b69f20ae969de55319d2b7617bf7351a4683098af1e7b16fa64d44ff758471f3",
"c_out": "1e5333e35985d343697dcce92703c2536a861eb49722e1c83a112cf004006e9c",
"zkproof": "a6b41694f8fa378886ef77d5bd07de56de55b9ad7c8438d05380dd5fa1ce2e7d"
}
]
},
"spend_authority_signature": [
{
"value": "66c806bc592a7599e65833bf25c3c7005c8b21b7895dd835a84c97d7bec49d0f1493d2c73a68eeb9b9699b92cae42406f9e44ebe19acaea3d5febfe28de57109"
}
]
}
'{
"trigger_contract_input": "a9059cbb000000000000000000000041..."
}parameter_type field with one of these values: “mint”, “burn”, or “transfer”. The parameters must include valid zero-knowledge proofs, binding signature, and message hash from the shielded transaction protocol.shielded_TRC20_Parameters — object containing shielded transaction parameters
spend_description — array of spend descriptions for transaction inputs
value_commitment — value commitment (hex without 0x prefix)anchor — Merkle root of note commitment tree (hex without 0x prefix)nullifier — nullifier to prevent double spending (hex without 0x prefix)rk — public key for spend authorization signature verification (hex without 0x prefix)zkproof — zero-knowledge proof data (hex without 0x prefix)receive_description — array of receive descriptions for transaction outputs (required for transfer operations)
value_commitment — value commitment (hex without 0x prefix)note_commitment — note commitment (hex without 0x prefix)epk — ephemeral public key (hex without 0x prefix)c_enc — encrypted note ciphertext (hex without 0x prefix)c_out — output ciphertext for auditing (hex without 0x prefix)zkproof — zero-knowledge proof data (hex without 0x prefix)binding_signature — binding signature for the transaction (hex without 0x prefix)message_hash — hash of the transaction message (hex without 0x prefix)parameter_type — type of shielded operation: “mint”, “burn”, or “transfer”spend_authority_signature — array of spend authority signatures (one for each spend description)
value — spend authorization signature (hex without 0x prefix)trigger_contract_input — the formatted input data for triggering the shielded TRC20 contractwallet/gettriggerinputforshieldedtrc20contract method is used for:
Shielded TRC20 transaction parameters
Show child attributes
Array of spend descriptions for inputs
Show child attributes
Value commitment (hex without 0x prefix)
"219ed48bc4bfe14cc2953ab5027528353e177e2263479122ea97c609ce187986"
Merkle root of note commitment tree (hex without 0x prefix)
"c1dda86b7af8ce842e349347b364936baf24ad36be65046e2fd7349640bba873"
Nullifier to prevent double spending (hex without 0x prefix)
"79e938e0951d4d6cf6acd679fc6bb59147a6abc2f9e2828185328e93a83ab2f1"
Public key for spend authorization signature verification (hex without 0x prefix)
"99c0c1fbe3ad8a6e27d712632064fdeeb10952624c60a0ddcba0eb233bbf4e8b"
Zero-knowledge proof data (hex without 0x prefix)
"b536d0f442f6e0517930a9ccdb551c9e551a148c41fcf1e4748d1330d6c3e6f9"
Binding signature for the transaction (hex without 0x prefix)
"c7f303709c57e49264fd5ae5922bf977ef2a57ccc84d746effc5c6937eecf36e05b09faf95e5f869aeaf1aa87b24570eb723a4d8c77edea32c31b2909c84eb04"
Hash of the transaction message (hex without 0x prefix)
"7fb99e66df052f430d50e80a3f197c319a4e35184ed48a433d6219e025741337"
Type of shielded operation
mint, burn, transfer "transfer"
Array of receive descriptions for outputs (required for transfer operations)
Show child attributes
Value commitment (hex without 0x prefix)
"19ac352ba8d7f5167ef43a5b9c225056db2c44fb19f7fe8c63e0d2b956771656"
Note commitment (hex without 0x prefix)
"e40b9da38887963c8cd1e163b4b7d4b999502c32e1204b791242633aebcdbb6d"
Ephemeral public key (hex without 0x prefix)
"b1675f0b5331371466ff30d621991f0a30c9bc4d34c322be44619a0acf932905"
Encrypted note ciphertext (hex without 0x prefix)
"b69f20ae969de55319d2b7617bf7351a4683098af1e7b16fa64d44ff758471f3"
Output ciphertext for auditing (hex without 0x prefix)
"1e5333e35985d343697dcce92703c2536a861eb49722e1c83a112cf004006e9c"
Zero-knowledge proof data (hex without 0x prefix)
"a6b41694f8fa378886ef77d5bd07de56de55b9ad7c8438d05380dd5fa1ce2e7d"
Array of spend authority signatures, one for each spend description
Show child attributes
Spend authorization signature (hex without 0x prefix)
"66c806bc592a7599e65833bf25c3c7005c8b21b7895dd835a84c97d7bec49d0f1493d2c73a68eeb9b9699b92cae42406f9e44ebe19acaea3d5febfe28de57109"
Successfully generated trigger input parameters
Formatted input data for triggering the shielded TRC20 contract
"a9059cbb000000000000000000000041..."
Was this page helpful?