How to Access Solidity Full Node Tron API

Learn how to access Access Solidity Full Node API for Tron.

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 at the end of the query:

Step 4: Specify the available parameters of the method in the request body.

Example Request

Here is a cURL example for using gettransactioncountbyblocknum to get transaction count in a block by block number.

curl --request POST \
     --url \
     --header 'authorization: Bearer YOUR_API_KEY' \
     --header 'content-type: application/json' \
     --data '
	"value": "7c2d4206c03a883dd9066d620335dc1be272a8dc733cfa3f6d10308faa37facc", 
  "visible": true

The following is a typical response you will get:

    "count": 3

👋 Need Help?

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