getUserOperationError

1function getUserOperationError<TTransport, TChain, TAccount>(
2 client,
3 request,
4 entryPoint,
5): 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 Parameters

Type ParameterDefault type

TTransport extends Transport

Transport

TChain extends undefined | Chain

undefined | Chain

TAccount extends | undefined | SmartContractAccount

| undefined | SmartContractAccount

Parameters

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

Returns

Promise<void>

the error message from the entrypoint