Documentation

Everything you need to integrate machpay into your AI agents and services

Quick Start

1. Install the SDK

npm install @machpay/sdk

2. Initialize the Client

import { MachPayClient } from '@machpay/sdk';

const client = new MachPayClient({
  wallet: yourWalletInstance,
  network: 'base', // or 'arbitrum', 'ethereum'
});

3. Make a Payment Request

const response = await client.request({
  url: 'https://api.example.com/resource',
  method: 'GET',
});

// Resource is returned immediately
console.log(response.data);

// Payment settles in background
console.log(response.receipt);

📚 Complete Documentation: Detailed guides, API references, and advanced integration patterns are coming soon. Join our Discord for early access and support.

Need Help?

Join our Discord community for support, discussions, and updates.

Join Discord

Read the Whitepaper

Deep dive into the technical architecture and protocol design.

Read Whitepaper