POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
createshieldedtransaction
wallet/createshieldedtransaction
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/createshieldedtransaction \
  --header 'Content-Type: application/json' \
  --data '{
  "transparent_from_address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
  "from_amount": 1000000,
  "spend_authority_signature": [
    "<string>"
  ],
  "ask": "0x08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890",
  "nsk": "0x09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890",
  "ovk": "0x0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890",
  "to_address": "ztron1abc123def456ghi789jklmno012pqr345stu678vwx90",
  "to_amount": 1000000
}'
{
  "txID": "0x1a2b3c4d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890",
  "raw_data_hex": "<string>",
  "raw_data": {}
}
TRON API method that creates a fully signed shielded TRX transaction. This method generates a complete privacy-preserving transaction that transfers TRX between shielded addresses while maintaining sender and recipient anonymity.
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 inputs
  • ask — authentication secret key for transaction signing
  • nsk — nullifier secret key for creating nullifiers
  • ovk — outgoing viewing key for transaction encryption
  • to_address — recipient shielded address
  • to_amount — amount to send to shielded address (in sun)

Response

  • txID — the transaction ID hash
  • raw_data_hex — the raw transaction data in hexadecimal format
  • raw_data — the structured raw transaction data

Use case

The wallet/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

Body

application/json
to_address
string
required

Recipient shielded address

Example:

"ztron1abc123def456ghi789jklmno012pqr345stu678vwx90"

to_amount
integer
required

Amount to send to shielded address in sun

Example:

1000000

transparent_from_address
string

Transparent TRX address sending funds

Example:

"TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE"

from_amount
integer

Amount to send from transparent address in sun

Example:

1000000

spend_authority_signature
string[]

Array of spending authority signatures

ask
string

Authentication secret key

Example:

"0x08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890"

nsk
string

Nullifier secret key

Example:

"0x09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890"

ovk
string

Outgoing viewing key

Example:

"0x0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890"

Response

200 - application/json

Successfully created shielded transaction

txID
string

Transaction ID hash

Example:

"0x1a2b3c4d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890"

raw_data_hex
string

Raw transaction data in hexadecimal

raw_data
object

Structured raw transaction data