Installation
npm install @mento-protocol/mento-sdk viem
# or
pnpm add @mento-protocol/mento-sdk viem
# or
yarn add @mento-protocol/mento-sdk viemCreate the client
import { Mento, ChainId } from '@mento-protocol/mento-sdk'
// Use default public RPC for the chain
const mento = await Mento.create(ChainId.CELO)
// Or pass a custom RPC URL
const mento = await Mento.create(ChainId.CELO, 'https://your-rpc-url.com')
// Or pass an existing viem PublicClient (e.g. for custom transport or chain)
const mento = await Mento.create(ChainId.CELO, yourPublicClient)What you can do next
Area
Guides
Last updated