Base
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Base
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
curl is the fastest way to test the Base JSON-RPC API without pulling in an SDK — handy for sanity-checking your endpoint, debugging a response, or scripting a quick health check in CI. Because Base is EVM-equivalent, the same eth_* methods you use on Ethereum work here against chain ID 8453. Every request is an HTTP POST carrying a JSON-RPC body, sent with the header Content-Type: application/json. Your API key lives in the URL path, so you send requests to https://base.therpc.io/YOUR_API_KEY.
By default your API key goes in the Base URL path (https://base.therpc.io/YOUR_API_KEY), but you can instead pass it as a Bearer token using the Authorization: Bearer YOUR_API_KEY header. Either way, all Base JSON-RPC requests must use POST with Content-Type: application/json.