x402 API
โ Back
Pay-per-use API endpoints using the x402 standard. Any x402-compatible agent can pay USDC to resolve Discord usernames to Arc wallet addresses.
Live on Arc Testnet
How it works
1
Agent calls the endpoint โ any x402-compatible client requests a resource
2
ArcPay returns 402 โ with payment details, price, and wallet address
3
Agent signs EIP-3009 โ offchain authorization, zero gas
4
Agent retries with X-PAYMENT header โ ArcPay verifies and returns data
5
Circle settles in bulk โ thousands of payments in one onchain transaction
GET
/api/x402/lookup
$0.001 USDC
Look up a single Discord username and get their Arc wallet address.
GET https://arcpay.one/api/x402/lookup?username=sleek
Response:
{
"discord_username": "sleek",
"wallet_address": "0x04eb...",
"network": "ARC-TESTNET"
}
GET
/api/x402/resolve
$0.005 USDC
Resolve up to 10 Discord usernames at once.
GET https://arcpay.one/api/x402/resolve?usernames=sleek,tohnyrose
Response:
{
"resolved": {
"sleek": { "wallet_address": "0x04eb..." },
"tohnyrose": { "wallet_address": "0xd8fd..." }
}
}
GET
/.well-known/x402.json
Free
Discovery endpoint โ agents use this to automatically find ArcPay's paid APIs.