API documentation

API documentation

Jul 5, 2024

Support for Standard Solana API

Our service provides comprehensive support for all types of requests defined in the standard Solana API, including even those requests that are restricted in the public Solana RPC. For in-depth details regarding request types, syntax, and responses, please consult the official Solana documentation.

Fetch Solana Block Production (Example)

curl https://solana-api.instantnodes.io/token-<your-api-key> \
-X POST \
-H “Content-Type: application/json” \
-d '{“id”: 1, “jsonrpc”: “2.0”, "method”: “getBlockProduction”}'

Calculate priority fees (Example)

curl -s https://solana-api.instantnodes.io/token-<my_access_token> \
-m 30 \
-X POST \
-H "Content-Type: application/json" \
-d '{"method": "getRecentPrioritizationFees", "jsonrpc": "2.0", "params": [[], {"percentile": 2000}], "id": "20"}'

gRPC Geyser (Example)

grpcurl \
-H "x-token: <your-api-key>" \
-d '{"count": "12345"}' \
-import-path <path-to-proto-files> \
-proto geyser.proto solana-grpc-geyser.instantnodes.io:443 geyser.Geyser/Ping

Path to proto files - https://github.com/rpcpool/yellowstone-grpc/tree/master/yellowstone-grpc-proto/proto

© 2024 Best Architects L.L.C-FZ

© 2024 Best Architects L.L.C-FZ

© 2024 Best Architects L.L.C-FZ