Alchemy Logo

getUserOperationError

function getUserOperationError<TTransport, TChain, TAccount>(
  client,
  request,
  entryPoint,
): Promise<void>;

Defined in: aa-sdk/core/src/actions/smartAccount/getUserOperationError.ts:28

Retrieves the error message from an entrypoint for a User Operation.

Type ParameterDefault type

TTransport extends Transport

Transport

TChain extends undefined | Chain

undefined | Chain

TAccount extends | undefined | SmartContractAccount

| undefined | SmartContractAccount

ParameterTypeDescription

client

BaseSmartAccountClient<TTransport, TChain, TAccount>

the smart account client to use for RPC requests

request

UserOperationRequest

the uo request to get the error for

entryPoint

EntryPointDef

the entrypoint instance to send the uo to

Promise<void>

the error message from the entrypoint

Was this page helpful?