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": {}
}
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": {}
}
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)txID
— the transaction ID hashraw_data_hex
— the raw transaction data in hexadecimal formatraw_data
— the structured raw transaction datawallet/createshieldedtransaction
method is used for:
Successfully created shielded transaction
The response is of type object
.