Skip to content
Alchemy Logo

BundlerActions

type BundlerActions = object;

Defined in: aa-sdk/core/src/client/decorators/bundlerClient.ts:53

estimateUserOperationGas<TEntryPointVersion>(
   request,
   entryPoint,
   stateOverride?): Promise<UserOperationEstimateGasResponse<TEntryPointVersion>>;

Defined in: aa-sdk/core/src/client/decorators/bundlerClient.ts:62

calls eth_estimateUserOperationGas and returns the result

Type Parameters

Type ParameterDefault type

TEntryPointVersion extends keyof EntryPointRegistryBase<unknown>

keyof EntryPointRegistryBase<unknown>

Parameters

ParameterTypeDescription

request

UserOperationRequest<TEntryPointVersion>

the UserOperationRequest to estimate gas for

entryPoint

`0x${string}`

the entry point address the op will be sent to

stateOverride?

StateOverride

the state override to use for the estimation

Returns

Promise<UserOperationEstimateGasResponse<TEntryPointVersion>>

the gas estimates for the given response


getSupportedEntryPoints(): Promise<`0x${string}`[]>;

Defined in: aa-sdk/core/src/client/decorators/bundlerClient.ts:109

calls eth_supportedEntryPoints and returns the entry points the RPC supports

Returns

Promise<`0x${string}`[]>

  • an array of the entrypoint addresses supported

getUserOperationByHash(hash): Promise<
  | null
  | UserOperationResponse<EntryPointVersion>>;

Defined in: aa-sdk/core/src/client/decorators/bundlerClient.ts:90

calls eth_getUserOperationByHash and returns the UserOperationResponse

Parameters

ParameterTypeDescription

hash

`0x${string}`

the hash of the UserOperation to fetch

Returns

Promise< | null | UserOperationResponse<EntryPointVersion>>

  • the user operation if found or null

getUserOperationReceipt(hash, tag?): Promise<null | UserOperationReceipt>;

Defined in: aa-sdk/core/src/client/decorators/bundlerClient.ts:99

calls eth_getUserOperationReceipt and returns the UserOperationReceipt

Parameters

ParameterTypeDescription

hash

`0x${string}`

the hash of the UserOperation to get the receipt for

tag?

"latest" | "pending"

if client want to get receipt for different block tag.

Returns

Promise<null | UserOperationReceipt>

  • a user operation receipt or null if not found

sendRawUserOperation<TEntryPointVersion>(request, entryPoint): Promise<`0x${string}`>;

Defined in: aa-sdk/core/src/client/decorators/bundlerClient.ts:77

calls eth_sendUserOperation and returns the hash of the sent UserOperation

Type Parameters

Type ParameterDefault type

TEntryPointVersion extends keyof EntryPointRegistryBase<unknown>

keyof EntryPointRegistryBase<unknown>

Parameters

ParameterTypeDescription

request

UserOperationRequest<TEntryPointVersion>

the UserOperationRequest to send

entryPoint

`0x${string}`

the entry point address the op will be sent to

Returns

Promise<`0x${string}`>

the hash of the sent UserOperation

Was this page helpful?