Supported Endpoints
All x402-enabled endpoints are billed at a flat rate of $0.01 per request.| Endpoint |
|---|
/v1/search |
/v1/fetch |
How It Works
- Send a request without authentication — the API responds with
402 Payment Requiredand apayment-requiredheader containing the amount, deposit address, network, and asset. - Sign a USDC transfer (EIP-712 / EIP-3009) with your wallet, then resend the same request with the signed payload in the
payment-signatureheader. - The API verifies the signature, executes the payment on-chain, and returns
200with apayment-responseheader containing the transaction hash.
Setting Up a Wallet
If you don’t have a wallet yet, follow these steps to create one and fund it with USDC on Base.Install MetaMask
Download and install the MetaMask app on your phone or browser extension.
Export your private key
- Tap on your account name in the top left corner
- Next to the account name, tap the three dots menu on the right
- Select Private key
- Copy your private key — this is what you’ll use in the SDK to sign payments on Base
Quickstart
Headers Reference
| Header | Direction | Description |
|---|---|---|
payment-required | Response (402) | Base64 JSON — amount, deposit address, network, asset |
payment-signature | Request | Base64 JSON — signed payment authorization |
payment-response | Response (200) | Base64 JSON — transaction hash, success status |
Facing issues? Reach out to our engineering team at support@linkup.so or via our Discord or book a 15 minutes call with a member of our technical team.