Endpoints
An endpoint is a Node API key. You create endpoints in Dashboard → Node API once you have a plan or a trial. Each endpoint has:- its own key;
- its own IP allowlist;
- its own usage counter — WU and calls for the current period, shown in the dashboard.
Changes made in the dashboard — a new endpoint, a new IP allowlist, an endpoint switched off or
deleted, a paid renewal — reach the node gateway within about 30 seconds. A key you have just created
may get
401 unknown_key during that time.Node API keys and REST API keys
Node API keys are a separate kind of key. An endpoint key works only atnode.tronrental.com; the
TronRental REST API (api.tronrental.com) refuses it with 403 NODE_API_KEY_ONLY. Your REST API keys,
in turn, do not work at the node and get 401 unknown_key there.
Passing the key over HTTP
Send the key in one of these places:
Header names are not case-sensitive. A key in the path is removed before the request is passed to the
node, so the node never sees it.
400 key_conflict, because we cannot tell which of them
should pay.
Libraries
TronWeb sends the headers you give it:api_key= only to its default host, so with our address it would send no key at
all. Set the header on the provider’s session yourself — or put the key in the path, with the
trailing slash: without it tronpy drops the last segment of the address, and the key with it.
Passing the key over gRPC
Send the key in thetron-pro-api-key metadata of every call (x-api-key and
authorization: Bearer <YOUR_KEY> work too). gRPC has no path to carry a key. See gRPC.
IP allowlist
Each endpoint can be limited to a list of IP addresses — IPv4 or IPv6, exact addresses, not ranges. With an empty list the key works from any address. With a list, requests from any other address get403 ip_not_allowed. An IPv4 address written in IPv6 form (::ffff:203.0.113.7) counts as the IPv4
address itself.