UNPKG

based-auth

Version:

A Next.js/Node.js authentication and wallet API kit for Ethereum and Solana, with utilities for serialization and contract interaction, designed for serverless and API route usage.

9 lines (8 loc) 383 B
import { Config } from '@wagmi/core'; import { FallbackProvider, JsonRpcProvider, JsonRpcSigner } from 'ethers'; export declare function getEthersProvider(config: Config, { chainId }?: { chainId?: number; }): JsonRpcProvider | FallbackProvider | undefined; export declare function getEthersSigner(config: Config, { chainId }?: { chainId?: number; }): Promise<JsonRpcSigner>;