Network / Chain Information
Session Properties
To enable the new simplified transaction structure, wallets should includetron_method_version: "v1" in their sessionProperties during the connection handshake:
tron_method_version is set to "v1", the transaction structure is simplified to remove the nested transaction.transaction format. If not set, the legacy nested format is used for backward compatibility.
tron_signTransaction
Sign a Tron transaction without executing it.Parameters
- The transaction to sign:
address(string) - The sender’s Tron addresstransaction(object) - The transaction object to sign
Returns
- The signed transaction:
txID(string) - The transaction ID (deterministically derived from raw transaction)signature(array) - Array of signature stringsraw_data(object) - The raw transaction dataraw_data_hex(string) - The hex-encoded raw transaction datavisible(boolean) - Whether addresses are in visible format
Example (New Format with tron_method_version: “v1”)
Request with the simplified format:- Response:
tron_signMessage
Sign a personal message.Parameters
The message to sign:message(string) - The message to sign (plain text)address(string) - The account address to sign with
Returns
The signed message:signature(string) - The signature string
Example
- Request:
- dApp result (what client.request(…) resolves to):
The methods below are not part of the required wallet surface in the Reown official Tron Wallet example.
dApps may perform these directly against a Tron node or gateway. Wallets may implement them for convenience, but they’re not required.
tron_sendTransaction (optional)
Broadcast a signed transaction to the Tron network.Parameters
The signed transaction object:txID(string) - The transaction IDsignature(array) - Array of signature stringsraw_data(object) - The raw transaction dataraw_data_hex(string) - The hex-encoded raw transaction data
Returns
The transaction result:result(boolean) - Whether the transaction was successfully broadcasttxid(string) - The transaction ID that can be used to look up the transaction
Example
- Request:
- Response:
tron_getBalance (optional)
Get the TRX balance of a Tron address.Parameters
address(string) - The Tron address to query
Returns
number - The balance in SUN (1 TRX = 1,000,000 SUN)
Example
- Request:
- Response: