Using Web3 Libraries
If you’re building an application, web3 libraries provide a higher-level interface for interacting with Conduit RPC endpoints. They handle request formatting, response parsing, and type safety so you don’t have to work with raw JSON-RPC directly.
Replace [YOUR_RPC_URL] and [YOUR_API_KEY] with your values from the Conduit App.
eth_blockNumber
Get the latest block number.
eth_getBalance
Get the ETH balance of an address.
eth_call
Call a contract function without sending a transaction.
eth_getLogs
Fetch logs matching a filter. See Throughput for block range and event count limits.
eth_sendRawTransaction
Sign and broadcast a transaction.
eth_subscribe (WebSocket)
Subscribe to new block headers in real time. This requires a WebSocket connection. Please see WebSockets for connection management guidance.