快速入门
四个步骤。只需 cURL — 无需安装 SDK。
无需信用卡。注册后 TheRPC 立即为您生成 API 密钥。
打开控制台,从 API Keys 面板复制密钥。
rpc_live_••••••••8af2
开箱即用的 cURL,针对 30 条链中的任意一条发送 JSON-RPC 2.0 请求。
1curl https://ethereum.therpc.io/<YOUR_KEY> \2 -X POST -H "Content-Type: application/json" \3 -d '{"jsonrpc":"2.0","method":"eth_blockNumber","id":1}'
您将看到 Ethereum 的最新区块编号。其他所有链的返回格式相同。
{"jsonrpc":"2.0","id":1,"result":"0x14a3b27"}