getPaymasterAndData
Get paymaster and data details for a user operation.
import { getPaymasterAndData } from "thirdweb/wallets/smart"; const userOp = createUnsignedUserOp(...); const paymasterAndData = await getPaymasterAndData({ userOp, client, chain,});
function getPaymasterAndData(args: { entrypointAddress?: string; paymasterOverride?: ( userOp: UserOperationV06 | UserOperationV07, userOp: UserOperationV06 | UserOperationV07;
The userOp and options
let args: { entrypointAddress?: string; paymasterOverride?: ( userOp: UserOperationV06 | UserOperationV07, userOp: UserOperationV06 | UserOperationV07;};
let returnType: { callGasLimit?: bigint; preVerificationGas?: bigint; verificationGasLimit?: bigint;} & ( | { paymasterAndData: string } | { paymaster: string; paymasterData: string; paymasterPostOpGasLimit?: bigint; paymasterVerificationGasLimit?: bigint; });
The paymaster and data details for the user operation.