Get Fungible ERC20 Token Balances
GEThttps://api.fuse.io/api/v0/balances/assets/:address
Get Fungible ERC20 Token Balances
Request
Path Parameters
address stringrequired
The wallet address to query for ERC20 tokens.
Query Parameters
apiKey stringrequired
Your API key to authenticate requests.
tokenAddress string
Optional. The specific token address to query. If not provided, all token balances will be returned.
Responses
- 200
- 403
OK
- application/json
- Schema
- Example (auto)
Schema
messagestring
result object[]
statusstring
{
"message": "string",
"result": [
{
"balance": "string",
"contractAddress": "string",
"decimals": "string",
"name": "string",
"symbol": "string",
"type": "string"
}
],
"status": "string"
}
Access to the resource is forbidden.
- application/json
- Schema
- Example (auto)
Schema
statusCodeinteger
errorMessagestring
errorstring
{
"statusCode": 0,
"errorMessage": "string",
"error": "string"
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.fuse.io/api/v0/balances/assets/:address");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear