Tron Wallet API (HTTP): 12 read methods
TRON's native wallet HTTP API on Triport: accounts, chain parameters, energy prices, contract calls without sending. Which calls map to JSON-RPC.
Send wallet requests to POST /rpc/tron/wallet/<name>. All operations require
x-token: $TRIPORT_API_KEY and the tron:rpc scope. Block values are decimal
JSON integers. Addresses default to hex-41; Base58 requires visible: true.
This is a read-only API: no broadcasttransaction and no /walletsolidity.
getaccountresource and estimateenergy are not served. The keyless
https://triport.io/public/tron URL exposes JSON-RPC reads, not wallet methods.
Wallet method or JSON-RPC?
Choose the native response when you need TRON-specific fields. An EVM call can answer a narrower question without returning the entire native object.
| Read task | Wallet HTTP method | JSON-RPC counterpart | Configured category |
|---|---|---|---|
| Native account details or only its TRX balance | getaccount | eth_getBalance for balance only | tron_read_rpc |
| Current block in native or EVM form | getnowblock | eth_getBlockByNumber with latest | tron_read_rpc |
| Block at a selected height | getblockbynum | eth_getBlockByNumber | Wallet: tron_read_rpc_heavy; JSON-RPC: tron_read_rpc |
| Contract result, with energy information on the native surface | triggerconstantcontract | eth_call for return bytes only | Wallet: tron_read_rpc_heavy; JSON-RPC: tron_read_rpc |
| Energy burn price among the current network parameters | getchainparameters | eth_gasPrice for one price | tron_read_rpc |
| Historical energy-price changes or only the current price | getenergyprices | eth_gasPrice has no price history | tron_read_rpc |
The surfaces differ in encoding and response fields; these pairs are task alternatives, not interchangeable wire formats. Limits are configured and unmeasured; see TRON limits. For connection values and plans, see the Tron RPC node endpoint.
Blocks
| Method | Category | Summary | Tier / rate limit |
|---|---|---|---|
getnowblock | tron_read_rpc | Return the latest block, without a solidified-state guarantee. | free+; 15 / 20 / 100 / 250 RPS sustained · short burst 30 / 40 / 200 / 500 (default, unmeasured) |
getblockbylatestnum | tron_read_rpc | Return a count of recent included blocks. | free+; 15 / 20 / 100 / 250 RPS sustained · short burst 30 / 40 / 200 / 500 (default, unmeasured) |
getblockbynum | tron_read_rpc_heavy | Return a native block by decimal height. | free+; 2 / 5 / 20 / 80 RPS sustained · short burst 4 / 10 / 40 / 160 (default, unmeasured) |
Chain and account state
| Method | Category | Summary | Tier / rate limit |
|---|---|---|---|
getaccount | tron_read_rpc | Return current native account state. | free+; 15 / 20 / 100 / 250 RPS sustained · short burst 30 / 40 / 200 / 500 (default, unmeasured) |
getchainparameters | tron_read_rpc | Return current native chain parameters. | free+; 15 / 20 / 100 / 250 RPS sustained · short burst 30 / 40 / 200 / 500 (default, unmeasured) |
getcontractinfo | tron_read_rpc | Return native contract metadata. | free+; 15 / 20 / 100 / 250 RPS sustained · short burst 30 / 40 / 200 / 500 (default, unmeasured) |
getenergyprices | tron_read_rpc | Return native energy price changes. | free+; 15 / 20 / 100 / 250 RPS sustained · short burst 30 / 40 / 200 / 500 (default, unmeasured) |
getnextmaintenancetime | tron_read_rpc | Return the next maintenance boundary. | free+; 15 / 20 / 100 / 250 RPS sustained · short burst 30 / 40 / 200 / 500 (default, unmeasured) |
getnodeinfo | tron_read_rpc | Return public status for the selected node. | free+; 15 / 20 / 100 / 250 RPS sustained · short burst 30 / 40 / 200 / 500 (default, unmeasured) |
listwitnesses | tron_read_rpc | Return the native witness inventory. | free+; 15 / 20 / 100 / 250 RPS sustained · short burst 30 / 40 / 200 / 500 (default, unmeasured) |
triggerconstantcontract | tron_read_rpc_heavy | Execute a read-only native contract call. | free+; 2 / 5 / 20 / 80 RPS sustained · short burst 4 / 10 / 40 / 160 (default, unmeasured) |
Confirmed execution
| Method | Category | Summary | Tier / rate limit |
|---|---|---|---|
gettransactioninfobyid | tron_read_rpc | Return confirmed transaction execution information. | free+; 15 / 20 / 100 / 250 RPS sustained · short burst 30 / 40 / 200 / 500 (default, unmeasured) |
Network constraints
- No public wallet mempool, pending queue, or WebSocket surface is published.
- Historical block depth varies; an old block does not establish historical state coverage.
- The OpenAPI response schema is extensible. Dated observations on method pages describe observed fields rather than a closed response schema.
- Remaining energy and bandwidth require
getaccountresource, which is not served. Account state fromgetaccountis not a substitute for that budget. - Included transaction information is not a solidified-state confirmation;
/walletsolidityis not served.
For simulation, burn prices and resource caveats, follow estimate a USDT transfer fee and TRON energy vs bandwidth.
See Tron errors, Tron limits, and the EVM JSON-RPC methods.