POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
gettriggerinputforshieldedtrc20contract
wallet/gettriggerinputforshieldedtrc20contract
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/gettriggerinputforshieldedtrc20contract \
  --header 'Content-Type: application/json' \
  --data '{
  "shielded_TRC20_contract_address": "TGzz8gjYiYRqpfmDwnLxfgPuLVNmpCswVp",
  "scaling_factor": "1000000",
  "value_commitment": "0x0ff1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2",
  "nullifier": "0x1002b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3",
  "rk": "0x1113c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4",
  "proof": "0x1224d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5"
}'
{
  "trigger_contract_input": "0x1335e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6",
  "parameter": "<string>",
  "function_selector": "0x12345678"
}
TRON API method that generates trigger input parameters for shielded TRC20 contract calls. This method prepares the necessary input data for executing shielded TRC20 operations on smart contracts.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • shielded_TRC20_contract_address — the address of the shielded TRC20 contract
  • scaling_factor — the scaling factor for amount calculations
  • value_commitment — the value commitment for the transaction
  • nullifier — the nullifier to prevent double spending
  • rk — the randomized key for verification
  • proof — the zero-knowledge proof data

Response

  • trigger_contract_input — the formatted input data for contract execution
  • parameter — the contract call parameters
  • function_selector — the function selector for the contract method

Use case

The wallet/gettriggerinputforshieldedtrc20contract method is used for:
  • Preparing input data for shielded TRC20 contract interactions
  • Converting shielded transaction parameters into contract-compatible format
  • Enabling smart contract integration with shielded TRC20 functionality
  • Supporting advanced DeFi applications with privacy features

Body

application/json
shielded_TRC20_contract_address
string
required

Address of the shielded TRC20 contract

Example:

"TGzz8gjYiYRqpfmDwnLxfgPuLVNmpCswVp"

scaling_factor
string
required

Scaling factor for amount calculations

Example:

"1000000"

value_commitment
string
required

Value commitment for the transaction

Example:

"0x0ff1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2"

nullifier
string
required

Nullifier to prevent double spending

Example:

"0x1002b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3"

rk
string
required

Randomized key for verification

Example:

"0x1113c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4"

proof
string
required

Zero-knowledge proof data

Example:

"0x1224d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5"

Response

200 - application/json

Successfully generated trigger input parameters

trigger_contract_input
string

Formatted input data for contract execution

Example:

"0x1335e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6"

parameter
string

Contract call parameters

function_selector
string

Function selector for contract method

Example:

"0x12345678"