Skip to content

Latest commit

 

History

History
76 lines (54 loc) · 3.36 KB

README.md

File metadata and controls

76 lines (54 loc) · 3.36 KB

quais-by-example

quais-by-example is collection of example scripts for the quais sdk. The quais sdk is a fork of ethers v5.7.2 with added functionality for Quai Network's multi-chain architecture.

Dependencies

While each one of the examples in this repository has its own dependency list, they all depend on the following packages:

Usage

Each example is an individually packaged example with its own package.json that contains relevant dependencies. To configure an example, simply navigate to an example directory with:

cd <example-name>

and install the dependencies with:

npm install

To run an example, you can use the node command:

node <example-script-name>.js

Overview

This repository has four main categories of examples:

  • Utilities: basic encoding and address utils
  • Queries: querying data from any Quai chain
  • Transactions: sending internal and external transactions
  • Contracts: single and multi-chain contracts

Utilities

Queries

  • query-balance - query the balance of an address on any Quai chain
  • query-block - query a block on any Quai chain
  • query-logs - query logs for smart contracts, transactions, or blocks
  • query-event - query smart contract event logs

Transactions

Contracts