Alchemy Logo

bypassPaymasterAndDataEmptyHex

function bypassPaymasterAndDataEmptyHex<TEntryPointVersion>(overrides): boolean;

Defined in: aa-sdk/core/src/utils/userop.ts:183

An alternative to bypassPaymasterAndData which only returns true if the data parameter is "0x," this is useful for cases when middleware should be bypassed ONLY IF the UserOp will pay for its own gas

Type ParameterDefault type
TEntryPointVersion extends EntryPointVersionEntryPointVersion

ParameterTypeDescription
overridesanythe user operation overrides to check

boolean

whether the paymaster middleware should be bypassed

Was this page helpful?