UNPKG

@keccak256-evg/passport-sdk

Version:

T-REX Passport SDK for interacting with Passport and Registry contracts

22 lines 871 B
import { PublicClient, WalletClient, Chain } from 'viem'; import { Address } from '../types'; import { CreateClientOptions } from '../types/config'; /** * 创建 Public Client */ export declare function createViemPublicClient(options: CreateClientOptions): PublicClient; /** * 创建 Wallet Client */ export declare function createViemWalletClient(options: CreateClientOptions & { account?: any; }): WalletClient; /** * 使用 viem 调用 getPendingBindWallets 方法(需要 msg.sender 验证) */ export declare function getPendingBindWalletsWithViem(publicClient: PublicClient, passportAddress: Address, account: Address): Promise<readonly Address[]>; /** * 创建带有自定义链的 Public Client */ export declare function createViemClientWithCustomChain(rpcUrl: string, chainConfig?: Partial<Chain>): PublicClient; //# sourceMappingURL=viem.d.ts.map