Quick Start
Initialise the SDK, interact with an ERC-20 token with zero ABI boilerplate, and send a transaction.
quickstart.ts
import { AwarizonWeb3 } from "@awarizon/web3" // 1. Initialise const awarizon = new AwarizonWeb3({ chain: "base", apiKey: process.env.AWARIZON_API_KEY, // awz_live_... }) // 2. ERC-20 — no ABI import needed const usdc = await awarizon.erc20("0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48") // 3. Read on-chain state (no gas, no wallet) console.log(await usdc.balanceOf("0xYourAddress")) // 1000000n console.log(await usdc.symbol()) // "USDC" console.log(await usdc.decimals()) // 6 // 4. Send a transaction const tx = await usdc.transfer("0xRecipient", 500_000n) console.log("hash:", tx.hash) // 0x... // 5. Load any custom contract with your own ABI const staking = await awarizon.contract({ address: "0x...", abi: STAKING_ABI }) await staking.stake(100n)