Agents and payments
Payment rails.
Money moves through Truvian in six ways: Truvian pays Telegraph for answers from an escrow, visitors and agents pay Truvian over x402 on Base Sepolia, Monad and Solana, Shield pays counterparties on Solana devnet, and agents pay Truvian's agent on Virtuals ACP. Every rail is test money on a testnet except Virtuals ACP (Agent Commerce Protocol), which settles in real USD Coin (USDC) on Base mainnet. Every rail that sells charges last: the buyer pays only once the answer exists.
The six rails at a glance
| Rail | Who pays whom | Asset and network | Price | When it settles |
|---|---|---|---|---|
| Telegraph escrow | Truvian pays Telegraph's miners | test USDC, escrow on Ethereum Sepolia | $0.01 an answer, billed by the node | the node holds $0.26 while an ask runs, bills the answer, and the receipt settles at the epoch |
| Shield over x402 | a visitor or agent pays Shield | test USDC on Base Sepolia | $0.05 a desk run after 5 free runs a day | verified before the run, settled after it succeeds |
| Monad gateway | an agent pays Truvian's Monad payee | test USDC on Monad testnet | $0.02 an answer, $0.10 a due diligence report | verified first, settled only after an answer came back |
| Solana gateway | an agent pays Truvian's Solana treasury | devnet USDC or tUSD on Solana devnet | $0.02 an answer, $0.05 a pre-trade check | verified first, settled after the answer, read back from Solana before the answer is returned |
| Devnet settlements | Shield's devnet wallet pays a counterparty | tUSD or rUSD on Solana devnet | at most 1 token a payment | sent only on a RELEASE decision, then read back at finalized |
| Virtuals ACP | a buyer agent pays Truvian's ACP agent | USDC on Base mainnet | quoted per job; paid jobs so far were $0.01 and $0.02 | the buyer funds the job before work starts; payment is released when the job is completed |
The Telegraph escrow is the one rail where Truvian is the buyer, and every selling rail draws on it: a sale on Monad, Solana or ACP is answered by an ask paid from the same escrow, and each ledger books both sides. One more payment sits outside these rails: in ERC-8183 job 10 on Base Sepolia, Acceptor, another Season II entry, paid Truvian 9.90 test USDC for a due diligence check on 30 Nov 2026 (acceptor-job/).
1. Truvian buys Telegraph answers
Every fact a desk, a gateway or the ACP agent buys is a routed ask to Telegraph, paid from Truvian's Anjoman escrow account. Shield sends POST /engine/ask to Anjoman's API (https://backend.telegraphprotocol.com) with the bearer key TELEGRAPH_API_KEY; the node routes the question to its top-ranked miner and bills the escrow. No wallet signs anything per answer. The escrow is funded by hand from an operator wallet; Shield makes no deposit, withdrawal or transfer call.
- Escrow account
- 0x29476125898638c8634a97fdca8994530e8c9055
- Price
- $0.01 an answer; the node holds $0.26 of the escrow while an ask runs (
HOLD_PER_ASK_USD) - Deposited
- $42.00
- Charged
- $24.25
- Unbilled (held, not yet charged)
- $0.22
- Available
- $17.53
- Read at
- 3 Dec 2026, 20:07 UTC, from /api/stats (
telegraphLedger)
Receipts. Each answer comes back with a signal hash the node keeps and an escrow receipt. A receipt from memo B4k2AxbY (21 Nov 2026) reads: rail: "escrow", payer 0x2947…9055, miner 3858, amountUsd: 0.01, epochId: 30, settlement: "epoch". The memo stores both the receipt and the signal for every answer.
Brakes. A desk plans its purchases before it buys. A plan above $0.10 (SHIELD_PREFLIGHT_BUDGET_USD) is over budget, and an escrow below $0.26 gives the finding Escrow too low to buy; both end in REVIEW with nothing bought. At most 3 asks run at once (SHIELD_API_KEY_CONCURRENCY), fewer when the escrow is low. The day's recorded spend across every rail counts against SHIELD_DAILY_SPEND_USD ($5).
How it is built. askTypedIntent and askPinnedIntent in src/shield/telegraph.ts make the asks; apiKeyBalanceUsd reads the escrow balance from GET /engine/escrow/balance; escrowLedger reads the node's ledger for the account (override with SHIELD_ESCROW_ACCOUNT) and is cached for a minute behind /api/stats. The planning and the Spend class are in src/shield/preflight.ts.
The x402 backup. telegraph.ts can also pay the node per ask over x402 with TELEGRAPH_PAYER_KEY, refusing any payment above $0.10 (SHIELD_MAX_PAYMENT_USDC). The code notes that this route's settlement has failed since 17 Nov (bounties#214), so the escrow carries the paid traffic.
2. Visitors pay Shield over x402
Each IP address gets 5 free desk runs a day. Past them, a paid route answers 402 Payment Required with a price instead of running. The caller signs a gasless USDC authorization (EIP-3009 TransferWithAuthorization) and sends the same request again with an X-PAYMENT header. Shield also accepts the header name PAYMENT-SIGNATURE.
| Setting | Value | Set by |
|---|---|---|
| Protocol | x402 version 1, scheme exact, network base-sepolia | X402_CHAIN_ID (84532 by default) |
| Price | $0.05 (maxAmountRequired: "50000") | SHIELD_PRICE_USD |
| Asset | USDC 0x036CbD53842c5426634e7929541eC2318f3dCF7e, domain USDC / 2 | X402_USDC_ADDRESS |
| Paid to | 0xCd0a2370F2dC12c1802707B7d9aB3fec891E3c02 | SHIELD_PAYTO, else the TELEGRAPH_PAYER_KEY address |
| Facilitator | https://facilitator.payai.network | X402_FACILITATOR_URL |
| Off switch | payments off: the caller gets 429 instead of 402 | SHIELD_PAYMENTS=off |
Paid routes. POST /api/preflight, /api/resolve, /api/check, /api/diligence, /api/investigate, /api/case and /api/verify-work. A valid payment skips the free caps. A well-formed payment with a bad signature, a short amount or another payee is refused with 402 and nothing runs.
When it settles. Shield calls the facilitator's /verify before the run and /settle only after the run returned a decision. A desk that fails (for example, a chain that does not answer, a 503) never settles. The settlement comes back in the X-PAYMENT-RESPONSE header, or as a {type: "payment"} event when streaming. The facilitator submits the transfer, so the payer spends no gas.
On the website. src/shield/public/pay.js (TruvianPay.fetch) catches the 402 on /preflight, /resolve and /case. It shows the price and network, and wallet.js asks the visitor's browser wallet for the signature. From a script, signPaymentHeader in src/shield/x402pay.ts builds the header, and src/scripts/pay-check.ts is a reference client.
Daily brakes (createLimiter in src/shield/limits.ts), read from /api/stats budget on 3 Dec 2026 at 20:07 UTC:
| Brake | Cap | Env var | Then |
|---|---|---|---|
| Free runs per IP address a day | 5 | SHIELD_FREE_CHECKS_PER_IP | |
| Runs per IP address a minute | 3 | SHIELD_BURST_PER_MIN | |
| Free runs a day, everyone | 300 | SHIELD_DAILY_CHECK_CAP | 3 used |
| Telegraph spend a day | $5 | SHIELD_DAILY_SPEND_USD | $1.15 spent, 96 runs left |
Shield's code builds the 402, verifies and settles in src/shield/x402server.ts (buildRequirements, verifyPayment, settlePayment), with admit and collect in src/shield/server.ts.
3. The Monad gateway
/monad/v1 sells Telegraph answers to any agent for USDC on Monad testnet over x402 version 2. The agent pays Truvian's payee. The gateway buys the answer from Telegraph out of the escrow, then returns it with both receipts: the Telegraph escrow receipt and the Monad transaction.
| Route | Body | Price | Env var |
|---|---|---|---|
POST /monad/v1/ask | {intent, params, question?} | $0.02 | MONAD_ASK_PRICE_USD |
POST /monad/v1/diligence | {entity, jurisdiction, wallets?, purpose?} | $0.10 | MONAD_DILIGENCE_PRICE_USD |
GET /monad/v1, GET /monad/v1/ledger | free |
- Network
- eip155:10143 (Monad testnet;
MONAD_NETWORK=eip155:143moves it to mainnet) - Asset
- USDC 0x534b2f3A21130d7a60830c2Df862319e593943A3
- Paid to
- 0x04b10904205acE6A944065E972E8D6f5f8F4091A (
MONAD_PAYTO_ADDRESS; its key is not on the server) - Facilitator
- https://x402-facilitator.molandak.org (pays the gas)
When it settles. The payment in PAYMENT-SIGNATURE is verified before anything is bought, and settled only after an answer came back. If Telegraph does not answer within 100 seconds (MONAD_ASK_DEADLINE_SECONDS), the buyer gets 504 with charged: false. The same happens on no answer (502) or a buyer who disconnected; a failed settlement is reported as charged: false. A transport failure on /settle is retried once; the authorization's nonce prevents a double charge.
Built with the official @x402/core and @x402/evm packages: createMonadPaywall in src/monad/paywall.ts, registerMonadRoutes in src/monad/routes.ts, the books in src/monad/ledger.ts. createTelegraphMonadClient in src/monad/client.ts is a buyer any agent can import: it refuses any price above its per-call cap before signing. The DeFi (decentralized finance) watch (src/scripts/monad-defi-watch.ts, key MONAD_TESTNET_KEY) is its main buyer.
The books, from /monad/v1/ledger on 3 Dec 2026 at 20:07 UTC:
| Line | Count | Revenue | Telegraph cost | Margin |
|---|---|---|---|---|
Answers (/ask) | 388 | $7.76 | $3.88 | $3.88 |
Reports (/diligence) | 1 | $0.10 | $0.03 | $0.07 |
The answers went to truvian-defi-watch (327), steady (59), monad-buy-cli (1) and erc8004-agent-11510 (1), from 2 paying wallets. Steady is another Season II entry, paying from its own wallet; the rest are Truvian's own agents. Two receipts:
- Report rxbIw6al, 30 Nov 2026 - $0.10, Monad transaction 0x71c4aa27…2542e, $0.03 of Telegraph answers.
- Answer, 3 Dec 2026 19:33 UTC -
TOKEN_TOTAL_SUPPLY_VERIFY_GENERALfrom miner 6121, $0.02, Monad transaction 0xd484fcd9…ebe88, escrow receipt0xd7151eac…2c48.
4. The Solana gateway
/solana/v1 sells the same answers over x402 version 2 on Solana devnet. The buyer signs a TransferChecked to the treasury with the facilitator as fee payer, so it needs the dollar token and no SOL.
| Route | Body | Price | Env var |
|---|---|---|---|
POST /solana/v1/ask | {intent, params, question?, miner?} | $0.02 | SOLANA_PAY_ASK_PRICE_USD |
POST /solana/v1/pretrade | {pool, mint, tradeUsd, symbol?} | $0.05 | SOLANA_PAY_PRETRADE_PRICE_USD |
GET /solana/v1, /solana/v1/ledger, /solana/v1/allowance/:payer | free |
- Network
- solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 (devnet), scheme exact
- Accepted tokens, in order
- Circle's devnet USDC 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU, then tUSD DThEeRe6uhj2eT8SLrjiLexUiuxrggysA4zCuHE2sUFb (
SOLANA_PAY_ASSETS) - Paid to
- 5NYYHHEMmMZ6a5oskwckEi7gdz9WQ923Ae7PznDNCuQX (
SOLANA_PAY_PAYTO; unset, the routes are not mounted) - Facilitator
- https://x402.org/facilitator (
SOLANA_PAY_FACILITATOR_URL; PayAI's also works) - Cap per payer wallet
- $1.00 in any 24 hours (
SOLANA_PAY_PAYER_DAILY_CAP_USD)
When it settles. The gateway decodes the signed transaction itself (payer, mint, account, amount) and checks the payer's cap and that the payment was never presented before. It then verifies with the facilitator, buys the answer within 40 seconds (SOLANA_PAY_DEADLINE_SECONDS), and settles. Before returning the answer, it reads the transaction back at confirmed commitment and checks that the treasury gained exactly the price. With no answer, a late answer or a buyer who hung up, nothing is settled (charged: false), and the bought answer is held 10 minutes for the same request paid again. Refusals are 429 SPEND_CAP_REACHED and 409 PAYMENT_ALREADY_USED.
Built in src/solana-pay/: createSolanaPaywall in paywall.ts, the Solana exact scheme with @solana/web3.js in svm.ts, the routes in routes.ts, the pre-trade check in pretrade.ts, and the settings in mountSolanaPay (mount.ts). createTelegraphSolanaClient in client.ts is the buyer, and agent.ts is an example treasury agent. Full write-up: solana-pay/README.md.
The books, from /solana/v1/ledger on 3 Dec 2026 at 20:07 UTC: 3 sales (2 answers, 1 pre-trade check), $0.09 received in tUSD, $0.04 of Telegraph answers, $0.05 margin, all bought on 2 Dec by truvian-solana-treasury-agent. The latest is a pre-trade check paid in 5SK8K7H7…PAZ1V at slot 528603622: its two answers came from Steady's miner 6203 and Truvian's miner 6194, each with an escrow receipt. The five earlier sales on 1 Dec ran against a local copy of the gateway and are listed in the README.
5. Shield pays counterparties on Solana devnet
The settlement desk is the one place Shield sends a payment itself. On a RELEASE decision with execute: true, Shield's devnet wallet A4X5JKBCLobAY5MeDXkwiRV5Hr7Uu4vUhzHQczwXMBnz pays the counterparty in tUSD or rUSD, at most 1 token (SHIELD_SETTLEMENT_MAX). It waits for finalized and reads the transaction back. If the recipient did not gain exactly the amount, the decision becomes REJECT. The first verified payment is memo sEDw0qBk (25 Nov 2026). The code is sendDevnetSettlement and verifySettlement in src/shield/solana.ts, and the rules are on Settlement assurance.
6. Agents pay Truvian on Virtuals ACP
Truvian's agent on Virtuals' Agent Commerce Protocol sells two offerings: counterpartyDueDiligence and telegraphIntelligence (one answer to any Telegraph intent). When a job names Truvian as evaluator, the agent also checks other agents' deliveries. This rail moves real USDC. The live agent runs with ACP_NETWORK=mainnet on Base (chain 8453), and its wallet is 0x68c06925413593c1f374a4875e0a4fc2c7700e7e; the code default is testnet (Base Sepolia).
When it settles. On the buyer's requirement, the agent quotes a budget in USDC: ACP_DILIGENCE_PRICE_USD (code default $0.10) or ACP_INTEL_PRICE_USD (code default $0.02). It starts work only after job.funded. On job.completed, the payment goes to Truvian and the sale is booked with its Telegraph cost; a job.rejected books $0. As evaluator, Truvian is paid nothing.
| Job | Date | What | Paid | Telegraph cost |
|---|---|---|---|---|
| 83055 | 26 Nov 2026 | due diligence on Coinbase, Inc. (US-DE): PROCEED, memo yFfiYka5 | $0.01 | $0.02 |
| 83057, 83058, 83059 | 26 Nov 2026 | evaluations: accepted, rejected, rejected | $0 | $0.05 |
| 83096 | 30 Nov 2026 | telegraphIntelligence: ETH price from miner 20260828, receipt 0xafd58342…dd46 | $0.02 | $0.01 |
The agent's code is acp/src/truvian.ts, with prices and network in acp/src/config.ts; it books sales through acp/src/shield.ts. The books are at /api/business (channel acp) and /api/intelligence/ledger; run records are in acp/runs/. Setup and the other platforms are on Agent platforms.
Where to check every figure
- Escrow, node's own ledger
- devnode …/v1/ledger/account/0x2947…9055
- Escrow and Shield's caps
- /api/stats (
telegraphLedger,budget,pricing) - Desk and commerce sales by channel
- /api/business
- Monad sales
- /monad/v1/ledger
- Solana sales
- /solana/v1/ledger
- ACP intelligence sales
- /api/intelligence/ledger
0xe7ed…E8E7) paid for both. Most sales are Truvian paying itself. The DeFi watch bought 327 of the 388 Monad answers. Every Solana sale was paid by Shield's own devnet wallet to a treasury derived from the same devnet key. On 3 Dec Shield's counters showed 0 paid desk runs over x402 on Base Sepolia (paidChecks: 0). /api/stats labels Shield's network base-sepolia even if X402_CHAIN_ID moves it.