UNPKG

@coinbase/cdp-sdk

Version:

SDK for interacting with the Coinbase Developer Platform Wallet API

22 lines 1.01 kB
import { GetUserOperationOptions, UserOperation } from "../../client/evm/evm.types.js"; import { CdpOpenApiClientType } from "../../openapi-client/index.js"; /** * Gets a user operation for a smart account by user operation hash. * * @param {CdpOpenApiClientType} client - The client to use to get the user operation. * @param {GetUserOperationOptions} options - Parameters for getting the user operation. * @param {SmartAccount} options.smartAccount - The smart account signing the user operation. * @param {string} options.userOpHash - The user operation hash. * * @returns A promise that resolves to the user operation. * * @example * ```ts * const userOp = await getUserOperation(client, { * smartAccount, * userOpHash: "0x1234567890123456789012345678901234567890123456789012345678901234", * }); * ``` */ export declare function getUserOperation(client: CdpOpenApiClientType, options: GetUserOperationOptions): Promise<UserOperation>; //# sourceMappingURL=getUserOperation.d.ts.map