Idempotency on errors: On 4xx or 5xx, Privy caches the response and replays it for the same
key. Generate a new key to retry after a server error. Policy violations are an exception and
allow same-key retries.
Request authorization signature. If multiple signatures are required, they should be comma
separated.
Path Parameters
string
required
ID of the Tron wallet to sign with.
Body
string
required
Must be "tron_signTransaction".
object
required
Hide properties
object
required
Hide properties
array
required
Array of exactly one contract object. Use TransferContract for native TRX transfers; use TriggerSmartContract for TRC-20 transfers and other smart contract calls. All addresses must be 41-prefixed hex (use TronWeb.address.toHex() to convert from base58check).TransferContract:
type: "TransferContract"
owner_address: sender, 41-prefixed hex
to_address: recipient, 41-prefixed hex
amount: sun (1 TRX = 1,000,000 sun)
TriggerSmartContract:
type: "TriggerSmartContract"
owner_address: caller, 41-prefixed hex
contract_address: contract, 41-prefixed hex
data (optional): ABI-encoded calldata, hex string
call_value (optional): TRX value in sun sent with the call
call_token_value (optional): TRC-10 token value
token_id (optional): TRC-10 token ID
string
required
Block reference bytes — 4 hex characters. Must be fetched fresh from chain before signing (expires in ~60s). Use TronWeb.trx.getCurrentRefBlockParams().
Transaction creation timestamp in Unix milliseconds. Defaults to Date.now() if omitted.
number
Maximum energy fee in sun. Required for TriggerSmartContract. 100_000_000 (100 TRX) is a safe default for standard TRC-20 transfers.
string
Transaction memo, hex-encoded. Distinct from TriggerSmartContract.data (calldata).
Returns
string
Always "tron_signTransaction".
string
The signed transaction hex: rawDataHex + signatureHex. The signature occupies the last 130 hex
characters (65 bytes). Pass directly to POST /wallet/broadcasthex on a Tron full node, or use
TronWeb.trx.sendRawTransaction().
string
Always "hex".
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.