Enter your Stripe checkout session ID to generate your API key:
Your API key is generated! You can now use it to access FastNear RPC endpoints.
There are two ways to authenticate your RPC requests:
1. Pass apiKey in the URL:
curl "https://rpc.mainnet.fastnear.com?apiKey=" \
-H "Content-Type: application/json" \
--data-raw '{"method":"block","params":{"finality":"optimistic"},"id":123,"jsonrpc":"2.0"}'
2. Provide authorization header:
curl "https://rpc.mainnet.fastnear.com" \
-H "Authorization: Bearer " \
-H "Content-Type: application/json" \
--data-raw '{"method":"block","params":{"finality":"optimistic"},"id":123,"jsonrpc":"2.0"}'
Need help or have questions?
Join our Telegram group @fast_near for community support and updates!
Check out our docs docs.fastnear.com