Skip to main content
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 locally or proxied to a public RPC.

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]);
See the RPC documentation for the full list of supported methods and limitations.