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.

01

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
02

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:

You enter
Set up OKX OnChainOS with an Agentic Wallet. If I already have another wallet, generate a new empty Agentic Wallet and switch to X Layer mainnet.
Agent response
OKX Wallet + OnChainOS Skills installed. A new empty wallet has been created and switched to X Layer mainnet:
→ 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.
03

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.

04

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.

You enter
My OKX UID is 1234567890, and the last 6 characters of the BTC transaction hash are a1b2c3. Concatenate them as a UTF-8 string, run a doubleSHA256, and give me the full 64-character hex — it’ll be used as a contract input in the next step.
Agent response
Computed locally — no onchain transaction needed. Result:

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

You enter
Take the full 64-character hex as a bytes32 parameter and call the PizzaDay contract’s claim method via Agentic Wallet. Contract: 0x03C1d16a0a13A17F3583f43698CE94fE05900503. Broadcast the transaction on X Layer through OnChainOS Gateway.
Agent response
Broadcast on X Layer via OnChain OS Gateway:

#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.

FAQ

No. Gas is covered by X Layer Paymaster, and redeeming on the web is free.
Yes — in fact we strongly recommend using an empty wallet. This event requires no assets in your wallet. Nothing in it means nothing to lose.
You can earn a proof, but you can’t redeem on the web — redemption requires an OKX UID + completed KYC + the email registered to that UID.
No. The proof is bound to the first 6 characters of your wallet address + onchain event verification. Another wallet won’t pass the check.
No. Four gates: contract layer + Redis redemption layer + KYC identity layer + email layer. The same ID / same email can only claim once.
The contract reverts and the transaction fails — no spot is consumed. Correct it and try again.
Ranked by server timestamp when your proof is pasted on the web and passes verification. Securing a spot ≠ winning the prize — you must complete UID + address within 10 minutes to lock it in.
No. You need an Agent host that can call tools and interact with a wallet. Hermes, Claude Code, OpenClaw, or Codex all work.
The double hash input includes your OKX UID, and final redemption requires a KYC-verified identity. A hash computed without KYC won’t pass verification either.
Prize delivery for this event is limited to mainland China and Hong Kong.
DisclaimerOKX reserves the right to interpret all event rules. This event is for informational purposes only and does not constitute an invitation, offer, solicitation, recommendation, or investment advice for any transaction. Invest with caution — digital asset prices are subject to market risk and volatility. You are responsible for your own judgment and decisions. Please understand and comply with all applicable local laws and regulations.