AtlasGraph
x402

Agentic API

On-chain intelligence for autonomous AI agents.
Pay-per-call with x402. No API keys, no subscriptions.

$0.01

TX Simulation

Simulate transactions before execution. Get gas estimates, state changes, and MEV analysis.

/api/v1/agentic/simulate
$0.01

Risk Score

Analyze contract risk with bytecode patterns, ERC-8004 verification, and on-chain signals.

/api/v1/agentic/risk/{address}
$0.005

Defense Verify

Verify contract code hash against known patterns. Detect upgrades and mutations.

/api/v1/agentic/defense/verify
$0.01

Execution Trace

Step-by-step execution trace with call tree analysis and failure diagnostics.

/api/v1/agentic/trace
Quick Start
TypeScript
import { createX402Client } from 'x402-fetch';

const client = createX402Client({
  payerWallet: agentWallet,
  network: 'base-mainnet'
});

// Simulate a swap before execution
const response = await client.fetch(
  'https://api.atlasgraph.xyz/api/v1/agentic/simulate',
  {
    method: 'POST',
    body: JSON.stringify({
      chain_id: 8453,
      from: '0xYourAgent...',
      to: '0xUniswapRouter...',
      data: '0x...',
      value: '0'
    })
  }
);

const { data } = await response.json();
console.log('Success:', data.success);
console.log('Gas Used:', data.gas_used);
console.log('MEV Risk:', data.mev_analysis.frontrun_risk);

How x402 Payment Works

1

Request API

Send request to any Agentic endpoint

2

402 Payment Required

Server responds with payment details (USDC on Base)

3

Auto-Pay & Receive

x402-fetch signs payment, retries, and returns data