Skip to main content
These are the methods that wallets should implement to handle Tron transactions and messages via WalletConnect.

Network / Chain Information

Session Properties

To enable the new simplified transaction structure, wallets should include tron_method_version: "v1" in their sessionProperties during the connection handshake:
When 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 address
    • transaction (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 strings
    • raw_data (object) - The raw transaction data
    • raw_data_hex (string) - The hex-encoded raw transaction data
    • visible (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 ID
  • signature (array) - Array of signature strings
  • raw_data (object) - The raw transaction data
  • raw_data_hex (string) - The hex-encoded raw transaction data

Returns

The transaction result:
  • result (boolean) - Whether the transaction was successfully broadcast
  • txid (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

  1. address (string) - The Tron address to query

Returns

number - The balance in SUN (1 TRX = 1,000,000 SUN)

Example

  • Request:
  • Response:

Additional Resources

For more information about Tron RPC methods and implementation details, please refer to the official Tron documentation.