UNPKG

@etherspot/remote-signer

Version:

Etherspot Permissioned Signer SDK - signs the UserOp with SessionKey and sends it to the Bundler

18 lines (15 loc) 781 B
import { LocalAccount } from 'viem'; import { E as ExtendedLocalAccount, U as UserOperation } from '../../ERC4337Utils-DFwtlIAE.js'; import '../types/bignumber.js'; import '../types/common-types.js'; import 'node_modules/viem/_types/errors/utils'; type RemoteSignerParams = { account: LocalAccount; chainId: number; apiKey: string; sessionKey: string; permissionsBackendUrl?: string; }; declare function toRemoteSigner({ account, chainId, apiKey, sessionKey }: RemoteSignerParams): Promise<ExtendedLocalAccount>; declare const signUserOperation: (etherspotWalletAccount: LocalAccount, chainId: number, apiKey: string, sessionKey: string, userOp: UserOperation) => Promise<UserOperation>; export { type RemoteSignerParams, signUserOperation, toRemoteSigner };