User Balance by Twitter ID
This endpoint relies on CARV ID to establish the relationship between the provided Twitter ID and the corresponding blockchain address. If the specified twitter_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 Twitter account is properly linked to a blockchain address via CARV ID before making a request.
GET UserBalanceByTwitter
Endpoint
GET /ai-agent-backend/user_balance_by_twitter_id
Parameters
twitter_user_id
query
string
no
Twitter handle
chain_name
query
string
no
Blockchain name, e.g., "ethereum"
token_ticker
query
string
no
Token ticker, e.g., "ETH"
Authorization
header
string
yes
Login token in Redis
Description
chain_name: Supported values include
"ethereum_mainnet"
,"base_mainnet"
,"solana_mainnet"
,"opbnb_mainnet"
(and all testnets as well).
Example Request (HTTP)
Example Request (Shell)
Example Request (JavaScript)
4o
Example Response (200 OK)
Error Response (400):
Responses
200
none
Inline
400
none
Inline
Response Data Schema
HTTP Status Code 200
code
integer
true
none
Response code
msg
string
true
none
Response message
data
object
true
none
Response data
balance
string
true
none
User balance
HTTP Status Code 400
error
string
true
none
Error description
Last updated