Alchemy Logo

isValidPaymasterAndData

function isValidPaymasterAndData<TEntryPointVersion>(request): boolean;

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

Utility method for asserting a UserOperationRequest has valid fields for the paymaster data

Type ParameterDefault type

TEntryPointVersion extends EntryPointVersion

EntryPointVersion

ParameterTypeDescription

request

UserOperationStruct<TEntryPointVersion>

a UserOperationRequest to validate

boolean

a type guard that asserts the UserOperationRequest is a UserOperationRequest

Was this page helpful?