Skip to main content

/wallet/createshieldedcontractparameters REST API Endpoint

Generate the Shielded contract parameters.

Updated on
Oct 4, 2023

/wallet/createshieldedcontractparameters REST API Endpoint

Body Parameters

ovk
string
REQUIRED
The outgoing viewing key associated with the transaction
from_amount
string
REQUIRED
The amount being sent from the sender's account or address
to_amount
string
REQUIRED
The amount being sent to the reciever's account or address
transparent_to_address
string
REQUIRED
The address to which the amount is to be transferred
shielded_TRC20_contract_address
string
REQUIRED
The contract address for a shielded TRC20 token associated with the transaction
shielded_receives
object
REQUIRED
It contains information about the shielded receives or recipients of the transaction
shielded_spends
object
REQUIRED
It contains information about the shielded spends
ask
string
REQUIRED
The account secret key (ASK)
nsk
string
REQUIRED
The nullifier secret key (NK)

Returns

binding_signature
It represents the binding signature associated with the transaction
message_hash
The hash value of the message associated with the transaction
trigger_contract_input
The input data for triggering a contract associated with the transaction
parameter_type
The type of parameter associated with the transaction
receive_description
An array of objects representing the receive description(s) associated with the transaction. Each object within the array provides details about a specific receive description
value_commitment
It represents the commitment value associated with the amount being received in the receive description
note_commitment
It represents the commitment value associated with the note of the receive description
epk
The ephemeral public key associated with the receive description
c_enc
The encrypted value associated with the receive description
c_out
The output commitment value associated with the receive description
zkproof
The zero-knowledge proof associated with the receive description
Request
1
curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/createshieldedcontractparameters \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '{
5
"ovk": "1797de3b7f33cafffe3fe18c6b43ec6760add2ad81b10978d1fca5290497ede9",
6
"from_amount": "5000",
7
"shielded_receives": {
8
"note": {
9
"value": 50,
10
"payment_address": "ztron15js0jkuxczt8caq5hp59rnh6rgf34sek7vqn9u6ljelxv4nuzz2x9qe3ffm2wzz6ck53yxyhxs6",
11
"rcm": "74baec30dfac8ed59968955ff245ae002009005194e5b824c35ab88c52e5170e"
12
}
13
},
14
"shielded_TRC20_contract_address": "41f3392eaa7d38749176e0671dbc6912f8ef956943"
15
}
16
'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free