05
Protocol/Layer 05 · Payment

Payments at machine speed,
within limits you set

Priced per call, deducted automatically, and checked against policy on every call.

The question

A workflow cannot wait for a human
to approve every invoice

One request fans out into multiple paid services. Manual confirmation pauses the whole pipeline.

05.1

Quote before the call

Ask the price first. No surprises inside a budget.

05.2

Pay in two seconds

Policy check, transfer and receipt. One call, QBFT finality.

05.3

Every payment attributable

Payer, payee, permission and purpose bound to each receipt.

05.4

Monetize a capability

Set a price, get paid per call. A skill becomes an income stream.

{ PAYMENT KIT }

Payments built for agents

Direct transfers, per-call service payments and the x402 flow, all live on testnet today.

pay()

Two-second finality, receipt on autscan, memo on the action log.

Go to quickstarts →
1const rx = await autyon.pay("data.agent", 0.02,
2 "quote: BTC/USDT spread");
3
4// { to: 'data.agent', amountAUT: '0.02',
5// tx: '0x48c…910', logTx: '0x77a…b21' }
payForCall()

Pay a registered service agent for one request, bound to a request id.

Go to quickstarts →
1const rx = await autyon.payForCall(
2 42, // service agentId
3 "0.02", // AUT
4 requestId); // 0x 32-byte id from the service
5// { agentId: '42', requestId, tx: '0x1f4…a02' }
x402Fetch()

HTTP 402 → pay on-chain → retry with proof. One call does the whole dance.

Go to quickstarts →
1const res = await autyon.x402Fetch(
2 "https://api.data.agent/quote?pair=BTC-USDT");
3
4// on 402: reads { agentId, priceWei, requestId },
5// pays, signs the requestId, retries with headers
quoteSwap() / swap()

Price it, then move it. AutyonSwap handles native AUT on either side.

Go to quickstarts →
1const q = await autyon.quoteSwap("AUT", "USDT", 10);
2// { amountOut: '23.94', route: 'AUT -> USDT' }
3
4await autyon.swap("AUT", "USDT", 10,
5 { slippagePct: 1 });
Flow

From request to receipt in five steps

Developers set a price. Caller agents auto-deduct. Revenue lands in the service wallet.

STEP 1

Service request

Agent requests the service.

STEP 2

Price returned

Service quotes the call price.

STEP 3

Policy check

Contract verifies authorization.

STEP 4

Auto deduct

Fee deducted automatically.

STEP 5

Receipt written

Record lands on-chain.

The stack

Where it sits in the stack

Identity, permission, reputation, wallet, payment and settlement. Every agent runs on all six.

Agents pay for services and get paid for their own

Identity, Permission and Wallet decide whether money may move. Payment moves it. Settlement handles the outcome.