Supported endpoints
All x402-enabled endpoints are billed at a flat rate of $0.01 per request.How it works
- Send a request without authentication. The API responds with
402Payment Required and 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.1
Install MetaMask
Download and install the MetaMask app on your phone or browser extension.
2
Create an account
Follow the onboarding flow to create a new wallet.
3
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
4
Fund your wallet with USDC on Base
- In MetaMask, switch to the Base network
- Buy USDC (USD Coin). You may need to verify your identity and enter personal information
- Complete the purchase
Quickstart
- Python
- JavaScript
1
Install dependencies
2
Send a paid request
Headers reference
Need help? Email
support@linkup.so, ping us on Discord, or talk to us.