isValidFactoryAndData

1function isValidFactoryAndData<TEntryPointVersion>(request): boolean;

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

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

Type Parameters

Type ParameterDefault type

TEntryPointVersion extends EntryPointVersion

EntryPointVersion

Parameters

ParameterTypeDescription

request

UserOperationStruct<TEntryPointVersion>

a UserOperationRequest to validate

Returns

boolean

a type guard that asserts the UserOperationStruct is a UserOperationRequest