Skip to main content

/wallet/gettriggerinputforshieldedtrc20contract REST API Endpoint

Retrieve the trigger input data for executing a shielded TRC20 contract transaction.

Updated on
Oct 4, 2023

/wallet/gettriggerinputforshieldedtrc20contract REST API Endpoint

Body Parameters

shielded_TRC20_Parameters
object
An object containing the shielded TRC20 parameters for the transaction. It includes the spend and receive descriptions, binding signature, message hash, and parameter type
spend_description
array
An array of spend descriptions, each describing the spending of a shielded TRC20 note
value_commitment
string
The value commitment of the shielded TRC20 note being spent
anchor
string
The anchor value corresponding to the shielded TRC20 note being spent
nullifier
string
The nullifier value corresponding to the shielded TRC20 note being spent
rk
string
The randomness value used in the commitment of the shielded TRC20 note being spent
zkproof
string
The zero-knowledge proof for the shielded TRC20 note being spent
receive_description
object
An array of receive descriptions, each describing the receiving of a shielded TRC20 note
value_commitment
string
It represents the commitment value associated with the amount being received in the receive description
note_commitment
string
It represents the commitment value associated with the note of the receive description
epk
string
The ephemeral public key associated with the receive description
c_enc
string
The encrypted value associated with the receive description
c_out
string
The output commitment value associated with the receive description
zkproof
string
The zero-knowledge proof associated with the receive description
binding_signature
string
The binding signature for the shielded TRC20 contract transaction
message_hash
string
The hash value of the transaction message
parameter_type
string
The type of parameter for the shielded TRC20 contract transaction
spend_authority_signature
array
An array of spend authority signatures for the transaction. Each element in the array contains the value of a spend authority signature
value
string
The value of a spend authority signature

Returns

value
The trigger input data for the shielded TRC20 contract transaction, represented as a string
Request
1
curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/gettriggerinputforshieldedtrc20contract \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '{
5
"shielded_TRC20_Parameters": {
6
"spend_description": [
7
{
8
"value_commitment": "219ed48bc4bfe14cc2953ab5027528353e177e2263479122ea97c609ce187986",
9
"anchor": "c1dda86b7af8ce842e349347b364936baf24ad36be65046e2fd7349640bba873",
10
"nullifier": "79e938e0951d4d6cf6acd679fc6bb59147a6abc2f9e2828185328e93a83ab2f1",
11
"rk": "99c0c1fbe3ad8a6e27d712632064fdeeb10952624c60a0ddcba0eb233bbf4e8b",
12
"zkproof": "b536d0f442f6e0517930a9ccdb551c9e551a148c41fcf1e4748d1330d6c3e6f952012a5c3c6b06cfb51a92da5ebec4bcb11ed37cf36b60c9997baa026733ab6711894b5d17ca1f96667d68ed97f4cf75e5a9d96484d9f2453f869400e14dc54f0bf54f9abec8baf45baec320a06cc09780f4c5a2058f870993ff8a31f6d19b03f772a7d4d29ae837c7c2c3d6b300c4d485390d2e7bf09f971ed82e3676daf6fb655b2e47e040de762fe26317815e30b1f9638af979803e37abc3a95742c6faaa"
13
}],
14
"receive_description": [
15
{
16
"value_commitment": "19ac352ba8d7f5167ef43a5b9c225056db2c44fb19f7fe8c63e0d2b956771656",
17
"note_commitment": "e40b9da38887963c8cd1e163b4b7d4b999502c32e1204b791242633aebcdbb6d",
18
"epk": "b1675f0b5331371466ff30d621991f0a30c9bc4d34c322be44619a0acf932905",
19
"c_enc": "b69f20ae969de55319d2b7617bf7351a4683098af1e7b16fa64d44ff758471f33b0fb4f8896b2c32c68c410672fa81356e535f8d04338bdb69d69655eeee11e10727f319e1df6702ba7c90b2c5e4f38f809eddd2084fd30fd5684d9c004c679f4e574e17334d731550a76a842960bcdd811c67362bed7cdf698284a549e240da1727814af5137a7a384b5f24bd61a4b9cc1c4f6abe84524184a3ee257e002f7a9f6ccd3f6f0d490c5f77e3c26896f7bce84bf224429a45e156a4c62de64f739f9555147ed3fb7704206e7e45faf0f385229c7ed4e57253f8b5c4e518a26b90c069708c356e490abe97c1f78d361e7166fed9c67bad5aa820cadbefea2095b2a1adddb13b0249dae1c5c48ff0aad8eec23493786dead33d68e107bc13c3448129a58556ef5a21873ee151035117871652b1e151308d358f0df9c1c3188af4f15431b6fd262f4e0cbe5401c20b4633617fcf92a54d94991bd98e21f9cdcbcb6899341a9924d6eb11168daa6b19c2424993d4308bf40158564000aa79d106d09ebac3ad0a0e1729d20cff6226f3e632d9fd1c4f541b2f2ebaf5110ea5170498ce690e9115bca423ba2f5498b365db9dab936d1896ad5bc5b0d8c86b37f36debd5aca0e1194c48d51cff2253e32f069e8b969d7ba3c9391715c6b3118e2e31621321302b93edfdba0639542f3144eb6d90cdd86d354959df6398cf5fa497cf0fcbb19395d9bc1243da98afbc9087ec2997df1e84e97b4e18b1691e2d942a67214202e3d3880ce4eace0903cdd07f53b6f1ea23e277d867e73fbb10560a7d1df10402bd50d42c",
20
"c_out": "1e5333e35985d343697dcce92703c2536a861eb49722e1c83a112cf004006e9cdb63f96132393c7616e5f947d9d07cd6a22a664643c117f52791724efde660605f134aa86d3374b4804f9bb9ce64fc99",
21
"zkproof": "a6b41694f8fa378886ef77d5bd07de56de55b9ad7c8438d05380dd5fa1ce2e7d0ae0528f82c23a6d92e6150e426ef3958556757ee973c5e79ae7ce074b1b25c74ccdde0b2b2dfd1b42215401f700c06b84785572eb4e585971cc4b451420bfbc17db489dbc996e9c5533b7da9e4a88d53388b411dd4a4e8801707aa01508054faa91a2c422a4cbad61ababfc3b1893c38e2ec19d19a1e5b47d2257ca9e347283afd5e53a2f8989d8db6a76b7942a737601ed3082e2e56290a9cd694a399f8551"
22
}],
23
"binding_signature": "c7f303709c57e49264fd5ae5922bf977ef2a57ccc84d746effc5c6937eecf36e05b09faf95e5f869aeaf1aa87b24570eb723a4d8c77edea32c31b2909c84eb04",
24
"message_hash": "7fb99e66df052f430d50e80a3f197c319a4e35184ed48a433d6219e025741337",
25
"parameter_type": "transfer"
26
},
27
"spend_authority_signature": [
28
{
29
"value": "24409c69b9d03a7c714f7c8bac39a3310054eef9e99dcbf256c8e39ef267e31884f2f2465ca7cd7aaba006e7f0a8635787de61eef1b96ce559764d300f637a08"
30
}
31
]
32
}
33
'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free