UNPKG

@allo-team/allo-v2-sdk

Version:
16 lines (15 loc) 543 B
import { Chain, PublicClient, Transport } from "viem"; /** * * Returns a PublicClient instance that can be used to interact with the Allo v2 contracts. * * @remarks * This is a wrapper around the viem PublicClient class that sets the correct chain ID and transport. * * @param chain - The chain ID to connect to (this is a Chain type from viem) * @param rpc - The url of the RPC endpoint * @returns - A PublicClient instance * * @beta */ export declare const create: (chain: Chain, rpc?: string) => PublicClient<Transport, Chain>;