Class PaymasterAPI

an API to external a UserOperation with paymaster info

Hierarchy

Index

Methods

getPaymasterAndData

  • Parameters

    • userOp: Partial<UserOperationStruct>

      a partially-filled UserOperation (without signature and paymasterAndData note that the "preVerificationGas" is incomplete: it can't account for the paymasterAndData value, which will only be returned by this method..

    Returns Promise<PaymasterResponse | undefined>

    the value to put into the PaymasterAndData, undefined to leave it empty