@tevm/voltaire / primitives/Bundler
primitives/Bundler
Type Aliases
BundlerType
BundlerType =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.Uint8Array&object
Type Declaration
[brand]
readonly[brand]:"Bundler"
See
- https://eips.ethereum.org/EIPS/eip-4337
- https://voltaire.tevm.sh/primitives/bundler for Bundler documentation
Since
0.0.0Variables
Bundler
Defined in: src/primitives/Bundler/index.ts:31constBundler:object
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: (Create Bundler from address inputvalue) =>BundlerType
Parameters
value
Address valuestring | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
Returns
BundlerType
Bundler address
Throws
If address format is invalidExample
toHex()
toHex: (bundler) =>string
Parameters
bundler
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
Returns
string
Functions
_equals()
_equals(Defined in: src/primitives/Bundler/equals.js:15 Check if two Bundler addresses are equala,b):boolean
Parameters
a
BundlerType
First Bundler
b
BundlerType
Second Bundler
Returns
boolean
True if addresses are equal
Example
_toHex()
_toHex(Defined in: src/primitives/Bundler/toHex.js:15 Convert Bundler to hex stringbundler):string
Parameters
bundler
BundlerType
Bundler address
Returns
string
Hex string (0x-prefixed)
Example
equals()
equals(Defined in: src/primitives/Bundler/index.ts:20bundler1,bundler2):boolean
Parameters
bundler1
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
bundler2
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
Returns
boolean
from()
from(Defined in: src/primitives/Bundler/from.js:15 Create Bundler from address inputvalue):BundlerType
Parameters
value
Address valuestring | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
Returns
BundlerType
Bundler address
Throws
If address format is invalidExample
toHex()
toHex(Defined in: src/primitives/Bundler/index.ts:14bundler):string
Parameters
bundler
string | number | bigint | Uint8Array<ArrayBufferLike> | AddressType
Returns
string
