0xWeb
  • 0xWeb
  • πŸ’»Installation
  • πŸ—ƒοΈBlockchains
  • πŸ“¦Package Manager
    • πŸ“‚Folder structure
    • πŸš€Dequanto dependency
    • πŸŽ†Installing contracts
    • πŸ”’Versioning
  • πŸ”Wallet
    • πŸ”‘Keys notice
    • πŸ™‚Accounts
  • πŸ’»CLI
    • Commands Overview
  • πŸ—„οΈGnosis Safe
    • πŸ™†β€β™‚οΈZero Trust Wallet
  • πŸš€Dequanto
    • ℹ️Info
    • πŸ•ΈοΈRPC Client Pool
    • πŸ—οΈTx Builder
    • πŸ“€Tx Writer
    • ⛓️Blockchain Explorers
    • πŸͺ™Token Services
    • πŸ—ƒοΈIndexer
    • ✨Utilities
  • ⛑️Hardhat
    • ℹ️Info
    • ⬇️Installation
    • 🧩Compile
    • πŸ’«Deploy
  • 0️Openzeppelin
    • Openzeppelin contracts
Powered by GitBook
On this page
  1. Dequanto

RPC Client Pool

PreviousInfoNextTx Builder

Last updated 3 years ago

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.

πŸ”— 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

  • Ethereum - πŸ”—

  • Polygon - πŸ”—

  • Binance Smart Chain - πŸ”—

  • Hardhat - πŸ”—

  • Gnosis - πŸ”—

  • Arbitrum - πŸ”—

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

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....');
πŸš€
πŸ•ΈοΈ
Web3Client
EthWeb3Client
PolyWeb3Client
BscWeb3Client
HardhatWeb3Client
XDaiWeb3Client
ArbWeb3Client
configuration