Skip to main content
@tevm/voltaire
@tevm/voltaire / primitives/Bundler

primitives/Bundler

Type Aliases

BundlerType

BundlerType = Uint8Array & object
Defined in: src/primitives/Bundler/BundlerType.ts:13 Bundler address type - ERC-4337 bundler node Bundlers aggregate user operations and submit them to the EntryPoint contract. They monitor the mempool, simulate operations, and bundle them into transactions.

Type Declaration

[brand]
readonly [brand]: "Bundler"

See

Since

0.0.0

Variables

Bundler

const Bundler: object
Defined in: src/primitives/Bundler/index.ts:31

Type Declaration

equals()
equals: (bundler1, bundler2) => boolean
Parameters
bundler1
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
bundler2
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
Returns
boolean
from()
from: (value) => BundlerType
Create Bundler from address input
Parameters
value
Address value string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
Returns
BundlerType Bundler address
Throws
If address format is invalid
Example
const bundler = Bundler.from("0x742d35Cc6634C0532925a3b844Bc9e7595f251e3");
toHex()
toHex: (bundler) => string
Parameters
bundler
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
Returns
string

Functions

_equals()

_equals(a, b): boolean
Defined in: src/primitives/Bundler/equals.js:15 Check if two Bundler addresses are equal

Parameters

a
BundlerType First Bundler
b
BundlerType Second Bundler

Returns

boolean True if addresses are equal

Example

const isEqual = Bundler.equals(bundler1, bundler2);

_toHex()

_toHex(bundler): string
Defined in: src/primitives/Bundler/toHex.js:15 Convert Bundler to hex string

Parameters

bundler
BundlerType Bundler address

Returns

string Hex string (0x-prefixed)

Example

const hex = Bundler.toHex(bundler);
console.log(hex); // "0x742d35cc6634c0532925a3b844bc9e7595f251e3"

equals()

equals(bundler1, bundler2): boolean
Defined in: src/primitives/Bundler/index.ts:20

Parameters

bundler1
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
bundler2
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType

Returns

boolean

from()

from(value): BundlerType
Defined in: src/primitives/Bundler/from.js:15 Create Bundler from address input

Parameters

value
Address value string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType

Returns

BundlerType Bundler address

Throws

If address format is invalid

Example

const bundler = Bundler.from("0x742d35Cc6634C0532925a3b844Bc9e7595f251e3");

toHex()

toHex(bundler): string
Defined in: src/primitives/Bundler/index.ts:14

Parameters

bundler
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType

Returns

string