curl "https://api.xenarch.dev/v1/links/JJjIwDyV4N1CG9g8AHMxfdJ9/wallet-scan?address=0xBuyerWalletAddress000000000000000000000000"
{
"address": "0xBuyerWalletAddress000000000000000000000000",
"balances": [
{
"network": "base",
"token": "USDC",
"chain_id": 8453,
"decimals": 6,
"balance_micro": "240000000",
"native_symbol": "ETH",
"native_balance": "0.018",
"fee_native": "0.0000002",
"fee_usd": "0.0006",
"has_gas": true,
"confirmations": 1
},
{
"network": "bnb",
"token": "USDT",
"chain_id": 56,
"decimals": 18,
"balance_micro": "310000000",
"native_symbol": "BNB",
"native_balance": "0",
"fee_native": "0.0000093",
"fee_usd": "0.006",
"has_gas": false,
"confirmations": 15
}
],
"unavailable": []
}
Links
Scan a Payer Wallet
Read a connected wallet’s USDC and USDT balances on every network a pay link takes, with each network’s fee and whether the wallet can pay it.
GET
/
v1
/
links
/
{link_id}
/
wallet-scan
curl "https://api.xenarch.dev/v1/links/JJjIwDyV4N1CG9g8AHMxfdJ9/wallet-scan?address=0xBuyerWalletAddress000000000000000000000000"
{
"address": "0xBuyerWalletAddress000000000000000000000000",
"balances": [
{
"network": "base",
"token": "USDC",
"chain_id": 8453,
"decimals": 6,
"balance_micro": "240000000",
"native_symbol": "ETH",
"native_balance": "0.018",
"fee_native": "0.0000002",
"fee_usd": "0.0006",
"has_gas": true,
"confirmations": 1
},
{
"network": "bnb",
"token": "USDT",
"chain_id": 56,
"decimals": 18,
"balance_micro": "310000000",
"native_symbol": "BNB",
"native_balance": "0",
"fee_native": "0.0000093",
"fee_usd": "0.006",
"has_gas": false,
"confirmations": 15
}
],
"unavailable": []
}
curl "https://api.xenarch.dev/v1/links/JJjIwDyV4N1CG9g8AHMxfdJ9/wallet-scan?address=0xBuyerWalletAddress000000000000000000000000"
{
"address": "0xBuyerWalletAddress000000000000000000000000",
"balances": [
{
"network": "base",
"token": "USDC",
"chain_id": 8453,
"decimals": 6,
"balance_micro": "240000000",
"native_symbol": "ETH",
"native_balance": "0.018",
"fee_native": "0.0000002",
"fee_usd": "0.0006",
"has_gas": true,
"confirmations": 1
},
{
"network": "bnb",
"token": "USDT",
"chain_id": 56,
"decimals": 18,
"balance_micro": "310000000",
"native_symbol": "BNB",
"native_balance": "0",
"fee_native": "0.0000093",
"fee_usd": "0.006",
"has_gas": false,
"confirmations": 15
}
],
"unavailable": []
}
Fields
| Field | Description |
|---|---|
balances[].balance_micro | The wallet’s balance of that token, in 6-decimal micro units |
balances[].native_symbol, native_balance | The coin the network fee is paid in, and how much of it the wallet holds |
balances[].fee_native, fee_usd | Estimated fee of one transfer, in that coin and in USD (null when no price is available) |
balances[].has_gas | Whether the wallet holds enough of the fee coin, with a margin. When it’s false, ask the buyer to add some or to pay another way. |
unavailable | Networks that couldn’t be read right now. Their rows are missing. |
Errors
| Status | Meaning |
|---|---|
404 | No link with this id, or the link is revoked |
422 | address isn’t an EVM address |
429 | Too many requests from this IP address |