UNPKG

@etherspot/prime-sdk

Version:

Etherspot Prime (Account Abstraction) SDK

19 lines (18 loc) 774 B
import { PaymasterAPI } from './PaymasterAPI'; import { UserOperationStruct } from '../contracts/account-abstraction/contracts/core/BaseAccount'; export interface PaymasterResponse { result: { paymasterAndData: string; verificationGasLimit: string; preVerificationGas: string; callGasLimit: string; }; } export declare class VerifyingPaymasterAPI extends PaymasterAPI { private paymasterUrl; private entryPoint; private context; constructor(paymasterUrl: string, entryPoint: string, context: any); getPaymasterAndData(userOp: Partial<UserOperationStruct>): Promise<PaymasterResponse>; } export declare const getVerifyingPaymaster: (paymasterUrl: string, entryPoint: string, context: any) => VerifyingPaymasterAPI;