How to Access Solidity Full Node Tron API

Step 1: To access Solidity Full Node Tron, use the following native access endpoints:

  • Network: Tron Mainnet
  • Request Type: POST
https://svc.blockdaemon.com/tron/mainnet/native/walletsolidity
  • Network: Tron Nile Testnet
  • Request Type: POST
https://svc.blockdaemon.com/tron/nile/native/walletsolidity

Step 2: Authenticate your request using your API key. You can include the API key using either of the following headers:

Authorization: Bearer YOUR_API_KEY
X-API-Key: YOUR_API_KEY

Step 3: Specify a Tron method at the end of the query:

https://svc.blockdaemon.com/tron/mainnet/native/walletsolidity/YOUR_METHOD

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 https://svc.blockdaemon.com/tron/mainnet/native/walletsolidity/gettransactioncountbyblocknum \
  --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.