Skip to main content
POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
createshieldedcontractparameters
wallet/createshieldedcontractparameters
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/createshieldedcontractparameters \
  --header 'Content-Type: application/json' \
  --data '{
  "spend_authority_signature": "08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890",
  "view_signature": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
  "proof_generation_key": "2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3",
  "payment_address": "ztron1768kf7dy4qquefp46szk978d65eeua66yhr4zv260c0uzj68t3tfjl3en9lhyyfxalv4jus30xs",
  "rcm": "3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4",
  "ar": "4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5",
  "alpha": "5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6",
  "rsk": "6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7",
  "ask": "7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8"
}'
{
  "receive_description": {},
  "spend_description": {},
  "binding_signature": "<string>"
}
TRON API method that creates parameters for a shielded TRC20 contract transaction. This method generates the necessary cryptographic parameters required to execute shielded transfers while maintaining privacy.
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.
This endpoint requires valid cryptographic material generated from your shielded keys and transaction data. All hex string parameters must be properly formatted (0x-prefixed) and derived from legitimate shielded transaction construction. Invalid or placeholder values will result in parsing errors.

Parameters

  • spend_authority_signature — the spending authority signature for the transaction
  • view_signature — the view signature component
  • proof_generation_key — the proof generation key for creating zero-knowledge proofs
  • payment_address — the recipient’s shielded payment address
  • rcm — the randomness commitment value
  • ar — the authentication randomness value
  • alpha — the alpha parameter for proof generation
  • rsk — the randomness for spending key
  • ask — the authentication secret key

Response

  • receive_description — the receive description for the shielded transaction
  • spend_description — the spend description for the shielded transaction
  • binding_signature — the binding signature that ties the transaction together

Use case

The wallet/createshieldedcontractparameters method is used for:
  • Creating the cryptographic parameters needed for shielded TRC20 transfers
  • Generating zero-knowledge proofs for privacy-preserving transactions
  • Preparing transaction data that maintains sender and recipient anonymity
  • Supporting advanced shielded contract functionality in wallets and applications

Body

application/json
spend_authority_signature
string
required

Spending authority signature (128 hex characters, no 0x prefix)

Example:

"08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"

view_signature
string
required

View signature component (64 hex characters, no 0x prefix)

Example:

"1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b"

proof_generation_key
string
required

Proof generation key (64 hex characters, no 0x prefix)

Example:

"2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3"

payment_address
string
required

Recipient's shielded payment address (ztron1 format, 78 characters)

Example:

"ztron1768kf7dy4qquefp46szk978d65eeua66yhr4zv260c0uzj68t3tfjl3en9lhyyfxalv4jus30xs"

rcm
string
required

Randomness commitment value (64 hex characters, no 0x prefix)

Example:

"3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4"

ar
string
required

Authentication randomness value (64 hex characters, no 0x prefix)

Example:

"4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5"

alpha
string
required

Alpha parameter for proof generation (64 hex characters, no 0x prefix)

Example:

"5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6"

rsk
string
required

Randomness for spending key (64 hex characters, no 0x prefix)

Example:

"6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7"

ask
string
required

Authentication secret key (64 hex characters, no 0x prefix)

Example:

"7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8"

Response

200 - application/json

Successfully created shielded contract parameters

receive_description
object

Receive description for shielded transaction

spend_description
object

Spend description for shielded transaction

binding_signature
string

Binding signature for transaction