Skip to content
Overview
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()

Community

Check out the following places for more wagmi-related content: