agent_invoice
Create EIP-712 payment challenge invoices, verify settlement proofs, and manage the full agent-to-agent invoice lifecycle for direct peer hiring without custodial wallets.
Instructions
[Cost: $0.0010 USDC on Base & Solana] Autonomous agent-to-agent micro-invoicing.
Issue EIP-712 payment challenge invoices, verify on-chain settlement proofs,
and manage the full A2A invoice lifecycle (create → settle → expire/cancel).
Enables peer-to-peer agent hiring without custodial wallets or human intermediaries.
Actions:
create — Issue a new invoice with EIP-712 typed-data challenge.
Params: {
"payee_agent_id": "agent:sairen/extractor",
"amount_usdc": "0.005",
"payer_agent_id": "agent:claude/orchestrator", # optional
"token": "USDC", # optional (default USDC)
"chain": "base", # optional (base|solana|arbitrum|...)
"service_description": "Web page extraction", # optional
"ttl_seconds": 3600 # optional (60–86400)
}
verify — Confirm settlement with transaction hash or EIP-712 signature.
Params: {"invoice_id": "inv_...", "tx_hash": "0x..."}
status — Inspect current invoice state.
Params: {"invoice_id": "inv_..."}
cancel — Void a pending invoice (payee-initiated).
Params: {"invoice_id": "inv_..."}
list — Query invoices by payer, payee, or state.
Params: {"payer_agent_id": "agent:...", "state": "pending", "limit": 10}
Invoice States: pending → settled | expired | cancelled
Args:
action: Lifecycle action (create/verify/status/cancel/list).
params: Action-specific parameter dictionary.
payment_signature: x402 Base USDC transaction hash (defaults to dev mock key).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | create | |
| params | No | ||
| payment_signature | No |