Self-funding intelligent-NFT agents: named in ENS, earning and spending on Hedera, treasuries on Uniswap.
ETHGlobal Agentic Markets 2026 · Track Ship a Feature (Continuity) · Partner prizes Hedera · ENS · Uniswap
Production · Live demo: coming · Video: coming · Architecture · Prizes · References · Proof of testnet · Hedera docs map · Agent accounts
Each AgenticPlace agent is one on-chain object with four bound identities:
| Layer | Standard | What it gives the agent |
|---|---|---|
| iNFT | ERC-7857 (iNFT_7857) |
The agent itself: ownership, encrypted intelligence, transfer with re-encryption |
| Memory | THOT_v1 / THOT_v2 | Commitments to what the agent knows, attached to the iNFT and sold or rented on THOTRails |
| Treasury | ERC-6551 (iNFTAccount) |
A wallet owned by the iNFT. The runtime key is a module with per-target, per-selector, expiring permissions and an HBAR allowance |
| Identity | ERC-8004 + ENS | A registry entry plus a human-readable name carrying its endpoints, operated accounts and payment preferences |
The agent sells data over x402, taking HBAR on Hedera or USDC on Base, through HTTP, MCP and A2A. It pays for its own inputs the same way, and writes every revenue and cost line to an HCS topic. When it runs short of HBAR, it swaps its bridged credit (hbarPAI) for HBAR on SaucerSwap. Its Uniswap v4 hook gives iNFT and THOT holders a lower swap fee.
Full design with source citations: docs/project/ARCHITECTURE.md. For a fast review, see the FAQ and doc summary in www/faq.html and the roadmap in www/roadmap.html.
buyers (other agents) ──x402──► agent-8004 ──x402──► sellers (other agents, data, inference)
HBAR on Hedera ─────────────► 0.0.N (HBAR: pays inputs and fees directly)
USDC on Base ─────────────► 0x8004… ─► CreditWell (USDC→PAI 1:1) ─► Drawbridge ─► hbarPAI on Hedera
└─► SaucerSwap: hbarPAI → HBAR
every earn, spend, swap and crossing ─► one JSON line on the agent's HCS topic (public, mirror node)
-
Revenue: pay-per-call products, priced in
agent/market.json.Product Hedera Base Sepolia signal(mirror-node data)0.05 HBAR $0.01 USDC research(a note signed by the agent's key; its sha256 is a THOT commitment)0.2 HBAR $0.05 USDC Only payments from third parties count as revenue. The signer refuses to pay the agent's own accounts.
-
Costs:
- Other agents' x402 products, bought within caps.
- Hedera fees: HCS messages and transactions.
- The bridge's LayerZero fees.
- The agent's own Hedera fees, read from the mirror node and booked as batched spend lines.
- Paid inference, bought over x402 like any input (off until an inference endpoint is chosen).
-
Treasury:
- HBAR is the working balance.
- Base USDC is credit until it is bridged.
- Below an HBAR floor, hbarPAI is swapped for just enough HBAR to reach a target.
- Which pool: the agent's own treasury swaps run on SaucerSwap V2 on Hedera (the hbarPAI/WHBAR pool, roadmap 2.6), because the agent's money lives on Hedera. The Uniswap v4 pool with the agent-holder fee hook is a market for agents on the hook chain: swappers who hold an iNFT or THOT, and the agents' own ERC-6551 accounts, pay the lower fee. The agent does not route its treasury through it.
-
Books: the ledger is the agent's profit and loss, readable by anyone.
/markets/totals HBAR and Base USDC separately and countsbridgelines apart.Check the books yourself:
cd agent && npx tsx src/tools/books.tsrebuilds the account statement from the Hedera mirror node, checks every ledger line against its transaction and prints the profit and loss, with payments from the builder's own accounts left out. What the agent has and has not earned so far is on the Most Profitable Agent page.The agent's public ledger. Each line is a message the agent writes to a Hedera Consensus Service topic. Only the agent's key can write to it, and no one can edit or delete it, the agent included. Read the ledger on HashScan (topic 0.0.11711903). The lines so far, with more to come once the agent is hosted (roadmap 2.1):
Line Written (UTC) Kind Result for the agent What happened Transaction 1 2026-12-03 09:44 Spend: network fees −0.40837993 HBAR The agent created this ledger. It was the agent's first transaction, and it also completed its account create the ledger 2 2026-12-05 04:50 Treasury swap +4.02314837 HBAR, after fees HBAR was below the floor, so the agent swapped 0.265666 hbarPAI for HBAR on SaucerSwap swap 3 2026-12-05 05:55 Treasury swap +4.79042642 HBAR, after fees The same rule again: 0.303303 hbarPAI swapped for HBAR swap Every account, topic, transaction and contract on testnet is listed and re-checked live in docs/status/TESTNET_PROOF.md.
The process that decides holds no key. Every rule that moves money is enforced again inside signerd, the only process that can sign, so neither a bug nor a persuaded model can get past it.
| Decision | Rule (agent/) |
Guardrail in the signer (agent/policy.json) |
|---|---|---|
| Sell | Each product is offered on every enabled rail; the buyer chooses. Earnings are booked from the network that actually settled | — (no key needed to receive) |
| Buy | POST /buy {url} pays another agent's 402 terms |
Allowed network and asset; per-payment and rolling 24 h caps for each rail; never paying itself. On Hedera the transaction is decoded, and the net outflow must equal the ask. On Base the terms are read from the EIP-3009 typed data, and anything else (e.g. Permit2) is refused |
| Swap (sweep) | src/defi.ts: hold while HBAR ≥ floor. Below it, swap enough hbarPAI to reach the target, sized from a live quote and capped by balance. No quote means hold. Every decision, holds included, goes to HCS |
signerd quotes for itself and sets the floor 1% under its quote. It applies caps per swap and per 24 h, decodes the exact swap bytes, and approves exactly the swap amount |
| Bridge | src/bridge.ts + tools/bridge.ts: at 5 USDC or more on Base, bridge the balance (less keepUsdc) to the agent on Hedera: USDC → PAI → raise → hbarPAI. Logged to HCS as a bridge line |
Inside signerd: at most 20 USDC per crossing and 50 per day; all three transactions decoded first (exact approve, deposit to self, raise to eid 40285 paying self, capped value). The bridge itself refunds failed or stale crossings |
| Price | src/pricing.ts: list prices at or above 20 HBAR; +50% below it on every rail; below 5 HBAR, discretionary buys and paid inference pause too. Selling never stops. Earnings are booked as the buyer signed them |
The signer's caps apply in every mode |
Details: agent/README.md and bridge/DESIGN.md.
Permalinks to commit 0be6dff.
Uniswap v4 (uniswap/hook/, built on OpenZeppelin uniswap-hooks v1.3.0 b5f1057)
| What | Lines |
|---|---|
The hook: BaseOverrideFee, which returns the fee from beforeSwap with the override flag |
AgentHolderFeeHook.sol:53-53 |
Constructor: fee bounds checked against LPFeeLibrary.MAX_LP_FEE |
AgentHolderFeeHook.sol:100-122 |
Hook permissions: afterInitialize (dynamic-fee pools only) and beforeSwap |
AgentHolderFeeHook.sol:129-146 |
The fee decision per swap (_getFee) |
AgentHolderFeeHook.sol:152-159 |
| Who the swapper is: trusted routers report their caller; anyone else is judged as itself | AgentHolderFeeHook.sol:176-178 |
Holder check: iNFT or THOT balanceOf, or an agent's own ERC-6551 account |
AgentHolderFeeHook.sol:181-187 |
Router: PoolManager.unlock, then swap inside unlockCallback |
HolderSwapRouter.sol:46-71, HolderSwapRouter.sol:75-82 |
| Deploy: a CREATE2 salt mined so the address carries the permission flags | DeployAgentHolderFeeHook.s.sol:47-50 |
Hedera (agent/)
| What | Lines |
|---|---|
x402 seller on hedera:* (Blocky402 facilitator) |
server.ts:108-111 |
| x402 buyer: the guarded Hedera signer (the transfer is decoded; net outflow must equal the ask) | keyed.ts:45-69, signerd.ts:160-165 |
| HCS ledger: every line submitted by the signer | signerd.ts:193-201 |
Its own HBAR fees, read from the mirror node (charged_tx_fee) |
fees.ts:15-45 |
| Adaptive prices from the mirror-node balance | pricing.ts:10-25 |
| SaucerSwap V2 sweep: the decision, the quote, the swap call and its decoder | defi.ts:29-48, rpc.ts:29-32, swap.ts:27-57 |
| The signer's swap endpoint (own quote, 1% floor, exact approve) | signerd.ts:202-229 |
ERC-8004 registration on Hedera testnet (IdentityRegistry 0x8004A818…) |
registration.ts:23-52 |
ENS (ens/scripts/agentens.sh, Sepolia ENSv2)
| What | Lines |
|---|---|
ENSIP-26 agent-context and agent-endpoint[...], ENSIP-25 agent-registration[...], ENSIP-28 accounts[...], ENSIP-31 payment-preference |
agentens.sh:195-256 |
| Delegating record edits to the agent's signer (ENSv2 roles) | agentens.sh:258-268 |
| ENSIP-28 consent, signed locally | agentens.sh:449 |
| Reading every record back through the Universal Resolver | agentens.sh:495 |
| Path | Contents |
|---|---|
contracts/ |
Shared Foundry workspace: iNFT4 suite, Create3d, legacy ERC-8004 registries, pinned libraries |
agent/ |
The agent runtime: x402 seller and buyer (Hedera and Base), MCP and A2A, the keyed signerd, SaucerSwap tools, ERC-8004 registration |
hedera/ |
Hedera contribution: deployments and the testnet deploy runbook |
bridge/ |
Base → Hedera (HBAR) bridge for x402 revenue, with a 0G branch: Drawbridge lanes over LayerZero V2 (design) |
ens/ |
ENS contribution: ENSv2 names and ENSIP-25/26/28/31 records on Sepolia |
uniswap/ |
Uniswap contribution: v4 hook on OpenZeppelin BaseHook, treasury sweep |
tachi/ |
Reference notes only. Not entered this event (three-partner cap) |
keycreator/ |
Vanity signer creation: grinds a key and seals it into an encrypted Foundry keystore without ever printing it. --agent also stores it in the vault below |
vault/ |
AgenticPlace's own instance of the in-house BANKON credential vault (AES-256-GCM, a key per entry, custody that can move to the operator's wallet) for agent signers. How it works |
test/ |
Logs of every test and rehearsal run this week, plus scripts that reproduce each one |
markets/ |
The live page at agenticplace.pythai.net/markets/ (static, reads ENS, the mirror node and each chain's bridge: crossings OPEN or CLOSED) |
www/ |
The site: landing, the Drawbridge (connect a wallet on the card, see the cost, follow each transaction, get a result), Diagnostics (the bridge read live), OVERLORD (who controls it, pending requests, the brake), the FAQ, the roadmap and the documentation as a book, built from docs/index.md |
docs/ |
Plan, roadmap, architecture, prize requirements, Hedera deploy guide, x402 map, RTFM reference index |
Smart contracts
- Solidity 0.8.24,
via_ir, optimizer 200, EVM targetcancun - Foundry —
forge(build, test, fuzz, scripts),cast(chain reads),anvil(local chain) · book - OpenZeppelin Contracts v5.0.2 and forge-std v1.16.2 (git submodules)
- Remix IDE — browser IDE for reading and calling the deployed contracts; load a flattened source with
forge flatten src/iNFT_7857.sol - Sourcify — source verification on Hedera (
forge verify-contract --verifier sourcify)
Ethereum standards
- ERC-721 / ERC-7857 intelligent NFTs · ERC-6551 token-bound accounts · ERC-8004 trustless agents
- EIP-712 typed signatures · ERC-1271 contract signatures · ERC-7930 interoperable addresses
- Deterministic deployment: CREATE2 via Nick's factory
0x4e59b448…956C, CREATE3 via Create3d0xa5A2581d564248801cc5e06DbB764c99c170320A
Networks and protocols
- Ethereum mainnet and Sepolia · the EVM
- Hedera (chain IDs 295 / 296): Smart Contract Service via the Hashio JSON-RPC relay, Consensus Service (HCS), Token Service (HTS), Mirror Node, HashScan
- Hedera Agent Kit · Hiero SDK
- x402 payments over HTTP, MCP and A2A, settled on Hedera by Blocky402 and on Base Sepolia by the x402.org facilitator
- LayerZero V2 (bridge transport) · SaucerSwap V2 (the hbarPAI → HBAR swap) · A2A v1.0 agent card · MCP
- ENS: ENSv2, ENSIP-25, -26, -28, -31
- Uniswap v4: v4-core, v4-periphery, OpenZeppelin uniswap-hooks
Runtime and tooling
- Node.js / TypeScript · Claude for agent reasoning · Claude Code as development assistant (AI_ATTRIBUTION.md)
git clone --recurse-submodules https://github.com/AgenticPlace/marketspace
cd marketspace/contracts/create3d && forge test # Create3d factory
cd ../inft4 && forge build --sizes && forge test # iNFT4 suite (via_ir: allow several minutes)Every suite, one command each, and the latest results (163 passed, 0 failed in the final run): test/README.md. Hedera deployment, step by step: docs/reference/HEDERA_DEPLOY.md.
The baseline imported before the event is tagged pre-hackathon; origins and commit hashes are in PREEXISTING.md. Everything after it is new work, except one byte-exact import and the site icon, both listed there:
git diff pre-hackathon..main
git log pre-hackathon..main --stat
python3 -I hedera/scripts/check-continuity.py --live # checks this section against git and the Hedera mirror nodeBefore the event (tag pre-hackathon, plus the import 38cb090) |
New in this event (163 commits after the tag) | |
|---|---|---|
| Contracts | iNFT4 suite (iNFT_7857, THOT, Agency, ERC-6551 account), Create3d, legacy ERC-8004-style registries. A LayerZero bridge whose bridge contract did not compile as imported and whose invariant tests were a scaffold | The bridge made to work and hardened (lanes, limits, guardian, refunds), CreditWell, hbarPAI on the Hedera Token Service, swapPAI and the Treasury, the Uniswap v4 holder-fee hook. The iNFT4 contract sources are unchanged |
| On Hedera | Nothing deployed, on testnet or mainnet | The agent's account, its ledger topic, Create3d and five iNFT4 contracts, the agent's own iNFT and ERC-6551 account, ERC-8004 identity 222, the bridge, the hbarPAI token and a SaucerSwap V2 pool with two swaps by the agent's rule, all on testnet |
| Hedera services used | None | Smart Contract Service, Consensus Service, Token Service, the mirror node, source verification through Sourcify. Drawing on an owner's HBAR allowance is built in the signer and has not been used on testnet |
| Agent | None | The whole runtime in agent/: x402 seller and buyer, MCP and A2A, the keyed signer and its limits, the books |
| Names, site | The AgenticPlace site was live (its source is in another repository) | ENSv2 names and records on Sepolia, the governed account, the pages in www/ and markets/ |
The full list with commits, and each requirement of Hedera's Continuity track with its evidence, is in docs/project/TRACK_HEDERA_CONTINUITY.md.
Milestones of the new work on Hedera testnet, 2026-12-03 to 2026-12-05:
| Commit | What |
|---|---|
9d2172f · 042ad5e |
agent-8004 funded: account 0.0.11711769 |
955ed3d |
Account completed by its first vault-signed transaction, which created the agent's public ledger (Hedera topic 0.0.11711903) |
dabd3e3 |
signerd draws from the owner's HBAR allowance (HIP-336), capped and inspected |
9280e3b · eb4424f |
Deploy rehearsed on a fork of Hedera testnet, with the ERC-6551 stage; proof-of-testnet map |
3dc8460 |
iNFT4 suite + Create3d + ERC-6551 live on Hedera testnet, roles with bankon.eth |
4205e03 |
All six contracts source-verified on Sourcify/HashScan; agent-8004's own guarded deploy lane |
ede7ca9 |
ERC-8004 registration: signerd routes, CLI, and www/register.html |
1039ccd |
ENS on Sepolia: check and simulations pass; resolver salt collision fixed |
ffa09cd · 4c11d81 |
agent-8004 registered as ERC-8004 agentId 222 on Hedera testnet, then minted its own iNFT_7857 #1 with an ERC-6551 account |
7ad3812 · 9637f05 |
hbarPAI as a Hedera Token Service token; the bridge deployed on Base Sepolia and Hedera testnet, with the first crossings both ways |
7dfcce7 |
The hbarPAI/WHBAR pool on SaucerSwap V2 and the agent's first swap under its floor rule |
7c56ac8 |
The bridge redeployed on both testnets with the fee going to the Treasury |
| Contribution | State |
|---|---|
| Contracts imported, pinned and tested | Create3d 7/7. iNFT4 core suite 280/280, one file at a time (test/) |
Contract sizes (forge build --sizes) |
All deployable contracts are under EIP-170. iNFT_7857 deploys through Create3d on Hedera (§5 of the Hedera guide) |
| Deploy rehearsals on anvil | Mainnet shape as bankon.eth (impersonated) and the testnet runbook on chain 296: both 8/8 (receipts) |
| Hedera testnet access | agent-8004 is 0.0.11711769, created and funded 2026-12-03 (how) and completed by its first vault-signed transaction. The agent's public ledger (Hedera topic 0.0.11711903) is live, with three lines |
| Hedera testnet deploy | Live 2026-12-03. Create3d, iNFT_7857, THOT, Agency, ERC6551Registry and iNFTAccount on chain 296, signed by agent-8004; 22 transactions, 23.72 HBAR; bankon.eth holds every role (receipt, proof, log). Rehearsed first on a fork (log) |
| Contract verification + agent deploy lane | All 6 testnet contracts source-verified on Sourcify, which HashScan reads (5 exact, iNFT_7857 partial). hedera/agentdeploy.py lets agent-8004 deploy and verify its own testnet contracts within fixed limits (how) |
| agent-8004's iNFT | iNFT_7857 #1, minted by agent-8004 itself through Agency (2026-12-03), OPEN; ERC-6551 account 0x023E0CAB9A34aFEC3e43569Dbd31fc6d18231459; bindAgentId(1, "222") ties it to the ERC-8004 identity. bankon.eth signed nothing and received the φ fee. hedera/agentmint.py, receipt hedera/deployments/296-agent-inft.json |
| ERC-8004 registration | www/register.html: agent-8004's live status in the IdentityRegistry on Hedera testnet, the exact file it registers and the cost; signed only by signerd (agent/src/tools/erc8004-register.ts --send). Other teams can register their own agent there with a browser wallet. Registered 2026-12-03: agentId 222, tx 0x33a6…8b5b, then setAgentURI naming itself; ownerOf(222) = agent-8004 and the on-chain file equals agent/registration/agent-8004.json |
| Proof of testnet | Every testnet account, topic, transaction and contract, checked live: docs/status/TESTNET_PROOF.md |
| Wallet sign-in (login333, in-house) | agent/src/login333.ts with chain modules in agent/src/login333-modules/: evm (every EVM chain; EOAs, ERC-1271/6492 smart wallets) and hedera (native 0.0.N accounts, ED25519 or ECDSA, key read from the mirror node). Signs in only on the chains AgenticPlace services (agent/login333-chains.json); a new chain is a row, a new family is a module. Browser wallets via EIP-6963, a copy-sign-paste path for any wallet or tool, and reopen-in-wallet links for phones. agent-8004 signed in live as hedera:testnet:0.0.11711769 and as eip155:296, recognised as Owner (log) |
| Governed account (Bloxchain, Sepolia) | agent-8004's treasury 0x2B18…cBa2: the agent may only request payments through a 24 h timelock that bankon.eth reviews, and write only its own ENS status record. Steps 1–6 live and verified (relayer funded, minted, funded, guard batch, role batch, resolver grant); rehearsed 61/61 on a fork first. Keyless step scripts bloxchain/live-step4.ts, live-step5.ts; human-in-the-loop console www/hitl.html. Design |
| Unichain ↔ Ethereum (testnet) | Unichain's canonical OP Stack bridge: a 0.001 ETH deposit landed on Unichain Sepolia; a withdrawal started and waits to be proven (finalizes 7 days after proving). Review page www/unichain.html, CLI agent/src/tools/unichain-status.ts |
| Hedera docs review | hbarPAI checked against Hedera's token docs, Drawbridge against Hedera's smart-contract, accounts and EVM docs: two fixes (hbarPAI name/symbol checks; raise refuses address zero), login333's key-rotation check, two runbook rules. FINDINGS.md 16–23 |
| Hostile-environment tests | Solidity attack suites 114/114; tooling and vault scenarios H1–H10 20/20. H1 found an impostor-factory hole, fixed by pinning the Create3d codehash (test/) |
| BANKON vault and agent keys | vault/ seals agent keys (AES-256-GCM); signing without holding the key (signd.py, 10/10); keycreator/ --agent |
| Agent runtime, x402, HCS ledger | Built, tested offline: agent/, with agent tests 48/48, the real signer attacked 24/24 and the real server against fakes 7/7. It covers both rails (HBAR, Base USDC), the HTTP, MCP and A2A front doors, the ERC-8004 registration file, adaptive prices, its own fee lines and the bridge policy. The keyed signer enforces every cap. The live run waits on the testnet account |
| Bridge and hbarPAI | bridge/: Drawbridge with lanes, CreditWell and hbarPAI (HTS), 67/67 including hostile scenarios H1–H14, rehearsed on forks, then deployed on Base Sepolia and Hedera testnet (2026-12-04) and crossed both ways twice (deployments, technical reference, findings). On Base the bridge is owned by the governed account (bloxchain/DESIGN.md) |
| Bridge under load, live gas, LayerZero cost | docs/status/TPS.md: 10,000 raises and 10,000 slams on Foundry anvil with the deployed contracts' state; the books held, the limiter held, and the ceiling is the block (1,465 raises/s on Base Sepolia). The gas.station panel adapts delivery gas to live chains (TECHNICAL §14). How LayerZero is used and what each message cost, from the testnet receipts: §15 |
| SaucerSwap treasury | Live on testnet: the hbarPAI token (0.0.11740529) and its hbarPAI/WHBAR pool on SaucerSwap V2 (0.0.11740619). The agent's floor rule has swapped twice (ledger lines 2 and 3 above) (SAUCERSWAP.md) |
| ENS names and records (Sepolia) | agenticplace.eth registered 2026-12-03 to agent-8004 (register tx 0x9503…b4dd); agent-8004.agenticplace.eth created the same day. It resolves through the ENSv2 Universal Resolver with 10 records: ENSIP-26 endpoints and context, ENSIP-25 linking agentId 222 (verified; the ERC-8004 file names the ENS name back), ENSIP-28 accounts for both agent-8004 and its iNFT's ERC-6551 account, each with a valid consent (the TBA's checked through ERC-1271 on Hedera), and the ENSIP-31 HBAR preference (ens-agent-verify.log). ens/: selftest and live check pass; parent and agent simulate against Sepolia from agent-8004, which operates its own name on testnet (a resolver-salt collision found by the simulation is fixed). The agent file is filled except the agentId and the ERC-6551 account; the EOA's ENSIP-28 consent is signed (log). Sending needs Sepolia ETH and your OK |
| Uniswap v4 hook | uniswap/hook/ passes 66 tests in three files against uniswap-hooks b5f1057, and its deploy, pool and swap scripts pass a dry run against the official PoolManager on Sepolia, Base Sepolia and Unichain Sepolia (docs/project/TRACK_UNISWAP.md). Not deployed yet (the iNFT and THOT it reads are live on Hedera testnet; the hook's chain is still to be chosen) |
| Live page | markets/: static, reads ENS, the Hedera mirror node and the bridge on each chain (crossings OPEN or CLOSED); the bridge entries in its config still to be switched from predicted to deployed |
| Day-by-day plan: docs/project/plan.md. Live TODO to submission: docs/status/ROADMAP.md. Operator steps: operator_todo.md. Every doc: docs/index.md. |
Hedera, ENS and Uniswap are trademarks of their respective owners. This is an independent hackathon entry; it is not affiliated with or endorsed by them. Sponsor marks are used only as described in BRANDING.md.
See AI_ATTRIBUTION.md.