> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.walletstech.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.walletstech.com/_mcp/server.

# Check a balance

POST https://your-endpoint.example.com/balance
Content-Type: application/json

The balance of the user's wallet for that asset, as a **human-decimal string** — never a float, never base units.

Dust is floored to `"0"`: below 0.00001 for a native coin (0.0001 for BTC), and below 0.0001 for a token. A `"0"` balance therefore does not prove the address is empty.

Reference: https://docs.walletstech.com/api-reference/balances/get-balance

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Blockchain Wallet Service
  version: 1.0.0
paths:
  /balance:
    post:
      operationId: getBalance
      summary: Check a balance
      description: >-
        The balance of the user's wallet for that asset, as a **human-decimal
        string** — never a float, never base units.


        Dust is floored to `"0"`: below 0.00001 for a native coin (0.0001 for
        BTC), and below 0.0001 for a token. A `"0"` balance therefore does not
        prove the address is empty.
      tags:
        - balances
      parameters:
        - name: Authorization
          in: header
          description: >-
            A 15-minute token from `/auth`. Required on every endpoint except
            `/auth`.
          required: true
          schema:
            type: string
        - name: X-Request-Id
          in: header
          description: >-
            Correlation id. Generated if omitted, echoed on every response, and
            written to the audit log.
          required: false
          schema:
            type: string
        - name: X-USER-ID
          in: header
          description: >-
            Sent by the trusted gateway. When present it **overrides** any
            `userId` in the body.
          required: false
          schema:
            $ref: '#/components/schemas/UserId'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Balances_getBalance_Response_200'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: >-
            Service Unavailable — this deployment is not configured for that
            chain. Permanent, not a transient outage: do not retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                userId:
                  $ref: '#/components/schemas/UserId'
                assetId:
                  $ref: '#/components/schemas/AssetId'
              required:
                - userId
                - assetId
servers:
  - url: https://your-endpoint.example.com
    description: >-
      Placeholder. Each client is issued its own base URL — there is no shared
      public host. Replace this with the endpoint you were given.
components:
  schemas:
    UserId:
      type: string
      description: 24-character hex id, returned by `/create`.
      title: UserId
    AssetId:
      type: string
      enum:
        - '1'
        - '2'
        - '21'
        - '22'
        - '3'
        - '31'
        - '32'
        - '4'
        - '41'
        - '42'
        - '5'
        - '51'
        - '52'
        - '6'
        - '61'
        - '62'
      description: >-
        Primary asset selector. An all-digit string (`"21"`) is accepted and
        normalised to an integer.


        - `1` — BITCOIN BTC (native, 8 decimals)

        - `2` — ETHEREUM ETH (native, 18 decimals)

        - `21` — ETHEREUM USDT (ERC20, 6 decimals)

        - `22` — ETHEREUM USDC (ERC20, 6 decimals)

        - `3` — BNB BNB (native, 18 decimals)

        - `31` — BNB USDT (BEP20, 18 decimals)

        - `32` — BNB USDC (BEP20, 18 decimals)

        - `4` — TRON TRX (native, 6 decimals)

        - `41` — TRON USDT (TRC20, 6 decimals)

        - `42` — TRON USDC (TRC20, 6 decimals)

        - `5` — POLYGON POL (native, 18 decimals)

        - `51` — POLYGON USDT (ERC20, 6 decimals) — mainnet only

        - `52` — POLYGON USDC (ERC20, 6 decimals)

        - `6` — SOLANA SOL (native, 9 decimals)

        - `61` — SOLANA USDT (SPL, 6 decimals) — mainnet only

        - `62` — SOLANA USDC (SPL, 6 decimals)
      title: AssetId
    RequestId:
      type: string
      description: Echo of the inbound `X-Request-Id`, or a generated one.
      title: RequestId
    Balances_getBalance_Response_200:
      type: object
      properties:
        result:
          type: string
          description: >-
            Balance in the asset, as a human-decimal string. Dust is floored to
            `"0"`.
        requestId:
          $ref: '#/components/schemas/RequestId'
      required:
        - result
        - requestId
      title: Balances_getBalance_Response_200
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: Safe, client-facing message. Internal detail never leaks here.
        error:
          type: string
          description: The HTTP status code, as a string.
        requestId:
          $ref: '#/components/schemas/RequestId'
      required:
        - message
        - error
        - requestId
      title: ErrorResponse
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A 15-minute token from `/auth`. Required on every endpoint except
        `/auth`.

```

## Examples

### BITCOIN BTC — assetId 1 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 1
}
```

**Response**

```json
{
  "result": "0.04213377",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python BITCOIN BTC — assetId 1 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 1
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript BITCOIN BTC — assetId 1 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":1}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go BITCOIN BTC — assetId 1 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 1\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby BITCOIN BTC — assetId 1 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 1\n}"

response = http.request(request)
puts response.read_body
```

```java BITCOIN BTC — assetId 1 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 1\n}")
  .asString();
```

```php BITCOIN BTC — assetId 1 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 1
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp BITCOIN BTC — assetId 1 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 1\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift BITCOIN BTC — assetId 1 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 1
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### BITCOIN BTC — assetId 1 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 1
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python BITCOIN BTC — assetId 1 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 1
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript BITCOIN BTC — assetId 1 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":1}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go BITCOIN BTC — assetId 1 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 1\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby BITCOIN BTC — assetId 1 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 1\n}"

response = http.request(request)
puts response.read_body
```

```java BITCOIN BTC — assetId 1 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 1\n}")
  .asString();
```

```php BITCOIN BTC — assetId 1 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 1
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp BITCOIN BTC — assetId 1 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 1\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift BITCOIN BTC — assetId 1 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 1
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### ETHEREUM ETH — assetId 2 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 2
}
```

**Response**

```json
{
  "result": "1.234567891234567891",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python ETHEREUM ETH — assetId 2 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 2
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript ETHEREUM ETH — assetId 2 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":2}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go ETHEREUM ETH — assetId 2 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 2\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby ETHEREUM ETH — assetId 2 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 2\n}"

response = http.request(request)
puts response.read_body
```

```java ETHEREUM ETH — assetId 2 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 2\n}")
  .asString();
```

```php ETHEREUM ETH — assetId 2 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 2
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp ETHEREUM ETH — assetId 2 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 2\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift ETHEREUM ETH — assetId 2 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 2
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### ETHEREUM ETH — assetId 2 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 2
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python ETHEREUM ETH — assetId 2 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 2
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript ETHEREUM ETH — assetId 2 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":2}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go ETHEREUM ETH — assetId 2 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 2\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby ETHEREUM ETH — assetId 2 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 2\n}"

response = http.request(request)
puts response.read_body
```

```java ETHEREUM ETH — assetId 2 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 2\n}")
  .asString();
```

```php ETHEREUM ETH — assetId 2 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 2
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp ETHEREUM ETH — assetId 2 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 2\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift ETHEREUM ETH — assetId 2 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 2
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### ETHEREUM USDT (ERC20) — assetId 21 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 21
}
```

**Response**

```json
{
  "result": "250.5",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python ETHEREUM USDT (ERC20) — assetId 21 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 21
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript ETHEREUM USDT (ERC20) — assetId 21 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":21}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go ETHEREUM USDT (ERC20) — assetId 21 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 21\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby ETHEREUM USDT (ERC20) — assetId 21 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 21\n}"

response = http.request(request)
puts response.read_body
```

```java ETHEREUM USDT (ERC20) — assetId 21 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 21\n}")
  .asString();
```

```php ETHEREUM USDT (ERC20) — assetId 21 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 21
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp ETHEREUM USDT (ERC20) — assetId 21 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 21\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift ETHEREUM USDT (ERC20) — assetId 21 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 21
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### ETHEREUM USDT (ERC20) — assetId 21 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 21
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python ETHEREUM USDT (ERC20) — assetId 21 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 21
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript ETHEREUM USDT (ERC20) — assetId 21 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":21}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go ETHEREUM USDT (ERC20) — assetId 21 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 21\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby ETHEREUM USDT (ERC20) — assetId 21 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 21\n}"

response = http.request(request)
puts response.read_body
```

```java ETHEREUM USDT (ERC20) — assetId 21 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 21\n}")
  .asString();
```

```php ETHEREUM USDT (ERC20) — assetId 21 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 21
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp ETHEREUM USDT (ERC20) — assetId 21 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 21\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift ETHEREUM USDT (ERC20) — assetId 21 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 21
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### ETHEREUM USDC (ERC20) — assetId 22 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 22
}
```

**Response**

```json
{
  "result": "1000.25",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python ETHEREUM USDC (ERC20) — assetId 22 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 22
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript ETHEREUM USDC (ERC20) — assetId 22 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":22}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go ETHEREUM USDC (ERC20) — assetId 22 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 22\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby ETHEREUM USDC (ERC20) — assetId 22 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 22\n}"

response = http.request(request)
puts response.read_body
```

```java ETHEREUM USDC (ERC20) — assetId 22 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 22\n}")
  .asString();
```

```php ETHEREUM USDC (ERC20) — assetId 22 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 22
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp ETHEREUM USDC (ERC20) — assetId 22 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 22\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift ETHEREUM USDC (ERC20) — assetId 22 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 22
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### ETHEREUM USDC (ERC20) — assetId 22 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 22
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python ETHEREUM USDC (ERC20) — assetId 22 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 22
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript ETHEREUM USDC (ERC20) — assetId 22 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":22}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go ETHEREUM USDC (ERC20) — assetId 22 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 22\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby ETHEREUM USDC (ERC20) — assetId 22 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 22\n}"

response = http.request(request)
puts response.read_body
```

```java ETHEREUM USDC (ERC20) — assetId 22 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 22\n}")
  .asString();
```

```php ETHEREUM USDC (ERC20) — assetId 22 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 22
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp ETHEREUM USDC (ERC20) — assetId 22 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 22\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift ETHEREUM USDC (ERC20) — assetId 22 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 22
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### BNB BNB — assetId 3 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 3
}
```

**Response**

```json
{
  "result": "2.5",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python BNB BNB — assetId 3 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 3
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript BNB BNB — assetId 3 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":3}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go BNB BNB — assetId 3 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 3\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby BNB BNB — assetId 3 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 3\n}"

response = http.request(request)
puts response.read_body
```

```java BNB BNB — assetId 3 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 3\n}")
  .asString();
```

```php BNB BNB — assetId 3 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 3
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp BNB BNB — assetId 3 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 3\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift BNB BNB — assetId 3 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 3
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### BNB BNB — assetId 3 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 3
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python BNB BNB — assetId 3 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 3
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript BNB BNB — assetId 3 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":3}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go BNB BNB — assetId 3 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 3\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby BNB BNB — assetId 3 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 3\n}"

response = http.request(request)
puts response.read_body
```

```java BNB BNB — assetId 3 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 3\n}")
  .asString();
```

```php BNB BNB — assetId 3 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 3
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp BNB BNB — assetId 3 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 3\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift BNB BNB — assetId 3 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 3
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### BNB USDT (BEP20) — assetId 31 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 31
}
```

**Response**

```json
{
  "result": "250.5",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python BNB USDT (BEP20) — assetId 31 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 31
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript BNB USDT (BEP20) — assetId 31 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":31}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go BNB USDT (BEP20) — assetId 31 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 31\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby BNB USDT (BEP20) — assetId 31 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 31\n}"

response = http.request(request)
puts response.read_body
```

```java BNB USDT (BEP20) — assetId 31 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 31\n}")
  .asString();
```

```php BNB USDT (BEP20) — assetId 31 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 31
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp BNB USDT (BEP20) — assetId 31 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 31\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift BNB USDT (BEP20) — assetId 31 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 31
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### BNB USDT (BEP20) — assetId 31 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 31
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python BNB USDT (BEP20) — assetId 31 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 31
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript BNB USDT (BEP20) — assetId 31 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":31}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go BNB USDT (BEP20) — assetId 31 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 31\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby BNB USDT (BEP20) — assetId 31 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 31\n}"

response = http.request(request)
puts response.read_body
```

```java BNB USDT (BEP20) — assetId 31 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 31\n}")
  .asString();
```

```php BNB USDT (BEP20) — assetId 31 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 31
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp BNB USDT (BEP20) — assetId 31 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 31\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift BNB USDT (BEP20) — assetId 31 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 31
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### BNB USDC (BEP20) — assetId 32 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 32
}
```

**Response**

```json
{
  "result": "1000.25",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python BNB USDC (BEP20) — assetId 32 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 32
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript BNB USDC (BEP20) — assetId 32 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":32}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go BNB USDC (BEP20) — assetId 32 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 32\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby BNB USDC (BEP20) — assetId 32 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 32\n}"

response = http.request(request)
puts response.read_body
```

```java BNB USDC (BEP20) — assetId 32 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 32\n}")
  .asString();
```

```php BNB USDC (BEP20) — assetId 32 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 32
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp BNB USDC (BEP20) — assetId 32 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 32\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift BNB USDC (BEP20) — assetId 32 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 32
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### BNB USDC (BEP20) — assetId 32 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 32
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python BNB USDC (BEP20) — assetId 32 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 32
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript BNB USDC (BEP20) — assetId 32 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":32}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go BNB USDC (BEP20) — assetId 32 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 32\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby BNB USDC (BEP20) — assetId 32 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 32\n}"

response = http.request(request)
puts response.read_body
```

```java BNB USDC (BEP20) — assetId 32 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 32\n}")
  .asString();
```

```php BNB USDC (BEP20) — assetId 32 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 32
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp BNB USDC (BEP20) — assetId 32 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 32\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift BNB USDC (BEP20) — assetId 32 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 32
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### TRON TRX — assetId 4 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 4
}
```

**Response**

```json
{
  "result": "1500.5",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python TRON TRX — assetId 4 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 4
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript TRON TRX — assetId 4 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":4}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go TRON TRX — assetId 4 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 4\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby TRON TRX — assetId 4 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 4\n}"

response = http.request(request)
puts response.read_body
```

```java TRON TRX — assetId 4 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 4\n}")
  .asString();
```

```php TRON TRX — assetId 4 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 4
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp TRON TRX — assetId 4 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 4\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift TRON TRX — assetId 4 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 4
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### TRON TRX — assetId 4 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 4
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python TRON TRX — assetId 4 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 4
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript TRON TRX — assetId 4 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":4}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go TRON TRX — assetId 4 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 4\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby TRON TRX — assetId 4 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 4\n}"

response = http.request(request)
puts response.read_body
```

```java TRON TRX — assetId 4 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 4\n}")
  .asString();
```

```php TRON TRX — assetId 4 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 4
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp TRON TRX — assetId 4 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 4\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift TRON TRX — assetId 4 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 4
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### TRON USDT (TRC20) — assetId 41 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 41
}
```

**Response**

```json
{
  "result": "250.5",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python TRON USDT (TRC20) — assetId 41 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 41
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript TRON USDT (TRC20) — assetId 41 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":41}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go TRON USDT (TRC20) — assetId 41 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 41\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby TRON USDT (TRC20) — assetId 41 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 41\n}"

response = http.request(request)
puts response.read_body
```

```java TRON USDT (TRC20) — assetId 41 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 41\n}")
  .asString();
```

```php TRON USDT (TRC20) — assetId 41 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 41
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp TRON USDT (TRC20) — assetId 41 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 41\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift TRON USDT (TRC20) — assetId 41 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 41
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### TRON USDT (TRC20) — assetId 41 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 41
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python TRON USDT (TRC20) — assetId 41 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 41
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript TRON USDT (TRC20) — assetId 41 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":41}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go TRON USDT (TRC20) — assetId 41 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 41\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby TRON USDT (TRC20) — assetId 41 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 41\n}"

response = http.request(request)
puts response.read_body
```

```java TRON USDT (TRC20) — assetId 41 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 41\n}")
  .asString();
```

```php TRON USDT (TRC20) — assetId 41 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 41
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp TRON USDT (TRC20) — assetId 41 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 41\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift TRON USDT (TRC20) — assetId 41 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 41
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### TRON USDC (TRC20) — assetId 42 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 42
}
```

**Response**

```json
{
  "result": "1000.25",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python TRON USDC (TRC20) — assetId 42 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 42
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript TRON USDC (TRC20) — assetId 42 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":42}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go TRON USDC (TRC20) — assetId 42 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 42\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby TRON USDC (TRC20) — assetId 42 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 42\n}"

response = http.request(request)
puts response.read_body
```

```java TRON USDC (TRC20) — assetId 42 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 42\n}")
  .asString();
```

```php TRON USDC (TRC20) — assetId 42 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 42
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp TRON USDC (TRC20) — assetId 42 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 42\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift TRON USDC (TRC20) — assetId 42 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 42
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### TRON USDC (TRC20) — assetId 42 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 42
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python TRON USDC (TRC20) — assetId 42 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 42
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript TRON USDC (TRC20) — assetId 42 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":42}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go TRON USDC (TRC20) — assetId 42 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 42\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby TRON USDC (TRC20) — assetId 42 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 42\n}"

response = http.request(request)
puts response.read_body
```

```java TRON USDC (TRC20) — assetId 42 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 42\n}")
  .asString();
```

```php TRON USDC (TRC20) — assetId 42 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 42
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp TRON USDC (TRC20) — assetId 42 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 42\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift TRON USDC (TRC20) — assetId 42 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 42
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### POLYGON POL — assetId 5 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 5
}
```

**Response**

```json
{
  "result": "120.75",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python POLYGON POL — assetId 5 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 5
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript POLYGON POL — assetId 5 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":5}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go POLYGON POL — assetId 5 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 5\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby POLYGON POL — assetId 5 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 5\n}"

response = http.request(request)
puts response.read_body
```

```java POLYGON POL — assetId 5 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 5\n}")
  .asString();
```

```php POLYGON POL — assetId 5 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 5
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp POLYGON POL — assetId 5 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 5\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift POLYGON POL — assetId 5 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 5
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### POLYGON POL — assetId 5 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 5
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python POLYGON POL — assetId 5 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 5
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript POLYGON POL — assetId 5 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":5}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go POLYGON POL — assetId 5 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 5\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby POLYGON POL — assetId 5 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 5\n}"

response = http.request(request)
puts response.read_body
```

```java POLYGON POL — assetId 5 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 5\n}")
  .asString();
```

```php POLYGON POL — assetId 5 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 5
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp POLYGON POL — assetId 5 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 5\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift POLYGON POL — assetId 5 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 5
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### POLYGON USDT (ERC20) — assetId 51 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 51
}
```

**Response**

```json
{
  "result": "250.5",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python POLYGON USDT (ERC20) — assetId 51 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 51
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript POLYGON USDT (ERC20) — assetId 51 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":51}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go POLYGON USDT (ERC20) — assetId 51 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 51\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby POLYGON USDT (ERC20) — assetId 51 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 51\n}"

response = http.request(request)
puts response.read_body
```

```java POLYGON USDT (ERC20) — assetId 51 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 51\n}")
  .asString();
```

```php POLYGON USDT (ERC20) — assetId 51 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 51
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp POLYGON USDT (ERC20) — assetId 51 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 51\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift POLYGON USDT (ERC20) — assetId 51 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 51
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### POLYGON USDT (ERC20) — assetId 51 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 51
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python POLYGON USDT (ERC20) — assetId 51 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 51
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript POLYGON USDT (ERC20) — assetId 51 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":51}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go POLYGON USDT (ERC20) — assetId 51 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 51\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby POLYGON USDT (ERC20) — assetId 51 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 51\n}"

response = http.request(request)
puts response.read_body
```

```java POLYGON USDT (ERC20) — assetId 51 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 51\n}")
  .asString();
```

```php POLYGON USDT (ERC20) — assetId 51 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 51
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp POLYGON USDT (ERC20) — assetId 51 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 51\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift POLYGON USDT (ERC20) — assetId 51 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 51
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### POLYGON USDC (ERC20) — assetId 52 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 52
}
```

**Response**

```json
{
  "result": "1000.25",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python POLYGON USDC (ERC20) — assetId 52 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 52
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript POLYGON USDC (ERC20) — assetId 52 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":52}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go POLYGON USDC (ERC20) — assetId 52 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 52\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby POLYGON USDC (ERC20) — assetId 52 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 52\n}"

response = http.request(request)
puts response.read_body
```

```java POLYGON USDC (ERC20) — assetId 52 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 52\n}")
  .asString();
```

```php POLYGON USDC (ERC20) — assetId 52 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 52
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp POLYGON USDC (ERC20) — assetId 52 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 52\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift POLYGON USDC (ERC20) — assetId 52 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 52
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### POLYGON USDC (ERC20) — assetId 52 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 52
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python POLYGON USDC (ERC20) — assetId 52 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 52
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript POLYGON USDC (ERC20) — assetId 52 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":52}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go POLYGON USDC (ERC20) — assetId 52 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 52\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby POLYGON USDC (ERC20) — assetId 52 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 52\n}"

response = http.request(request)
puts response.read_body
```

```java POLYGON USDC (ERC20) — assetId 52 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 52\n}")
  .asString();
```

```php POLYGON USDC (ERC20) — assetId 52 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 52
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp POLYGON USDC (ERC20) — assetId 52 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 52\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift POLYGON USDC (ERC20) — assetId 52 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 52
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### SOLANA SOL — assetId 6 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 6
}
```

**Response**

```json
{
  "result": "3.5",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python SOLANA SOL — assetId 6 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 6
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript SOLANA SOL — assetId 6 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":6}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go SOLANA SOL — assetId 6 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 6\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby SOLANA SOL — assetId 6 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 6\n}"

response = http.request(request)
puts response.read_body
```

```java SOLANA SOL — assetId 6 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 6\n}")
  .asString();
```

```php SOLANA SOL — assetId 6 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 6
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp SOLANA SOL — assetId 6 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 6\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift SOLANA SOL — assetId 6 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 6
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### SOLANA SOL — assetId 6 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 6
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python SOLANA SOL — assetId 6 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 6
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript SOLANA SOL — assetId 6 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":6}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go SOLANA SOL — assetId 6 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 6\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby SOLANA SOL — assetId 6 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 6\n}"

response = http.request(request)
puts response.read_body
```

```java SOLANA SOL — assetId 6 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 6\n}")
  .asString();
```

```php SOLANA SOL — assetId 6 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 6
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp SOLANA SOL — assetId 6 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 6\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift SOLANA SOL — assetId 6 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 6
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### SOLANA USDT (SPL) — assetId 61 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 61
}
```

**Response**

```json
{
  "result": "250.5",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python SOLANA USDT (SPL) — assetId 61 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 61
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript SOLANA USDT (SPL) — assetId 61 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":61}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go SOLANA USDT (SPL) — assetId 61 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 61\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby SOLANA USDT (SPL) — assetId 61 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 61\n}"

response = http.request(request)
puts response.read_body
```

```java SOLANA USDT (SPL) — assetId 61 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 61\n}")
  .asString();
```

```php SOLANA USDT (SPL) — assetId 61 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 61
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp SOLANA USDT (SPL) — assetId 61 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 61\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift SOLANA USDT (SPL) — assetId 61 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 61
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### SOLANA USDT (SPL) — assetId 61 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 61
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python SOLANA USDT (SPL) — assetId 61 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 61
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript SOLANA USDT (SPL) — assetId 61 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":61}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go SOLANA USDT (SPL) — assetId 61 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 61\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby SOLANA USDT (SPL) — assetId 61 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 61\n}"

response = http.request(request)
puts response.read_body
```

```java SOLANA USDT (SPL) — assetId 61 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 61\n}")
  .asString();
```

```php SOLANA USDT (SPL) — assetId 61 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 61
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp SOLANA USDT (SPL) — assetId 61 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 61\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift SOLANA USDT (SPL) — assetId 61 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 61
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### SOLANA USDC (SPL) — assetId 62 — Balance



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 62
}
```

**Response**

```json
{
  "result": "1000.25",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python SOLANA USDC (SPL) — assetId 62 — Balance
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 62
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript SOLANA USDC (SPL) — assetId 62 — Balance
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":62}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go SOLANA USDC (SPL) — assetId 62 — Balance
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 62\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby SOLANA USDC (SPL) — assetId 62 — Balance
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 62\n}"

response = http.request(request)
puts response.read_body
```

```java SOLANA USDC (SPL) — assetId 62 — Balance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 62\n}")
  .asString();
```

```php SOLANA USDC (SPL) — assetId 62 — Balance
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 62
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp SOLANA USDC (SPL) — assetId 62 — Balance
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 62\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift SOLANA USDC (SPL) — assetId 62 — Balance
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 62
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### SOLANA USDC (SPL) — assetId 62 — Empty wallet (dust is floored to "0")



**Request**

```json
{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 62
}
```

**Response**

```json
{
  "result": "0",
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python SOLANA USDC (SPL) — assetId 62 — Empty wallet (dust is floored to "0")
import requests

url = "https://your-endpoint.example.com/balance"

payload = {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "assetId": 62
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript SOLANA USDC (SPL) — assetId 62 — Empty wallet (dust is floored to "0")
const url = 'https://your-endpoint.example.com/balance';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userId":"66b1f0c23d4e4a5b9c6d7e8f","assetId":62}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go SOLANA USDC (SPL) — assetId 62 — Empty wallet (dust is floored to "0")
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/balance"

	payload := strings.NewReader("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 62\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby SOLANA USDC (SPL) — assetId 62 — Empty wallet (dust is floored to "0")
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 62\n}"

response = http.request(request)
puts response.read_body
```

```java SOLANA USDC (SPL) — assetId 62 — Empty wallet (dust is floored to "0")
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/balance")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 62\n}")
  .asString();
```

```php SOLANA USDC (SPL) — assetId 62 — Empty wallet (dust is floored to "0")
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/balance', [
  'body' => '{
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 62
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp SOLANA USDC (SPL) — assetId 62 — Empty wallet (dust is floored to "0")
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/balance");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userId\": \"66b1f0c23d4e4a5b9c6d7e8f\",\n  \"assetId\": 62\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift SOLANA USDC (SPL) — assetId 62 — Empty wallet (dust is floored to "0")
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "userId": "66b1f0c23d4e4a5b9c6d7e8f",
  "assetId": 62
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/balance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```