Solana Samples
Solana nodes accept HTTP requests using the JSON-RPC 2.0 specification.
Returns the current block height of the node
Curl
Postman
curl https://solana-mainnet-rpc.allthatnode.com/'YOUR-API-KEY' \
--request POST \
--header "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1, "method":"getBlockHeight"}'
{"jsonrpc":"2.0","result":127475622,"id":1}
Last modified 1yr ago