@tevm/voltaire / primitives/EntryPoint
primitives/EntryPoint
Type Aliases
EntryPointType
EntryPointType =Defined in: src/primitives/EntryPoint/EntryPointType.ts:10 EntryPoint address type - ERC-4337 entry point contractUint8Array&object
Type Declaration
[brand]
readonly[brand]:"EntryPoint"
See
- https://eips.ethereum.org/EIPS/eip-4337
- https://voltaire.tevm.sh/primitives/entry-point for EntryPoint documentation
Since
0.0.0Variables
EntryPoint
Defined in: src/primitives/EntryPoint/index.ts:34constEntryPoint:object
Type Declaration
equals()
equals: (entryPoint1,entryPoint2) =>boolean
Parameters
entryPoint1
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
entryPoint2
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
Returns
boolean
from()
from: (Create EntryPoint from address inputvalue) =>EntryPointType
Parameters
value
Address valuestring | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
Returns
EntryPointType
EntryPoint address
Throws
If address format is invalidExample
toHex()
toHex: (entryPoint) =>string
Parameters
entryPoint
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
Returns
string
ENTRYPOINT_V06
Defined in: src/primitives/EntryPoint/constants.js:7 EntryPoint v0.6.0 addressconstENTRYPOINT_V06:EntryPointType
ENTRYPOINT_V07
Defined in: src/primitives/EntryPoint/constants.js:15 EntryPoint v0.7.0 addressconstENTRYPOINT_V07:EntryPointType
Functions
_equals()
_equals(Defined in: src/primitives/EntryPoint/equals.js:15 Check if two EntryPoint addresses are equala,b):boolean
Parameters
a
EntryPointType
First EntryPoint
b
EntryPointType
Second EntryPoint
Returns
boolean
True if addresses are equal
Example
_toHex()
_toHex(Defined in: src/primitives/EntryPoint/toHex.js:15 Convert EntryPoint to hex stringentryPoint):string
Parameters
entryPoint
EntryPointType
EntryPoint address
Returns
string
Hex string (0x-prefixed)
Example
equals()
equals(Defined in: src/primitives/EntryPoint/index.ts:23entryPoint1,entryPoint2):boolean
Parameters
entryPoint1
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
entryPoint2
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
Returns
boolean
from()
from(Defined in: src/primitives/EntryPoint/from.js:16 Create EntryPoint from address inputvalue):EntryPointType
Parameters
value
Address valuestring | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
Returns
EntryPointType
EntryPoint address
Throws
If address format is invalidExample
toHex()
toHex(Defined in: src/primitives/EntryPoint/index.ts:17entryPoint):string
Parameters
entryPoint
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
Returns
string
