Build, test, and deploy with X402 protocol integration tools
Test X402 API endpoints in real-time
Construct and simulate transactions before broadcasting
Calculate optimal gas prices for your transactions
Verify smart contracts on the X402 network
import { X402Client } from "@x402/sdk";
const client = new X402Client({
  apiKey: process.env.X402_API_KEY,
  endpoint: "https://x402b.netlify.app/api",
  network: "mainnet"
});
const payment = await client.initializePayment({
  amount: "1.0",
  recipient: "0x742d35b9...",
  metadata: { orderId: "12345" }
});
console.log(payment.id);const result = await client.processTransaction({
  paymentId: payment.id,
  verifiedNode: true,
  layer: 2
});
if (result.status === "SUCCESS") {
  console.log("Transaction hash:", result.txHash);
}const status = await client.getTransactionStatus({
  txHash: "0x9e1a4c6b..."
});
console.log({
  status: status.status,
  confirmations: status.confirmations,
  layer: status.layer
});Complete API documentation with examples
Sample projects and integration templates
Connect with the X402 community