Get App Fee Balances - Relay
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request GET \
--url https://api.relay.link/app-fees/{wallet}/balances
JavaScript
const 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));
Python
import requests
url = "https://api.relay.link/app-fees/{wallet}/balances"
response = requests.get(url)
print(response.text)
Response Codes
- 200
- 400
Example Response
{
"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>"
}
Path Parameters
- wallet
string
required
Wallet to get the app fees for
Response Structure
- 200
application/json
Default Response- balances
object[]
An array of app fee balances across multiple currencies - totalBalanceUsd
number
Total app fee balance in USD across all currencies. - outstandingFastFillBalanceUsd
number
Outstanding fast fill balance in USD that has not yet settled. - availableBalanceUsd
number
The effective collateral available for new fast fills and claims.
- balances