> 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.

# Estimate a fee

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

Estimates what a transfer between two addresses would cost.

⚠️ **This is the one endpoint that takes raw addresses instead of a `userId`.** It never touches the user's wallet, so pass `sender` and `recipient` explicitly. They must differ.

The shape of `result` is family-specific: a decimal **string** in the chain's native currency for Bitcoin, the EVM chains and Solana; an **object of consumed resources** (`bandwidth`, plus `energy` for TRC20) on TRON.

These are estimates — gas prices and Tron resource prices move between the estimate and the broadcast.

Reference: https://docs.walletstech.com/api-reference/fees/estimate-fee

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Blockchain Wallet Service
  version: 1.0.0
paths:
  /fee:
    post:
      operationId: estimateFee
      summary: Estimate a fee
      description: >-
        Estimates what a transfer between two addresses would cost.


        ⚠️ **This is the one endpoint that takes raw addresses instead of a
        `userId`.** It never touches the user's wallet, so pass `sender` and
        `recipient` explicitly. They must differ.


        The shape of `result` is family-specific: a decimal **string** in the
        chain's native currency for Bitcoin, the EVM chains and Solana; an
        **object of consumed resources** (`bandwidth`, plus `energy` for TRC20)
        on TRON.


        These are estimates — gas prices and Tron resource prices move between
        the estimate and the broadcast.
      tags:
        - fees
      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
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Fees_estimateFee_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:
                assetId:
                  $ref: '#/components/schemas/AssetId'
                sender:
                  type: string
                  description: Raw source address — **not** a `userId`.
                recipient:
                  type: string
                  description: Raw destination address. Must differ from `sender`.
              required:
                - assetId
                - sender
                - recipient
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:
    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
    TronFee:
      type: object
      properties:
        bandwidth:
          type: integer
        energy:
          type: integer
          description: TRC20 transfers only.
      required:
        - bandwidth
      description: >-
        Resources a Tron transfer will consume beyond what the account already
        covers. Not a currency amount.
      title: TronFee
    FeePostResponsesContentApplicationJsonSchemaResult:
      oneOf:
        - type: string
        - $ref: '#/components/schemas/TronFee'
      description: >-
        A decimal string in the chain's native currency on Bitcoin, EVM and
        Solana; a resource object on TRON.
      title: FeePostResponsesContentApplicationJsonSchemaResult
    RequestId:
      type: string
      description: Echo of the inbound `X-Request-Id`, or a generated one.
      title: RequestId
    Fees_estimateFee_Response_200:
      type: object
      properties:
        result:
          $ref: >-
            #/components/schemas/FeePostResponsesContentApplicationJsonSchemaResult
          description: >-
            A decimal string in the chain's native currency on Bitcoin, EVM and
            Solana; a resource object on TRON.
        requestId:
          $ref: '#/components/schemas/RequestId'
      required:
        - result
        - requestId
      title: Fees_estimateFee_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 — assetId 1



**Request**

```json
{
  "assetId": 1,
  "sender": "bc1q5psk2q8t4x495ap75zghxmyvlmk59lr2u93r6j",
  "recipient": "bc1q3e684gwc5ng7c72s3aup3284weejzv8zevmfun"
}
```

**Response**

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

**SDK Code**

```python BITCOIN — assetId 1
import requests

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

payload = {
    "assetId": 1,
    "sender": "bc1q5psk2q8t4x495ap75zghxmyvlmk59lr2u93r6j",
    "recipient": "bc1q3e684gwc5ng7c72s3aup3284weejzv8zevmfun"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript BITCOIN — assetId 1
const url = 'https://your-endpoint.example.com/fee';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"assetId":1,"sender":"bc1q5psk2q8t4x495ap75zghxmyvlmk59lr2u93r6j","recipient":"bc1q3e684gwc5ng7c72s3aup3284weejzv8zevmfun"}'
};

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

```go BITCOIN — assetId 1
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"assetId\": 1,\n  \"sender\": \"bc1q5psk2q8t4x495ap75zghxmyvlmk59lr2u93r6j\",\n  \"recipient\": \"bc1q3e684gwc5ng7c72s3aup3284weejzv8zevmfun\"\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 — assetId 1
require 'uri'
require 'net/http'

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

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  \"assetId\": 1,\n  \"sender\": \"bc1q5psk2q8t4x495ap75zghxmyvlmk59lr2u93r6j\",\n  \"recipient\": \"bc1q3e684gwc5ng7c72s3aup3284weejzv8zevmfun\"\n}"

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

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

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

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

$client = new \GuzzleHttp\Client();

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

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

```csharp BITCOIN — assetId 1
using RestSharp;

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

```swift BITCOIN — assetId 1
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "assetId": 1,
  "sender": "bc1q5psk2q8t4x495ap75zghxmyvlmk59lr2u93r6j",
  "recipient": "bc1q3e684gwc5ng7c72s3aup3284weejzv8zevmfun"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/fee")! 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 — assetId 2



**Request**

```json
{
  "assetId": 2,
  "sender": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
  "recipient": "0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190"
}
```

**Response**

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

**SDK Code**

```python ETHEREUM — assetId 2
import requests

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

payload = {
    "assetId": 2,
    "sender": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
    "recipient": "0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript ETHEREUM — assetId 2
const url = 'https://your-endpoint.example.com/fee';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"assetId":2,"sender":"0xc0c548339ee2af89c078200cabd1b7c7b47d911a","recipient":"0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190"}'
};

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

```go ETHEREUM — assetId 2
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"assetId\": 2,\n  \"sender\": \"0xc0c548339ee2af89c078200cabd1b7c7b47d911a\",\n  \"recipient\": \"0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190\"\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 — assetId 2
require 'uri'
require 'net/http'

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

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  \"assetId\": 2,\n  \"sender\": \"0xc0c548339ee2af89c078200cabd1b7c7b47d911a\",\n  \"recipient\": \"0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/fee")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"assetId\": 2,\n  \"sender\": \"0xc0c548339ee2af89c078200cabd1b7c7b47d911a\",\n  \"recipient\": \"0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/fee', [
  'body' => '{
  "assetId": 2,
  "sender": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
  "recipient": "0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp ETHEREUM — assetId 2
using RestSharp;

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

```swift ETHEREUM — assetId 2
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "assetId": 2,
  "sender": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
  "recipient": "0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/fee")! 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 — assetId 3



**Request**

```json
{
  "assetId": 3,
  "sender": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
  "recipient": "0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190"
}
```

**Response**

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

**SDK Code**

```python BNB — assetId 3
import requests

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

payload = {
    "assetId": 3,
    "sender": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
    "recipient": "0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript BNB — assetId 3
const url = 'https://your-endpoint.example.com/fee';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"assetId":3,"sender":"0xc0c548339ee2af89c078200cabd1b7c7b47d911a","recipient":"0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190"}'
};

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

```go BNB — assetId 3
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"assetId\": 3,\n  \"sender\": \"0xc0c548339ee2af89c078200cabd1b7c7b47d911a\",\n  \"recipient\": \"0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190\"\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 — assetId 3
require 'uri'
require 'net/http'

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

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  \"assetId\": 3,\n  \"sender\": \"0xc0c548339ee2af89c078200cabd1b7c7b47d911a\",\n  \"recipient\": \"0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/fee")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"assetId\": 3,\n  \"sender\": \"0xc0c548339ee2af89c078200cabd1b7c7b47d911a\",\n  \"recipient\": \"0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/fee', [
  'body' => '{
  "assetId": 3,
  "sender": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
  "recipient": "0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp BNB — assetId 3
using RestSharp;

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

```swift BNB — assetId 3
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "assetId": 3,
  "sender": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
  "recipient": "0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/fee")! 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 — assetId 4



**Request**

```json
{
  "assetId": 4,
  "sender": "THxvJmtZghePy5XqDE7HKawvFAsAgxcWZt",
  "recipient": "TDAG1JbfuCRcJ4kFLqTvpwdxPWPfpm37pZ"
}
```

**Response**

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

**SDK Code**

```python TRON — assetId 4
import requests

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

payload = {
    "assetId": 4,
    "sender": "THxvJmtZghePy5XqDE7HKawvFAsAgxcWZt",
    "recipient": "TDAG1JbfuCRcJ4kFLqTvpwdxPWPfpm37pZ"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript TRON — assetId 4
const url = 'https://your-endpoint.example.com/fee';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"assetId":4,"sender":"THxvJmtZghePy5XqDE7HKawvFAsAgxcWZt","recipient":"TDAG1JbfuCRcJ4kFLqTvpwdxPWPfpm37pZ"}'
};

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

```go TRON — assetId 4
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"assetId\": 4,\n  \"sender\": \"THxvJmtZghePy5XqDE7HKawvFAsAgxcWZt\",\n  \"recipient\": \"TDAG1JbfuCRcJ4kFLqTvpwdxPWPfpm37pZ\"\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 — assetId 4
require 'uri'
require 'net/http'

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

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  \"assetId\": 4,\n  \"sender\": \"THxvJmtZghePy5XqDE7HKawvFAsAgxcWZt\",\n  \"recipient\": \"TDAG1JbfuCRcJ4kFLqTvpwdxPWPfpm37pZ\"\n}"

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

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

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

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

$client = new \GuzzleHttp\Client();

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

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

```csharp TRON — assetId 4
using RestSharp;

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

```swift TRON — assetId 4
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "assetId": 4,
  "sender": "THxvJmtZghePy5XqDE7HKawvFAsAgxcWZt",
  "recipient": "TDAG1JbfuCRcJ4kFLqTvpwdxPWPfpm37pZ"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/fee")! 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 — assetId 5



**Request**

```json
{
  "assetId": 5,
  "sender": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
  "recipient": "0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190"
}
```

**Response**

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

**SDK Code**

```python POLYGON — assetId 5
import requests

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

payload = {
    "assetId": 5,
    "sender": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
    "recipient": "0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript POLYGON — assetId 5
const url = 'https://your-endpoint.example.com/fee';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"assetId":5,"sender":"0xc0c548339ee2af89c078200cabd1b7c7b47d911a","recipient":"0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190"}'
};

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

```go POLYGON — assetId 5
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"assetId\": 5,\n  \"sender\": \"0xc0c548339ee2af89c078200cabd1b7c7b47d911a\",\n  \"recipient\": \"0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190\"\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 — assetId 5
require 'uri'
require 'net/http'

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

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  \"assetId\": 5,\n  \"sender\": \"0xc0c548339ee2af89c078200cabd1b7c7b47d911a\",\n  \"recipient\": \"0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/fee")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"assetId\": 5,\n  \"sender\": \"0xc0c548339ee2af89c078200cabd1b7c7b47d911a\",\n  \"recipient\": \"0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/fee', [
  'body' => '{
  "assetId": 5,
  "sender": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
  "recipient": "0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp POLYGON — assetId 5
using RestSharp;

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

```swift POLYGON — assetId 5
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "assetId": 5,
  "sender": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
  "recipient": "0x1cc5ca781f2f9ee13eb89283f71abaa24bb61190"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/fee")! 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 — assetId 6



**Request**

```json
{
  "assetId": 6,
  "sender": "EB81pobCpSX16xKeuwYyNMDuZEcpWuHcmimQ9LbdT63d",
  "recipient": "FYf9qLEEU29u5EjzXssNzJyUCYa5nY3CaQtBmhSsrwV7"
}
```

**Response**

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

**SDK Code**

```python SOLANA — assetId 6
import requests

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

payload = {
    "assetId": 6,
    "sender": "EB81pobCpSX16xKeuwYyNMDuZEcpWuHcmimQ9LbdT63d",
    "recipient": "FYf9qLEEU29u5EjzXssNzJyUCYa5nY3CaQtBmhSsrwV7"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript SOLANA — assetId 6
const url = 'https://your-endpoint.example.com/fee';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"assetId":6,"sender":"EB81pobCpSX16xKeuwYyNMDuZEcpWuHcmimQ9LbdT63d","recipient":"FYf9qLEEU29u5EjzXssNzJyUCYa5nY3CaQtBmhSsrwV7"}'
};

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

```go SOLANA — assetId 6
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"assetId\": 6,\n  \"sender\": \"EB81pobCpSX16xKeuwYyNMDuZEcpWuHcmimQ9LbdT63d\",\n  \"recipient\": \"FYf9qLEEU29u5EjzXssNzJyUCYa5nY3CaQtBmhSsrwV7\"\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 — assetId 6
require 'uri'
require 'net/http'

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

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  \"assetId\": 6,\n  \"sender\": \"EB81pobCpSX16xKeuwYyNMDuZEcpWuHcmimQ9LbdT63d\",\n  \"recipient\": \"FYf9qLEEU29u5EjzXssNzJyUCYa5nY3CaQtBmhSsrwV7\"\n}"

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

```java SOLANA — assetId 6
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/fee")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"assetId\": 6,\n  \"sender\": \"EB81pobCpSX16xKeuwYyNMDuZEcpWuHcmimQ9LbdT63d\",\n  \"recipient\": \"FYf9qLEEU29u5EjzXssNzJyUCYa5nY3CaQtBmhSsrwV7\"\n}")
  .asString();
```

```php SOLANA — assetId 6
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/fee', [
  'body' => '{
  "assetId": 6,
  "sender": "EB81pobCpSX16xKeuwYyNMDuZEcpWuHcmimQ9LbdT63d",
  "recipient": "FYf9qLEEU29u5EjzXssNzJyUCYa5nY3CaQtBmhSsrwV7"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp SOLANA — assetId 6
using RestSharp;

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

```swift SOLANA — assetId 6
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "assetId": 6,
  "sender": "EB81pobCpSX16xKeuwYyNMDuZEcpWuHcmimQ9LbdT63d",
  "recipient": "FYf9qLEEU29u5EjzXssNzJyUCYa5nY3CaQtBmhSsrwV7"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/fee")! 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



**Request**

```json
{
  "assetId": 41,
  "sender": "THxvJmtZghePy5XqDE7HKawvFAsAgxcWZt",
  "recipient": "TDAG1JbfuCRcJ4kFLqTvpwdxPWPfpm37pZ"
}
```

**Response**

```json
{
  "result": {
    "bandwidth": 345,
    "energy": 130285
  },
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

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

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

payload = {
    "assetId": 41,
    "sender": "THxvJmtZghePy5XqDE7HKawvFAsAgxcWZt",
    "recipient": "TDAG1JbfuCRcJ4kFLqTvpwdxPWPfpm37pZ"
}
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
const url = 'https://your-endpoint.example.com/fee';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"assetId":41,"sender":"THxvJmtZghePy5XqDE7HKawvFAsAgxcWZt","recipient":"TDAG1JbfuCRcJ4kFLqTvpwdxPWPfpm37pZ"}'
};

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
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"assetId\": 41,\n  \"sender\": \"THxvJmtZghePy5XqDE7HKawvFAsAgxcWZt\",\n  \"recipient\": \"TDAG1JbfuCRcJ4kFLqTvpwdxPWPfpm37pZ\"\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
require 'uri'
require 'net/http'

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

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  \"assetId\": 41,\n  \"sender\": \"THxvJmtZghePy5XqDE7HKawvFAsAgxcWZt\",\n  \"recipient\": \"TDAG1JbfuCRcJ4kFLqTvpwdxPWPfpm37pZ\"\n}"

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

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

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

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

$client = new \GuzzleHttp\Client();

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

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

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

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

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

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "assetId": 41,
  "sender": "THxvJmtZghePy5XqDE7HKawvFAsAgxcWZt",
  "recipient": "TDAG1JbfuCRcJ4kFLqTvpwdxPWPfpm37pZ"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/fee")! 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()
```