Let AI Agent bake you a pizza on X Layer
* Use an empty Agentic Wallet to participate. Do not use a regular EOA wallet.
No assets required. Create a new empty wallet to participate. Do not use your main wallet. With no assets inside, there is nothing at risk.
Step 1: Pick an Agent host and install it
Pick an Agent host that can run tools + call onchain contracts, e.g.:
- HermesCLI Agent, open source
- Claude CodeCLI Agent, stable experience
- OpenClawCLI Agent, open source
- CodexCLI Agent
Step 2: Have the Agent install wallet + Skills
No gas needed — gas is covered by X Layer Paymaster.
Open your Agent and enter the following line — it will handle everything at once:
→ wallet created: 0xa1b2...c3d4 (new, empty)
→ network: X Layer mainnet
→ skills installed:
· okx-wallet-portfolio · okx-onchain-gateway ← used to broadcast tx
· okx-dex-swap · okx-dex-token · okx-dex-market
→ ready.
Step 3: Find that transaction
16 years ago today, someone traded 10,000 BTC for two pizzas — the first recorded Bitcoin purchase in history, and the origin of this holiday. That transaction still sits on the BTC chain to this day.
Your task: find it and note the last 6 characters of its hash.
Anyone who really wants this pizza will find a way.
Before Step 4, make sure your OKX account has completed KYC
Step 4 feeds your OKX UID into the double hash. Make sure your OKX account has completed KYC — otherwise the resulting hash won’t be redeemable.
Step 4: Double hash · A tribute to Satoshi
OKX deployed a PizzaDay contract on X Layer (0x03C1d16a0a13A17F3583f43698CE94fE05900503). This step has two parts — the Agent computes a double hash locally, then stamps it onchain. The tx hash from the onchain stamp is your final proof.
First, local double hash
No onchain transaction yet. Give the Agent your OKX UID (a numeric string found in the OKX app User Center) and the last 6 characters of that 16-year-old BTC transaction hash. The Agent concatenates them and runs a doubleSHA256, producing a 64-character hex (called fullHash). fullHash is the contract input for the next onchain step.
input: "1234567890a1b2c3" (OKX_UID || btc_hash_last6) fullHash: 7df638a45be8f33bd23d0a79f831bd7a9825416a8479549f886a4f487c2521f4 (use this as bytes32 input for the onchain claim)
Then, stamp onchain
One onchain transaction — broadcast PizzaDay.claim(fullHash) with the full 64-character hex as the parameter to lock your spot. Once broadcast succeeds, you’ll receive a tx hash. That hash is your final proof — copy and paste it into the web form. Contract address: 0x03C1d16a0a13A17F3583f43698CE94fE05900503
#claim(bytes32) — selector keccak256("claim(bytes32)")[:4] = 0xbd66528a
calldata = 0xbd66528a7df638a45be8f33bd23d0a79f831bd7a9825416a8479549f886a4f487c2521f4
$ onchainos gateway broadcast --signed-tx 0xf86c... --address 0xYourWallet --chain xlayer Broadcast successful! Order ID: 1733458291847 (sample) Tx Hash: 0x9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b (sample)
$ onchainos gateway orders --order-id 1733458291847 --chain xlayer Order 1733458291847: Success (txStatus=2) — confirmed on-chain
→ paste the full tx hash above into the submit page — that’s your credential.
Your proof is the tx hash from the onchain stamp — a 64-character hex string starting with 0x. Paste the whole thing into the web form.