How to Get a TRON RPC Endpoint

TRON processes more USDT transfers than any other blockchain. If you're building payment systems, wallets, trading bots, or any application that touches TRC-20 tokens, you need a reliable TRON RPC endpoint. Here's how to set one up with GetBlock.

Step-by-Step: Get Your TRON RPC Endpoint

  1. Create a GetBlock Account

    Go to GetBlock Dashboard and sign up. You can register with email or via Google/GitHub OAuth.

  2. Create a TRON Endpoint

    Once logged in:

    1. Click "Shared Nodes" in the left sidebar
    2. Click "Create New Endpoint" or the "+" button
    1. Select:

      • Protocol: TRON
      • Network: Mainnet or Testnet
      • API Interface: gRPC (Fullnode) or JSON-RPC (Fullnode) or REST (Fullnode) or gRPC (Solidity) or JSON-RPC (Solidity)
      • Region: Frankfurt (EU) or New York or Singapore
    1. Click "Create": Your endpoint URL will be generated immediately.
  3. Copy Your Endpoint URL

    Your endpoint URL looks like this:

    bashhttps://shared.<region>.getblock.io/<ACCESS-TOKEN>/

    <region> is eu-central-1 (Frankfurt), us-east-1 (New York), or ap-southeast-1 (Singapore) — whichever you picked in step 2.

    The long string after the host is your access token — keep it private.

  4. Test the Connection

    bashcurl -X POST https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/wallet/getaccount \
      -H "Content-Type: application/json" \
      -d '{"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g", "visible": true}'
    bash

Code Sample

javascriptimport TronWeb from "tronweb";

const tronWeb = new TronWeb({
  fullHost: "https://shared.eu-central-1.getblock.io/<YOUR-ACCESS-TOKEN>/",
});

// Get TRX balance
const balance = await tronWeb.trx.getBalance("TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g");
console.log(`Balance: ${balance / 1e6} TRX`);

// Get USDT balance (TRC-20)
const contract = await tronWeb.contract().at("TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"); // USDT
const usdtBalance = await contract.balanceOf("TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g").call();
console.log(`USDT: ${usdtBalance / 1e6}`);
pythonimport requests

url = "https://shared.eu-central-1.getblock.io/<YOUR-ACCESS-TOKEN>/"

# Get latest block
response = requests.post(f"{url}wallet/getnowblock")
block = response.json()
print(f"Block: {block['block_header']['raw_data']['number']}")

# Get account info
response = requests.post(f"{url}wallet/getaccount", json={
    "address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
    "visible": True
})
print(f"Balance: {response.json().get('balance', 0) / 1e6} TRX")

TRON API Interfaces

TRON supports multiple API interfaces. GetBlock offers:

InterfaceUse Case
HTTP APINative TRON API — broadest method support
JSON-RPCEVM-compatible interface for cross-chain tooling
Solidity HTTP APIRead-only confirmed data queries

Most TRON developers use the HTTP API with TronWeb library.

What's Next?

Processing USDT at scale? Contact us for dedicated TRON infrastructure.