Arbitrum One
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Arbitrum One
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
TheRPC is a managed JSON-RPC provider that gives you fast, authenticated access to Arbitrum One without running your own Nitro node. Developers building on Arbitrum One — DeFi front ends for GMX or Camelot, wallets, indexers, trading backends — use it for low-latency reads against the sequencer and reliable transaction submission on chain ID 42161. This guide takes you from zero to a working JSON-RPC call in a few minutes, with examples in curl, JavaScript, and Python.
Sign up for a free account at TheRPC.io, then open the Dashboard and head to the API Keys section to create a new key or copy an existing one. The key is a secret token you pass on every request; in this guide it stands in for the YOUR_API_KEY placeholder in the Arbitrum One endpoint https://arbitrum.therpc.io/YOUR_API_KEY.
TheRPC serves many networks, each on its own endpoint host. For Arbitrum One, point your client at https://arbitrum.therpc.io/YOUR_API_KEY. Set the endpoint URL and your API key as environment values, as shown below, so the rest of your code stays clean and you can swap networks later by changing a single variable.
Now make your first call to Arbitrum One. The three snippets below — curl, JavaScript, and Python — all run the same eth_blockNumber request and return the latest block height. Pick whichever matches your stack; for broader language coverage, see the full Tools & SDKs reference.
For anything beyond a single read, Web3 libraries beat raw HTTP calls: they handle ABI encoding and decoding, transaction signing, gas estimation that accounts for Arbitrum One's combined L2-plus-L1 fee model, and nonce management for you. Because Arbitrum One is Ethereum-equivalent, standard libraries work unchanged. See the Tools & SDKs documentation for full language-specific coverage.
The All Methods page is the complete reference for every JSON-RPC method available on Arbitrum One through TheRPC. Each entry includes a description, the request and response formats, copy-paste code examples, and typical use cases, organized by namespace so you can quickly find the eth_, debug_, trace_, or utility method you need.
Each network TheRPC supports has its own dedicated endpoint. For Arbitrum One the URL is https://arbitrum.therpc.io/YOUR_API_KEY — keep it in configuration so switching to or from another network is a one-line change.