文章目录 / Contents
The TRONSCAN API needs a key in your request headers. Getting one takes minutes. Keeping it safe is the part people get wrong.
Get a key
- Register an account and confirm your email.
- Open the API documentation or developer section.
- Create a key and copy it into your server configuration.
Use it
Send the key in the required request header, usually named TRON-PRO-API-KEY. Free plans have rate limits, so check the quota before pointing a production service at it.
Keep it safe
The key belongs on your server, never in frontend code. If it leaks, rotate it in the console immediately; a leaked key gets burned by other people within hours.