curl -X PUT https://api.xenarch.dev/v1/links/JJjIwDyV4N1CG9g8AHMxfdJ9/networks \
-H "Authorization: Bearer xm_live_..." \
-H "Content-Type: application/json" \
-d '{
"networks": {
"ethereum": {"tokens": ["USDC", "USDT"]},
"bnb": {"tokens": ["USDT"]},
"tron": {"tokens": ["USDT"], "pay_to": "TYourTronReceivingAddress00000000"}
}
}'
{
"link_id": "JJjIwDyV4N1CG9g8AHMxfdJ9",
"accepted_networks": {
"ethereum": {"tokens": ["USDC", "USDT"]},
"bnb": {"tokens": ["USDT"]},
"tron": {"tokens": ["USDT"], "pay_to": "TYourTronReceivingAddress00000000"}
},
"networks": [
{
"network": "base",
"name": "Base",
"chain_id": 8453,
"standard": "",
"native_symbol": "ETH",
"confirmations": 1,
"wallet": true,
"pay_to": "0xYourWalletAddress",
"tokens": [{"symbol": "USDC", "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "decimals": 6}]
},
{
"network": "tron",
"name": "Tron",
"chain_id": null,
"standard": "TRC-20",
"native_symbol": "TRX",
"confirmations": 19,
"wallet": false,
"pay_to": "TYourTronReceivingAddress00000000",
"tokens": [{"symbol": "USDT", "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", "decimals": 6}]
}
]
}
Links
Set Link Networks
Choose the networks and stablecoins a pay link takes: USDC on Base, Ethereum, BNB Chain and Monad, and USDT on Ethereum, BNB Chain, Monad (USDT0) and Tron.
PUT
/
v1
/
links
/
{link_id}
/
networks
curl -X PUT https://api.xenarch.dev/v1/links/JJjIwDyV4N1CG9g8AHMxfdJ9/networks \
-H "Authorization: Bearer xm_live_..." \
-H "Content-Type: application/json" \
-d '{
"networks": {
"ethereum": {"tokens": ["USDC", "USDT"]},
"bnb": {"tokens": ["USDT"]},
"tron": {"tokens": ["USDT"], "pay_to": "TYourTronReceivingAddress00000000"}
}
}'
{
"link_id": "JJjIwDyV4N1CG9g8AHMxfdJ9",
"accepted_networks": {
"ethereum": {"tokens": ["USDC", "USDT"]},
"bnb": {"tokens": ["USDT"]},
"tron": {"tokens": ["USDT"], "pay_to": "TYourTronReceivingAddress00000000"}
},
"networks": [
{
"network": "base",
"name": "Base",
"chain_id": 8453,
"standard": "",
"native_symbol": "ETH",
"confirmations": 1,
"wallet": true,
"pay_to": "0xYourWalletAddress",
"tokens": [{"symbol": "USDC", "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "decimals": 6}]
},
{
"network": "tron",
"name": "Tron",
"chain_id": null,
"standard": "TRC-20",
"native_symbol": "TRX",
"confirmations": 19,
"wallet": false,
"pay_to": "TYourTronReceivingAddress00000000",
"tokens": [{"symbol": "USDT", "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", "decimals": 6}]
}
]
}
curl -X PUT https://api.xenarch.dev/v1/links/JJjIwDyV4N1CG9g8AHMxfdJ9/networks \
-H "Authorization: Bearer xm_live_..." \
-H "Content-Type: application/json" \
-d '{
"networks": {
"ethereum": {"tokens": ["USDC", "USDT"]},
"bnb": {"tokens": ["USDT"]},
"tron": {"tokens": ["USDT"], "pay_to": "TYourTronReceivingAddress00000000"}
}
}'
{
"link_id": "JJjIwDyV4N1CG9g8AHMxfdJ9",
"accepted_networks": {
"ethereum": {"tokens": ["USDC", "USDT"]},
"bnb": {"tokens": ["USDT"]},
"tron": {"tokens": ["USDT"], "pay_to": "TYourTronReceivingAddress00000000"}
},
"networks": [
{
"network": "base",
"name": "Base",
"chain_id": 8453,
"standard": "",
"native_symbol": "ETH",
"confirmations": 1,
"wallet": true,
"pay_to": "0xYourWalletAddress",
"tokens": [{"symbol": "USDC", "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "decimals": 6}]
},
{
"network": "tron",
"name": "Tron",
"chain_id": null,
"standard": "TRC-20",
"native_symbol": "TRX",
"confirmations": 19,
"wallet": false,
"pay_to": "TYourTronReceivingAddress00000000",
"tokens": [{"symbol": "USDT", "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", "decimals": 6}]
}
]
}
@xenarch/react also take USDC on Base only.
| Network | network | USDC | USDT | Fee coin | Confirmations |
|---|---|---|---|---|---|
| Base | base | always on | not issued | ETH | 1 |
| Ethereum | ethereum | yes | yes | ETH | 12 |
| BNB Chain | bnb | yes | yes | BNB | 15 |
| Monad | monad | yes | USDT0 | MON | 2 |
| Tron | tron | not issued | yes* | TRX | 19 |
Authentication
The link’s owner only: a merchant key (Authorization: Bearer xm_live_...) or the dashboard’s wallet session. See Authentication.
Body
networks replaces the whole setting. Each key is a network; each value has tokens, a list of USDC and USDT. An empty list turns that network off, and {} goes back to Base USDC only. Base USDC is always on and can’t be turned off.
On an EVM network the link’s own receiving wallet is used, so it must be a plain wallet there. A smart-contract wallet often doesn’t exist at the same address on another chain, so Xenarch refuses it with 409. Tron needs pay_to, your Tron receiving address (it starts with T); Xenarch checks its checksum.
The setting isn’t part of the link’s signed terms, so open checkouts keep working when you change it.
Response
| Field | Description |
|---|---|
accepted_networks | The stored setting, or null for Base USDC only |
networks | What the link takes now, in the order a pay page lists it. The same list Get Link returns to buyers. |
Errors
| Status | Meaning |
|---|---|
400 | An unknown or disabled network or coin, or a malformed address |
401 | No merchant key or session |
404 | No link with this id, or the link isn’t yours |
409 | The link’s receiving wallet is a contract on that network |
502 | The network couldn’t be checked right now. Try again. |
Body
application/json
The networks and stablecoins the link takes beyond Base USDC. Replaces the whole setting; {} goes back to Base USDC only.