Links

Fantom Samples

Fantom nodes accept HTTP requests using the JSON-RPC 2.0 specification.

eth_blockNumber

Returns most recent block number

Request

Curl
Postman
curl https://fantom-mainnet-rpc.allthatnode.com/'YOUR-API-KEY' \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
URL: https://fantom-mainnet-rpc.allthetnode.com/'YOUR-API-KEY'
RequestType: POST
Body:
{
"jsonrpc":"2.0",
"method":"eth_blockNumber",
"params":[],
"id":1
}

Response

{
"jsonrpc": "2.0",
"result": "0xceda4c",
"id": 1
}