πŸ•ΈοΈRPC Client Pool

Provide multiple RPC Node URLs per chain, this will make your application much more reliable. Even if one of the Nodes goes down or for some reason is not in sync, all your RPC calls will still work.

Web3ClientπŸ”— is the base class for all the EVM Platforms. This wraps web3 to provide pool-based communication with the nodes. It handles also gas and nonce values.

We provide pre-configured clients for

The endpoint configuration can be defined in the constructor, or it will be read from the application configurationπŸ”—.

An example, how to get the balance for an address

import { PolyWeb3Client } from '@dequanto/clients/PolyWeb3Client';

let client = new PolyWeb3Client();
let balance: bigint = client.getBalance('0x....');

Last updated