create2_mine
Table function
Performs a CREATE2 brute-force search across salt ranges, optionally applying byte masks to target vanity patterns or protocol bitfields.
Overloads
create2_mine(ADDRESS, BYTES32, BIGINT, BIGINT, ADDRESS, ADDRESS, BIGINT)
Adds mask/target filtering and an explicit max_results cap to hunt for branded endings (dead/beef), dense leading zeros for packing, or configuration flags like Uniswap v4 hook bits.
Parameters
1
SELECT salt, address AS vanity_address
2
FROM create2_mine(
3
'0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'::address, -- deployer
4
keccak256('0x6001600055'), -- init_hash
5
0, -- salt_start
6
500000, -- salt_count
7
'0x000000000000000000000000000000000000ffff'::address, -- mask selects the last two bytes
8
'0x000000000000000000000000000000000000dead'::address, -- target enforces a branded suffix
9
10 -- max_results
10
);
Notebook ready in readonly mode.
create2_mine(ADDRESS, BYTES32, BIGINT, BIGINT)
Scans a contiguous salt range and emits one row per salt in that window for post-processing in SQL.
1
SELECT salt, address AS candidate
2
FROM create2_mine(
3
'0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'::address, -- deployer
4
keccak256('0x6001600055'), -- init_hash
5
0, -- salt_start
6
500 -- salt_count
7
);
Notebook ready in readonly mode.