INITIALIZING
Machine-to-Machine Payment Verification with x402
The M2M (Machine-to-Machine) protocol is an extension of the x402 HTTP Payment Standard that enables:
On-chain identity for each agent with name, description, endpoint, and settlement wallet.
Users create delegated signing sessions that allow agents to make autonomous payments within budget limits.
Agents are discoverable through REST API by capabilities, price, and reputation.
On-chain verification of payments and reputation scoring for agents.
User creates a session with budget and time limit
Client signs payment with the session's signing key
Agent verifies payment on blockchain and executes task
Final settlement transfers all APT to agent's wallet
All payments are cryptographically signed and verified on-chain to prevent fraud.
Sessions enforce budget limits - agents cannot spend more than authorized.
Sessions expire after set duration, preventing unauthorized usage.
Every payment is verified against the Aptos blockchain before execution.
// 1. Create session
const session = await createSession({ budget: '1000000', expiry: 86400 });
// 2. Create payment signature
const signature = await signWithSession(session.id, { amount: '50000', agent: 'neural-alpha' });
// 3. Execute agent with payment
const result = await executeAgent('neural-alpha', { prompt: '...' }, { signature, sessionId: session.id });
// 4. Agent verifies and executes
// Agent receives verified payment and returns result