curl https://api.xenarch.dev/v1/links/JJjIwDyV4N1CG9g8AHMxfdJ9/networks \
-H "Authorization: Bearer xm_live_..."
{
"link_id": "JJjIwDyV4N1CG9g8AHMxfdJ9",
"accepted_networks": {
"ethereum": {"tokens": ["USDC", "USDT"]}
},
"networks": [
{
"network": "base",
"name": "Base",
"chain_id": 8453,
"native_symbol": "ETH",
"confirmations": 1,
"wallet": true,
"pay_to": "0xYourWalletAddress",
"tokens": [{"symbol": "USDC", "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "decimals": 6}]
},
{
"network": "ethereum",
"name": "Ethereum",
"chain_id": 1,
"standard": "ERC-20",
"native_symbol": "ETH",
"confirmations": 12,
"wallet": true,
"pay_to": "0xYourWalletAddress",
"tokens": [
{"symbol": "USDC", "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "decimals": 6},
{"symbol": "USDT", "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "decimals": 6}
]
}
]
}
Links
Get Link Networks
Read which networks and stablecoins a pay link takes, as set by its owner, and the list a pay page shows buyers.
GET
/
v1
/
links
/
{link_id}
/
networks
curl https://api.xenarch.dev/v1/links/JJjIwDyV4N1CG9g8AHMxfdJ9/networks \
-H "Authorization: Bearer xm_live_..."
{
"link_id": "JJjIwDyV4N1CG9g8AHMxfdJ9",
"accepted_networks": {
"ethereum": {"tokens": ["USDC", "USDT"]}
},
"networks": [
{
"network": "base",
"name": "Base",
"chain_id": 8453,
"native_symbol": "ETH",
"confirmations": 1,
"wallet": true,
"pay_to": "0xYourWalletAddress",
"tokens": [{"symbol": "USDC", "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "decimals": 6}]
},
{
"network": "ethereum",
"name": "Ethereum",
"chain_id": 1,
"standard": "ERC-20",
"native_symbol": "ETH",
"confirmations": 12,
"wallet": true,
"pay_to": "0xYourWalletAddress",
"tokens": [
{"symbol": "USDC", "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "decimals": 6},
{"symbol": "USDT", "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "decimals": 6}
]
}
]
}
curl https://api.xenarch.dev/v1/links/JJjIwDyV4N1CG9g8AHMxfdJ9/networks \
-H "Authorization: Bearer xm_live_..."
{
"link_id": "JJjIwDyV4N1CG9g8AHMxfdJ9",
"accepted_networks": {
"ethereum": {"tokens": ["USDC", "USDT"]}
},
"networks": [
{
"network": "base",
"name": "Base",
"chain_id": 8453,
"native_symbol": "ETH",
"confirmations": 1,
"wallet": true,
"pay_to": "0xYourWalletAddress",
"tokens": [{"symbol": "USDC", "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "decimals": 6}]
},
{
"network": "ethereum",
"name": "Ethereum",
"chain_id": 1,
"standard": "ERC-20",
"native_symbol": "ETH",
"confirmations": 12,
"wallet": true,
"pay_to": "0xYourWalletAddress",
"tokens": [
{"symbol": "USDC", "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "decimals": 6},
{"symbol": "USDT", "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "decimals": 6}
]
}
]
}
accepted_networks is what you stored with Set Link Networks, or null for Base USDC only. networks is what the link takes right now, in the order a pay page lists it; buyers see the same list on Get Link.
Errors
| Status | Meaning |
|---|---|
401 | No merchant key or session |
404 | No link with this id, or the link isn’t yours |