Avalanche
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Avalanche
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
curl is the fastest way to poke at the Avalanche C-Chain without pulling in an SDK — ideal for testing an endpoint, debugging a malformed payload, or wiring an RPC call into a shell script or CI job. Every C-Chain JSON-RPC request is an HTTP POST with the header Content-Type: application/json, carrying a JSON body that names the method and params. Your API key goes in the URL path: https://avalanche.therpc.io/YOUR_API_KEY.
You can authenticate to the C-Chain endpoint two ways: place the key directly in the URL path (https://avalanche.therpc.io/YOUR_API_KEY), or send it as a Bearer token in the Authorization: Bearer YOUR_API_KEY header. Either way, the request must be a POST with Content-Type: application/json — Avalanche JSON-RPC does not accept GET requests.