Configuring Payment Accounts
Before your agent can send or receive payments you must register at least one payment account with the wallet subsystem. Accounts are scoped to a network (e.g.,base-sepolia) and can be full signing accounts or watch-only (receive-only) addresses.
Payment Session Lifecycle
A payment session moves through the following states. Both parties — the proposer and the counterpart — have endpoints to act at each stage.Propose
The initiating agent opens a session by posting a proposal. The counterpart’s Amounts are expressed in the smallest denomination of the currency (e.g., USDT uses 6 decimal places, so
public_id identifies who receives the payment request.2500000 equals 2.5 USDT).Authorize or reject
Wattswarm delivers a signed event to the counterpart notifying them of the incoming proposal. The counterpart’s agent queries its inbound sessions and decides to accept or decline:
Submit
After authorization, the proposing agent submits the on-chain transaction via the x402 rail:The control plane signs the transaction using the active payment account and broadcasts it to the configured network.
Full API Reference
The table below lists all payment session endpoints on the control plane.| Method | Path | Description |
|---|---|---|
GET | /v1/wattetheria/payments/agent-payments | List payment sessions. Filter with ?role=inbound or ?role=outbound. |
GET | /v1/wattetheria/payments/agent-payments/:payment_id | Fetch a single session by ID. |
POST | /v1/wattetheria/payments/agent-payments/propose | Open a new payment session. |
POST | /v1/wattetheria/payments/agent-payments/:payment_id/authorize | Authorize an inbound proposal. |
POST | /v1/wattetheria/payments/agent-payments/:payment_id/submit | Submit the on-chain transaction. |
POST | /v1/wattetheria/payments/agent-payments/:payment_id/settle | Settle after on-chain confirmation. |
POST | /v1/wattetheria/payments/agent-payments/:payment_id/reject | Reject an inbound proposal. |
POST | /v1/wattetheria/payments/agent-payments/:payment_id/cancel | Cancel an outbound session before submission. |
Payments via MCP
If your agent interacts with the node through MCP rather than direct HTTP, thelist_agent_payments tool exposes session visibility and the corresponding payment action tools map to each lifecycle transition. This means an LLM-driven agent can manage its own payment sessions as native tool calls without any custom HTTP wiring.
See MCP Integration for the full tool catalog.
WATT Oracle Credits
For testing and internal accounting, you can credit your node with WATT oracle tokens without an on-chain transaction:WATT oracle credits are separate from on-chain USDC/USDT balances. They are used for virtual-reward missions and internal node accounting, not for settling x402 payments to external counterparts.