cURL
curl --request GET \
--url https://api.relay.link/app-fees/{wallet}/balancesconst options = {method: 'GET'};
fetch('https://api.relay.link/app-fees/{wallet}/balances', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/app-fees/{wallet}/balances"
response = requests.get(url)
print(response.text){
"balances": [
{
"currency": {
"chainId": 8453,
"address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6,
"metadata": {
"logoURI": "https://ethereum-optimism.github.io/data/USDC/logo.png",
"verified": false,
"isNative": false
}
},
"amount": "30754920",
"amountFormatted": "30.75492",
"amountUsd": "30.901612",
"minimumAmount": "30454920"
}
],
"totalBalanceUsd": 123,
"outstandingFastFillBalanceUsd": 123,
"availableBalanceUsd": 123
}{
"message": "<string>"
}API Reference
Get App Fee Balances
This API returns app fee balances for a specific wallet.
GET
/
app-fees
/
{wallet}
/
balances
cURL
curl --request GET \
--url https://api.relay.link/app-fees/{wallet}/balancesconst options = {method: 'GET'};
fetch('https://api.relay.link/app-fees/{wallet}/balances', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/app-fees/{wallet}/balances"
response = requests.get(url)
print(response.text){
"balances": [
{
"currency": {
"chainId": 8453,
"address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6,
"metadata": {
"logoURI": "https://ethereum-optimism.github.io/data/USDC/logo.png",
"verified": false,
"isNative": false
}
},
"amount": "30754920",
"amountFormatted": "30.75492",
"amountUsd": "30.901612",
"minimumAmount": "30454920"
}
],
"totalBalanceUsd": 123,
"outstandingFastFillBalanceUsd": 123,
"availableBalanceUsd": 123
}{
"message": "<string>"
}What are app fees?
Response
Default Response
Was this page helpful?