Docs

getPaymasterAndData

Get paymaster and data details for a user operation.

Example

import { getPaymasterAndData } from "thirdweb/wallets/smart";
const userOp = createUnsignedUserOp(...);
const paymasterAndData = await getPaymasterAndData({
userOp,
client,
chain,
});

Parameters

Returns

  • The paymaster and data details for the user operation.