There is a public API server that allows developers to access the Avalanche® network without having to run a node themselves. The public API server is actually several AvalancheGo nodes behind a load balancer to ensure high availability and high request throughput.
Availability
The usage of public API nodes is free and available to everyone without any authentication or authorization. Rate limiting is present, but many of the API calls are cached, and the rate limits are quite high. If your application is running up against the limits, please contact us.
Using the Public API nodes
To access a particular API, just append the relevant API endpoint, as documented here. Namely, use the following endpoints for each chain respectively:
Avalanche Mainnet -
https://api.avax.network/
Avalanche Fuji Testnet -
https://api.avax-test.network/
For C-Chain API, the URL is
https://api.avax.network/ext/bc/C/rpc
.For X-Chain API, the URL is
https://api.avax.network/ext/bc/X
.For P-Chain API, the URL is
https://api.avax.network/ext/P
.
Supported APIs
The public API server supports all the API endpoints that make sense to be available on a public-facing service, including APIs for the X-Chain, P-Chain, and C-Chain. The rest of APIs can be found here.
For any additional questions, please view our other knowledge base articles or contact a support team member via the chat button. Examples are for illustrative purposes only.