How to Access Tron API

Learn how to access Tron API.

Step 1: To access the available Tron methods, use the following native access endpoints:

  • Network: Tron Mainnet
  • Request Type: POST
  • Network: Tron Nile
  • Request Type: POST

Step 2: You should authorize your request. Learn more: Authentication Guide

Step 3: Specify a Tron method in the request body:

    "jsonrpc": "2.0",
    "id": 1,
    "method": "YOUR_METHOD",
    "params": []

Example Request

Here is a cURL example for using eth_protocolVersion to get the current Ethereum protocol version.

curl -X POST \ \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "eth_protocolVersion", "params": []}'

The following is a typical response you will get:

    "jsonrpc": "2.0",
    "id": "1",
    "result": "0x1e"

👋 Need Help?

Contact us through email or our support page for any issues, bugs, or assistance you may need.