UNPKG

@owlprotocol/contracts-account-abstraction

Version:

ERC4337 Account Abstraction support for deploying relevant smart contracts and interacting with UserOps.

19 lines (18 loc) 975 B
import { Address, BundlerRpcSchema, EIP1193Parameters, EIP1193RequestFn, Hash, Hex, Prettify, PublicRpcSchema, RpcTransaction } from "viem"; import { UserOperation } from "viem/account-abstraction"; export type RpcGetUserOperationReturnType07 = Prettify<{ /** The block hash the User Operation was included on. */ blockHash: Hash; /** The block number the User Operation was included on. */ blockNumber: Hex; /** The EntryPoint which handled the User Operation. */ entryPoint: Address; /** The hash of the transaction which included the User Operation. */ transactionHash: Hash; transaction?: RpcTransaction; /** The User Operation. */ userOperation: UserOperation<"0.7", Hex>; }> | null; export declare function createRequestGetUserOperationByHash(request: EIP1193RequestFn<PublicRpcSchema>): (args: EIP1193Parameters<BundlerRpcSchema> & { method: "eth_getUserOperationByHash"; }) => Promise<RpcGetUserOperationReturnType07>;