wallet/createshieldedtransaction; attempting to POST to that route returns HTTP 405. Build shielded transactions locally using TRON shielded transaction libraries.
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
transparent_from_address— the transparent TRX address sending funds (optional)from_amount— the amount to send from transparent address (in sun)spend_authority_signature— array of spending authority signatures for shielded inputsask— authentication secret key for transaction signingnsk— nullifier secret key for creating nullifiersovk— outgoing viewing key for transaction encryptionto_address— recipient shielded addressto_amount— amount to send to shielded address (in sun)
Response
txID— the transaction ID hashraw_data_hex— the raw transaction data in hexadecimal formatraw_data— the structured raw transaction data
Use case
Thewallet/createshieldedtransaction method is used for:
- Creating fully signed shielded TRX transactions for immediate broadcast
- Transferring TRX between transparent and shielded addresses
- Supporting complete privacy-preserving TRX transactions
- Enabling applications to create ready-to-broadcast shielded transactions
Client-side implementation
Public nodes typically return HTTP 405 for this route. Build shielded transactions client-side using TRON privacy libraries (e.g., tronweb with shielded support) or Sapling-compatible implementations. Generate and sign the transaction locally, then broadcast via
wallet/broadcasttransaction.- Construct the shielded inputs (spends) and outputs (receives) using your key material (ask, nsk, ovk)
- Generate the zero-knowledge proof parameters offline
- Sign the transaction with spending authority signatures
- Build the complete signed raw transaction structure
- Broadcast the transaction via
wallet/broadcasttransaction