Base API

Access to fast, reliable, and secure API endpoints for the Base ecosystem.

EVM RPC

https://rpc.ansybl.io/base/mainnet/evm_rpc/

Example: get latest block

curl 'https://rpc.ansybl.io/base/mainnet/evm_rpc/?X-API-KEY=<YOUR_API_KEY>' --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}' --header 'Content-Type: application/json'

You can alternatively pass your api key as a header. Example:

curl https://rpc.ansybl.io/base/mainnet/evm_rpc/ --header "X-API-KEY: <YOUR_API_KEY>" --data '{"jsonrpc": "2.0","method": "eth_getBlockByNumber","params": ["latest", false],"id": 1}' --header 'Content-Type: application/json'

Last updated