npm init starkweb
Overview
// 1. Import modules.
import { createPublicClient, http } from "starkweb";
import { mainnet } from "starkweb/chains";
// 2. Set up your client with desired chain & transport.
const client = createPublicClient({
chain: mainnet,
transport: http(),
});
// 3. Consume an action!
const blockNumber = await client.getBlockNumber();
Features
starkweb supports all these features out-of-the-box:
- Abstractions over the JSON-RPC API to make your life easier
- First-class APIs for interacting with Smart Contracts
- Language closely aligned to official Starknet terminology
- Import your Browser Extension, WalletConnect or Private Key Wallet
- Browser native BigInt, instead of large BigNumber libraries
- Utilities for working with ABIs (encoding/decoding/inspection)
- TypeScript ready from ABIs and EIP-712 Typed Data
- First-class support for Anvil, Hardhat & Ganache
- Test suite running against forked Ethereum network */}
Community
Check out the following places for more Starkweb-related content:
- Follow @NethermindStark on Twitter for project updates
- Join the discussions on Telegram