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
  • 0xWeb and Dequanto
  • Install
  • Configure
  1. Dequanto

Info

PreviousZero Trust WalletNextRPC Client Pool

Last updated 2 years ago

Dequanto library simplifies blockchain development. It is built on top of and , but includes additional features, like , , , , and others.

0xWeb and Dequanto

To understand the relationship - 0xWeb uses dequanto as its dependency, and not vice-versa. Dequanto is a standalone library you can use in any blockchain-related project.

Install

πŸ“ƒ Distributed as Source Code

Though we have published the npm package - . But we advise using dequanto as a git submodule.

git submodule add https://github.com/0xweb-org/dequanto

You should use raw TypeScript source code files. You can browse, view, and modify any classes on your need.

Configuring Imports

Add @dequanto alias to your tsconfig.json

{
  "compilerOptions": {
    "baseUrl": "./",
    "paths": {
      "@dequanto/*": ["dequanto/src/*"]
    }
  }
}

If you have installed via npm, the path would be "node_modules/dequanto/src/*

Configure

There is a bunch of things in configuration to be loaded at application start - like Node URLs, API Keys. The most simple is to use 0xweb to create a default config file, which you can edit

0xweb config -e

Load that configuration on startup

import { Config } from '@dequanto/Config'

await Config.fetch();

It is safe to call the method multiple time, but enough only once.

πŸš€
ℹ️
ethersproject
web3.js
Nodes Pool
Tx Builder
Tx Writer
Indexer
dequanto
‼️