API Keys

What is API Key?

API Keys are used as an authentication mechanism to protect the TRONSCAN API service from unauthorized access. An API Key is a unique string generated by the system. API Keys are assigned to users for authentication during API callings. Users must include API Keys in the headers of their requests to authenticate their identity.

Why does TRONSCAN need API Key?

API Keys are used as a security mechanism that ensures only authenticated users can access the API service, protecting the system from malicious attacks and abuses.

Get an API Key

In the system, each user can obtain unique API Keys for authentication when calling the TRONSCAN API service. Users can obtain an API Key by following these steps:

1. Log in to the system and go to the API Keys page.

2. Click the "Add" button to enter the editing page. Enter your application name and security options. Then, the system will generate a unique API Key for you.

3. Copy the generated API Key token to your application to authenticate your identity when calling the TRONSCAN API service.

How to use your API Key?

In your application, you need to add the API Key to the header of your requests for authentication. The method used to add the API Key to the header is as follow:

curl -H 'TRON-PRO-API-KEY:your_api_key' 'https://apilist.tronscanapi.com/api/block'

Please replace “your_api_key” with your API Key.

If your request does not include the correct API Key, TRONSCAN will limit the rate of your request to protect the API service from abuse.

Notes

1. Do not disclose your API Key to anyone to prevent malicious use.

2. If your API Key is lost or leaked, you can delete your key on the “API Keys” page and generate a new one. If you are unable to operate your key, please contact our customer service immediately. We will invalidate the lost API Key and generate a new one for you.

3. If you need more help or encounter any problem, please click here to contact us. On the page that appears, click "API Related" and describe your problem. Our support team will respond to your ticket as soon as possible.

Last updated