UNPKG

bnb-passport-attestation

Version:

BAS SDK - A toolkit for blockchain interaction

19 lines (18 loc) 593 B
/** * Environment type for network configuration */ export type EnvType = 'mainnet' | 'testnet'; export interface WalletProvider { isMetaMask?: boolean; isBitgetWallet?: boolean; isTokenPocket?: boolean; request: (args: { method: string; params?: any[]; }) => Promise<any>; on: (event: string, callback: (...args: any[]) => void) => void; removeListener: (event: string, callback: (...args: any[]) => void) => void; } export declare function useNetworkSwitch(): { switchToNetwork: (provider: WalletProvider, env: EnvType) => Promise<void>; };