Skip to main content
POST
/
api
/
v1
/
wallets
/
{wallet_uuid}
/
estimate-transfer-fee
Estimate transfer fee
import requests

url = "https://api.example.com/api/v1/wallets/{wallet_uuid}/estimate-transfer-fee"

payload = {
    "dst_addr": "<string>",
    "amount": "<string>",
    "token_id": "SETH",
    "chain_id": "<string>",
    "src_addr": "<string>"
}
headers = {"Content-Type": "application/json"}

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

print(response.text)
{
  "result": {
    "fee_type": "<string>",
    "token_id": "<string>",
    "recommended": {
      "max_fee_per_gas": "<string>",
      "max_priority_fee_per_gas": "<string>",
      "gas_limit": "<string>",
      "compute_unit_price": "<string>",
      "compute_unit_limit": "<string>",
      "fee_amount": "<string>"
    },
    "slow": {
      "max_fee_per_gas": "<string>",
      "max_priority_fee_per_gas": "<string>",
      "gas_limit": "<string>",
      "compute_unit_price": "<string>",
      "compute_unit_limit": "<string>",
      "fee_amount": "<string>"
    },
    "fast": {
      "max_fee_per_gas": "<string>",
      "max_priority_fee_per_gas": "<string>",
      "gas_limit": "<string>",
      "compute_unit_price": "<string>",
      "compute_unit_limit": "<string>",
      "fee_amount": "<string>"
    }
  },
  "success": true,
  "suggestion": "",
  "message": "",
  "meta": {
    "total": 123,
    "offset": 123,
    "limit": 123,
    "has_more": true,
    "after": "<string>",
    "before": "<string>"
  }
}

Headers

X-API-Key
string | null

Path Parameters

wallet_uuid
string<uuid>
required

The UUID of the wallet for which to estimate the transfer fee. Retrieve this value from the id field returned when the wallet was created.

Body

application/json

Request payload for transfer fee estimation.

dst_addr
string
required

The destination on-chain address.

Required string length: 1 - 255
amount
string
required

The transfer amount as a decimal string.

Required string length: 1 - 100
token_id
string
default:SETH

The Cobo token ID (for example, ETH, SETH). Defaults to SETH.

Required string length: 1 - 100
chain_id
string | null

The chain ID. Automatically resolved from token_id if omitted.

Maximum string length: 100
src_addr
string | null

The source address. If omitted, the wallet's most recently created address for this chain is used.

Maximum string length: 255

Response

Successful Response

result
EstimateTransferFeeRead · object
required

Fee estimation response payload.

success
boolean
default:true
suggestion
string
default:""
message
string
default:""
meta
PaginationMeta · object

Pagination metadata for list responses.

Supports both legacy offset-based and cursor-based pagination. Cursor fields (has_more, after, before) are populated for cursor-paginated endpoints. Legacy fields (offset, limit) are populated when the caller uses the deprecated offset parameter.