Documentation Index
Fetch the complete documentation index at: https://polynode.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Both SDKs include a method to send JSON-RPC requests through rpc.polynode.dev. Transaction submission goes directly to the current block-producing validator for optimal inclusion. Read calls are served from our P2P infrastructure.
Usage
// Block number (served locally, no external call)
const blockNum = await pn.rpc('eth_blockNumber');
// Gas price (from PolyNode's gas oracle)
const gasPrice = await pn.rpc('eth_gasPrice');
// Read calls (proxied to public RPC)
const balance = await pn.rpc('eth_getBalance', ['0xabc...', 'latest']);
const block = await pn.rpc('eth_getBlockByNumber', ['latest', false]);
let block_num = client.rpc_call("eth_blockNumber", serde_json::json!([])).await?;
let gas_price = client.rpc_call("eth_gasPrice", serde_json::json!([])).await?;
let balance = client.rpc_call("eth_getBalance",
serde_json::json!(["0xabc...", "latest"])).await?;
See the RPC documentation for the full list of supported methods and limitations.