
A Tron network RPC URL is an endpoint that lets dApps, wallets, and scripts read data from and broadcast transactions to the Tron blockchain. Public providers such as TronGrid, dRPC, and Ankr expose HTTP and gRPC endpoints for Mainnet plus the Shasta and Nile testnets.
Key takeaways
- A Tron network RPC URL is the connection point between your application and a Tron node.
- TronGrid (run by the TRON Foundation) is the most widely used provider; its main HTTP JSON-RPC endpoint is
https://api.trongrid.io/jsonrpc. - Tron is non-EVM, so most developers use TronWeb or gRPC clients rather than MetaMask’s EVM JSON-RPC.
- Always test on Shasta or Nile before deploying to Mainnet.
- Latency depends on your region, the provider, and current load — benchmark it yourself rather than trusting a single published number.
What is a Tron network RPC URL?

An RPC (Remote Procedure Call) URL is a server address your software calls to interact with a blockchain node. For Tron, the endpoint accepts requests — for example, fetching an account balance, reading a smart contract, or broadcasting a signed transaction — and returns a structured response. Without an RPC endpoint, an application has no way to reach the network.
Tron exposes two main interface styles. The HTTP API (including a JSON-RPC layer) is convenient for quick queries and browser apps. The gRPC API uses protocol buffers for lower-overhead, strongly typed communication and is common in backend services. Both are documented on the official TRON developer documentation.
How do you connect to the Tron blockchain with an RPC URL?
The most reliable way to interact with Tron is the official TronWeb library, which wraps the HTTP API. A minimal connection looks like this:
const TronWeb = require('tronweb');
const tronWeb = new TronWeb({ fullHost: 'https://api.trongrid.io' });
const block = await tronWeb.trx.getCurrentBlock();
For a raw JSON-RPC call you can query the HTTP endpoint directly. The example below requests the latest block and is reproducible from any terminal:
curl -X POST https://api.trongrid.io/wallet/getnowblock
The node returns JSON containing the block header, number, and timestamp. Run it yourself to confirm an endpoint is live before wiring it into an app.
Can you add a Tron network RPC URL to MetaMask?
Not in the usual way. MetaMask targets EVM chains, and Tron is not EVM-compatible, so its account model and address format differ. Some providers expose an EVM-style JSON-RPC shim, but for real Tron development you should use a Tron-native wallet such as TronLink together with TronWeb. If you are evaluating wallet safety first, see our guide on whether the TronLink wallet is safe.
Setting up the Shasta and Nile testnets
Testnets let you simulate transactions without spending real TRX. Use these full-host endpoints with TronWeb:
- Shasta testnet:
https://api.shasta.trongrid.io - Nile testnet:
https://nile.trongrid.io
Both offer faucets so you can request free test TRX. Always confirm contract logic on a testnet before any Mainnet deployment.
Which Tron RPC URL providers should you compare?
Choosing a provider comes down to interface support, reliability, and pricing. The table below summarizes widely used options. Endpoints are current as of 2026; verify each against the provider’s own documentation before relying on it.
| Provider | Example endpoint | Interfaces | Notes |
| TronGrid | https://api.trongrid.io (HTTP / JSON-RPC); grpc.trongrid.io:50051 (gRPC) |
HTTP, JSON-RPC, gRPC | Official, run by the TRON Foundation; free tier with API keys |
| dRPC | https://tron.drpc.org |
HTTP / JSON-RPC | Globally distributed nodes; free and paid tiers |
| Ankr | https://rpc.ankr.com/tron_jsonrpc |
JSON-RPC | Analytics and higher-throughput paid plans |
| Self-hosted node | Your own java-tron server |
HTTP, gRPC | Full control and privacy; higher operational effort |
Why is TronGrid the most common choice?
TronGrid is maintained by the TRON Foundation, so it tracks protocol upgrades closely and is the default in most tutorials and the TronWeb docs. It offers a free tier (rate-limited) and API keys for higher throughput, which suits everything from hobby dApps to production DeFi back ends. For background on the network itself, see our comprehensive overview of the Tron network.
When does a self-hosted node make sense?
Running your own java-tron node gives you privacy, no rate limits, and independence from third-party uptime. The trade-off is real: full nodes require significant storage and ongoing maintenance. For teams that send a high volume of transactions, a related cost concern is on-chain resources — you can buy energy and bandwidth on TronSave as an alternative to staking TRX, though energy rental is separate from which RPC endpoint you connect to. Other options include staking TRX directly for resources or using a managed provider.
What are common use cases for Tron RPC URLs?

RPC endpoints power most activity on the network. Typical examples include:
- Building dApps: query balances, read TRC-20 token data, and call smart contracts.
- Connecting wallets: Tron-native wallets like TronLink use RPC endpoints to sign and broadcast TRX and TRC-20 transfers.
- Transaction monitoring: back ends poll for new blocks and confirmations; explorers like TronScan are built on the same data.
- Automation: scripts batch payouts, track stablecoin flows, or watch specific addresses.
Whatever the use case, the pattern is the same: send a request to the endpoint, parse the JSON or protobuf response, and act on it. Keeping a fallback provider configured helps your app stay online if one endpoint degrades.
Frequently asked questions
What is an RPC URL in the Tron network?
It is the server endpoint your application calls to read data from or send transactions to a Tron node, such as https://api.trongrid.io.
Can I add Tron to MetaMask?
Not natively — Tron is non-EVM. Use a Tron-native wallet like TronLink with the TronWeb library instead of MetaMask’s EVM JSON-RPC.
Which Tron RPC URL is the fastest?
There is no single fastest endpoint; latency varies by region, provider, and load. Benchmark a few providers (TronGrid, dRPC, Ankr) from your own server and measure response times directly.
How do I test dApps on Tron?
Use the Shasta testnet (https://api.shasta.trongrid.io) or Nile testnet (https://nile.trongrid.io) with free faucet TRX before deploying to Mainnet.
Do I need an API key to use a Tron network RPC URL?
The public TronGrid tier works without a key but is rate-limited. For production traffic, register a free API key or use a paid plan for higher throughput.
What is the difference between the HTTP and gRPC APIs?
The HTTP API (including JSON-RPC) is easy to call from browsers and scripts; gRPC uses protocol buffers for lower-overhead, strongly typed communication and suits backend services.
