Account Adapters
Public Providers
Account Adapters
Quick Start
import { createClient, createPublicProviderViem, createAccountViem } from '@manifoldxyz/client-sdk';
import { createPublicClient, createWalletClient, http } from 'viem';
import { mainnet } from 'viem/chains';
// 1. Create public provider for blockchain reads
const publicClient = createPublicClient({
chain: mainnet,
transport: http('YOUR_RPC_URL')
});
const publicProvider = createPublicProviderViem({ 1: publicClient });
// 2. Initialize Manifold client
const client = createClient({ publicProvider });
// 3. Create account for transactions (when needed)
const walletClient = createWalletClient({ /* ... */ });
const account = createAccountViem({ walletClient });Last updated