Live on Kadena mainnet · pilot
AI agents that pay in KDA, within limits the chain enforces
Kadena AgentPay AI lets an AI agent pay for data and compute on its own. The owner sets the spending limits once, and a Pact contract on Kadena applies them to every payment. The agent cannot overspend, even if the agent or its server is compromised.
See the tools agents can buyGive an agent a budgetSee the mainnet results
The live service is at agentpay.kadena.ws. Agents pay per call in KDA through this contract, or in USDC on Base or Polygon.
How one purchase works
An agent asks a seller for something, such as a data report. The seller answers with a price. The agent pays, and the seller hands over the data once the payment is in a block.
- PriceThe seller answers "402 Payment Required" with the price in KDA and a one-time payment id.
- SignatureThe agent signs one payment for exactly those terms. It needs no KDA of its own; the facilitator pays the gas.
- LimitsThe contract on Kadena applies the owner's limits. A payment outside them is refused and costs nothing.
- DeliveryThe seller returns the data with a receipt once the payment is in a block. On mainnet every purchase waits for the block.
What the chain enforces
These rules live in the Pact contract, not in the agent's software, so they hold even when the agent is fooled or its server is taken over.
- Per-payment limit
- The most KDA one payment may move.
- Daily limit
- The most KDA all payments may move in one day.
- Pause switch
- The owner can stop all payments at once, and resume later.
- Approved sellers
- Optional. When on, the agent can pay only accounts the owner has approved.
- One-time payment ids
- Each payment id works once, so a payment cannot be replayed.
- No withdrawals by the agent
- Only the owner can withdraw from the vault, change limits or replace the agent key.
Mainnet results
On November 20, 2026, a test agent bought all four of our first tools at agentpay.kadena.ws with real KDA, paying from an allowance owned by Saudi.KDA. The owner did not confirm any payment; the contract applied the limits (0.2 KDA per payment, 2 KDA per day). The buyer was our own test agent, not a customer.
| Tool | Price | Request to data | Block |
|---|---|---|---|
| Live fee, one chain | 0.002 KDA | 22 s | 7421690 |
| Live fees, 13 chains | 0.01 KDA | 28 s | 7421691 |
| Address check | 0.02 KDA | 18 s | 7421692 |
| Early warnings | 0.05 KDA | 43 s | 7421693 |
Checked on chain afterwards: the seller received exactly 0.082 KDA, the vault fell by the same amount, and each payment used 541 gas, paid by a separate gas account. The agent's own key held no KDA. All on Kadena mainnet, chain 1.
On November 22, 2026, the first Receipt Proof was recorded on mainnet in block 7426716, paid in KDA through the same contract.
Earlier tests on the devnet (November 17, 2026)
On November 17, 2026, a test agent bought data for KDA using the x402 payment format on the Kadena Nexus devnet, a private Kadena test network run for Nexus Research. The buyer was a test script, not an AI model, and buyer, seller and facilitator all ran Kadena Nexus software. These runs also checked that the chain refuses payments outside the limits.
| Check | Result |
|---|---|
| Test agent buys a data report for 0.01 KDA over x402 | Paid and delivered |
| Time from request to data when the seller waits for the block (three runs) | 15 to 24 seconds |
| Fast delivery: time from request to data for a 0.001 KDA item (two runs) | 0.03 seconds |
| The fast purchase confirmed in a block afterwards | Confirmed, 15 to 21 seconds later |
| Gas used by a payment | 532 |
| KDA held by the agent's own key | None |
| Purchase priced above the per-payment limit | Refused by the chain |
| Purchase from a seller the owner had not approved | Refused by the chain |
| The same payment presented a second time | Bought nothing |
| Agent key tries to withdraw from the vault | Refused by the chain |
| Gas spent on the refused purchases | None |
Four devnet runs passed, with 19, 16, 19 and 19 checks. Before each change to the code, 71 checks of the contract and 54 checks of the payment layer run automatically.
On the devnet, a seller delivered small purchases as soon as the payment had been checked and sent to the chain, and confirmed the block afterwards. This is switched off on mainnet for now. The 0.03 seconds was measured with buyer, seller and node on one server; across the internet it will take longer.
Tested with the official x402 libraries
The official JavaScript libraries from the x402 Foundation (version 2.31.0) were run against AgentPay, and all 16 checks pass:
- The official client read our price answer, paid, and decoded our receipt.
- The official facilitator client used our facilitator to check and settle a payment.
- A seller built with the official middleware was paid by our agent.
- The official client and the official seller worked together, with our facilitator between them.
The libraries have no Kadena support of their own; two small plug-ins add it. This test used a stand-in for the chain, not the devnet, and covers the JavaScript libraries only. Kadena is not yet a listed x402 network.
Why build this on Kadena
Signatures with a stated purpose
On Kadena a signature can be limited to one named action. The agent signs "pay this seller this amount for this payment id" and nothing wider.
Contracts anyone can read
Pact contracts are stored on the chain as readable code, so an owner, a seller or another AI can read the exact rules that guard the vault.
The agent needs no gas
A separate account pays the transaction fee, with a signature limited to paying gas. The agent never has to hold or manage KDA.
Small payments stay small
Kadena's transfer fees are low enough for payments of a fraction of a cent. See the daily fee comparison.
Where it stands
- DoneAllowance contract. Limits, pause, approved sellers and receipts, tested on the devnet and running on mainnet.
- Donex402 layer. Paid endpoint for sellers, client for agents, and a facilitator, following x402 version 2.
- DoneFast delivery for small purchases. The data is delivered once the payment is sent, and the block is confirmed afterwards.
- DoneTested with the official x402 JavaScript libraries, as client, facilitator client and seller.
- DoneOwner page on mainnet. Create an allowance, set limits, pause and manage sellers, signing with eckoWALLET or Linx. The devnet demo stays up for practice.
- DoneMainnet pilot. Paid tools at kadena.ws/agents, payable in KDA or in USDC on Base or Polygon.
- DoneListed in agent marketplaces. Coinbase's Agentic Market, PayAPI Market and x402scan.
- DoneIndependent review of the contract by an outside reviewer.
- NextKadena as an official x402 network, so any x402 client can pay in KDA without our plug-ins.
- LaterA version for Chainweb EVM, alongside the community developers' EVM work.
The code is private while it is in development and will be published at launch, like the other Kadena Nexus projects.
Questions
What is x402?
An open standard that lets software pay for a web request. A server answers "402 Payment Required" with a price, and the client pays and asks again. It was created by Coinbase and is now governed by the x402 Foundation at the Linux Foundation. Read more at x402.org.
What happens if the agent is tricked into paying?
The damage is capped by the owner's limits. With the approved-sellers list on, a tricked agent still cannot pay an account the owner did not approve. The owner can pause the allowance at any time.
Is this a trading bot?
No. It does not trade or hold funds for anyone. It is a way for an agent to pay for services, with the owner's KDA staying in a vault the owner controls.
Sell to agents, or follow the build
If you run a data or compute service and would like agents to pay you in KDA, or you are building agents and want help connecting one, write to Saudi.KDA@kadena.ws or join the Kadena Nexus Telegram group. Updates are posted on @KadenaNexus.
Kadena AgentPay AI is built by Kadena Nexus, a community team working alongside the Kadena Community Edition developers. Last updated November 22, 2026.