User Balance by Discord ID
This endpoint relies on CARV ID to establish the relationship between the provided Discord ID and the corresponding blockchain address. If the specified discord_user_id is not connected to any address through CARV ID, the API will not be able to retrieve the expected result. Ensure that the Discord account is properly linked to a blockchain address via CARV ID before making a request.
GET UserBalanceByDiscordID
GET /ai-agent-backend/user_balance_by_discord_id
Params
discord_user_id
query
string
no
none
chain_name
query
string
no
"ethereum"
token_ticker
query
string
no
none
Authorization
header
string
yes
login token in redis
Origin
header
string
yes
none
Description
chain_name: Supported values include
"ethereum_mainnet"
,"base_mainnet"
,"solana_mainnet"
,"opbnb_mainnet"
(and all testnets as well).
Example Request (HTTP)
Response Examples
400 Response
Responses
200
none
Inline
400
none
Inline
Responses Data Schema
HTTP Status Code 200
» code
integer
true
none
none
» msg
string
true
none
none
» data
object
true
none
none
»» balance
string
true
none
none
HTTP Status Code 400
» error
string
true
none
none
Last updated