Vanity Addresses (0x24 Prefix)

Every token deployed through LP24 has an address starting with 0x24. This is enforced by the Factory using CREATE2 with a specially-constructed salt that commits to a recent blockhash.

Salt Layout (32 bytes)

BytesFieldTypeDescription
[0:8]anchor_blockuint64 (big-endian)Block number whose hash is committed to
[8:16]blockhash_prefixbytes8First 8 bytes of blockhash(anchor_block)
[16:32]miner_noncebytes16Nonce mined offline that produces 0x24 prefix

Mining Timeline

  1. Anchor block is mined — the deployer learns the blockhash
  2. Mine salt offline — try nonces until CREATE2 address starts with 0x24 (typically < 1 second)
  3. Submit transaction — must be included within INCLUSION_WINDOW blocks of the anchor
ParameterBaseBSC
INCLUSION_WINDOW10 blocks (20s)44 blocks (~132s)
VANITY_PREFIX36 (0x24)

On-Chain Verification

The Factory performs four checks on the salt:

  1. anchor_block > 0 — salt is not empty
  2. block.number > anchor_block — anchor block has been mined
  3. block.number <= anchor_block + INCLUSION_WINDOW — transaction is timely
  4. blockhash(anchor_block) prefix matches salt bytes [8:16] — commitment is valid

After CREATE2 deployment, the Factory also verifies the first byte of the resulting address equals 0x24.

Why Vanity Addresses?

The 0x24 prefix serves as a visual identifier — any LP24 token can be instantly recognized by its address. The blockhash commitment prevents pre-computation of addresses, ensuring fair and timely deployment.