Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IEntryPoint

Inherits: IEntryPointNonces, IEntryPointStake

Entry point for user operations. User operations are validated and executed by this contract.

Functions

handleOps

Executes a batch of user operations.

function handleOps(PackedUserOperation[] calldata ops, address payable beneficiary) external;

Parameters

NameTypeDescription
opsPackedUserOperation[]
beneficiaryaddress payableAddress to which gas is refunded upon completing the execution.

handleAggregatedOps

Executes a batch of aggregated user operations per aggregator.

function handleAggregatedOps(UserOpsPerAggregator[] calldata opsPerAggregator, address payable beneficiary) external;

Parameters

NameTypeDescription
opsPerAggregatorUserOpsPerAggregator[]
beneficiaryaddress payableAddress to which gas is refunded upon completing the execution.

Errors

FailedOp

A user operation at opIndex failed with reason.

error FailedOp(uint256 opIndex, string reason);

FailedOpWithRevert

A user operation at opIndex failed with reason and inner returned data.

error FailedOpWithRevert(uint256 opIndex, string reason, bytes inner);

Structs

UserOpsPerAggregator

Batch of aggregated user operations per aggregator.

struct UserOpsPerAggregator {
    PackedUserOperation[] userOps;
    IAggregator aggregator;
    bytes signature;
}