cURL
curl --request GET \ --url https://api.neynar.com/v2/farcaster/user/balance/ \ --header 'x-api-key: <api-key>'
{ "user_balance": { "object": "user_balance", "user": { "object": "user_dehydrated", "fid": 3, "username": "<string>", "display_name": "<string>", "pfp_url": "<string>", "custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7" }, "address_balances": [ { "object": "address_balance", "verified_address": { "address": "<string>", "network": "ethereum" }, "token_balances": [ { "object": "token_balance", "token": { "object": "token", "name": "<string>", "symbol": "<string>", "address": "<string>", "decimals": 123 }, "balance": { "in_token": "<string>", "in_usdc": "<string>" } } ] } ] } }
Fetches the token balances of a user given their FID
API key to authorize requests
FID of the user to fetch
x >= 1
Comma separated list of networks to fetch balances for
Show child attributes
Success
The response is of type object.
object
Was this page helpful?