Appearance
TRON
| Endpoint | https://rpc.au.ro/tron |
| Protocol | java-tron HTTP API (REST) |
| gRPC | rpc.au.ro:443 — protocol.* methods, apikey metadata |
| Network | mainnet |
TRON is REST-style: the java-tron wallet API path goes after the chain segment — POST /tron/wallet/<method>.
Supported methods
Live-verified: wallet/getnowblock, wallet/getblockbynum, wallet/getnodeinfo, wallet/getchainparameters, wallet/getaccount, wallet/gettransactionbyid, wallet/broadcasttransaction — plus the rest of the standard wallet/* surface they represent.
Quick test
bash
curl -X POST https://rpc.au.ro/tron/wallet/getnowblock \
-H "apikey: $YOUR_API_KEY"
# {"blockID":"0000000004faa27e...","block_header":{"raw_data":{"number":83534462,...}}}SDK integration — TronWeb
TronWeb accepts our gateway as fullHost with the key as a custom header:
js
import { TronWeb } from 'tronweb'
const tronWeb = new TronWeb({
fullHost: 'https://rpc.au.ro/tron',
headers: { apikey: process.env.YOUR_API_KEY }
})
const block = await tronWeb.trx.getCurrentBlock()
console.log('height:', block.block_header.raw_data.number) // 83534819Recipes
Account & TRX balance
js
const acc = await tronWeb.trx.getAccount('TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t')
const trx = await tronWeb.trx.getBalance('TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t')TRC-20 read
js
const usdt = await tronWeb.contract().at('TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t')
const dec = await usdt.decimals().call()(Contract calls go through wallet/triggerconstantcontract under the hood — 20 CU for trigger-class methods.)
gRPC
java-tron's wallet gRPC is exposed at rpc.au.ro:443 and rpc.au.ro:8443 (TLS) — requests route by the protocol.* proto package, key as apikey metadata. Reflection covers the Cosmos services only, so for TRON supply the java-tron protos (or a protoset compiled from them) explicitly:
bash
grpcurl -H "apikey: $YOUR_API_KEY" \
-import-path ./protocol -proto api/api.proto \
rpc.au.ro:443 protocol.Wallet/GetNowBlockPort semantics (which call shapes work where) + proto tips: gRPC.
Send TRX (offline signing)
js
const tx = await tronWeb.transactionBuilder.sendTrx(to, amountSun, from)
const signed = await tronWeb.trx.sign(tx, process.env.PRIVATE_KEY)
const receipt = await tronWeb.trx.sendRawTransaction(signed)
// → wallet/broadcasttransaction; malformed payloads return
// {"code":"SIGERROR"/"TAPOS_ERROR",...} — the node validates firstLimitations
walletsolidity/*(solidity node history API) is not routed yet — usewallet/*confirmed-data methods.- Event log queries (
/eventAPI of tron event server) are not part of java-tron's HTTP API and are not available.