Estimate Gas Fee

Request

POST https://custody-example-url/custody/v1/api/projects/{b_id}/estimate-miner-fee

Parameters

Field Type Description
b_id String Business line ID
from_address Optional String From address (for segregated wallet)
from_wallet_code String From Wallet ID
coin_name String Coin name
Allowed Value: Refer to Cactus Symbol (For API) column in Supported Token
order_no String Order number (max 50 characters)
description Optional String Order description
Size: 50
fee_rate_level Optional String For BTC/ETH series,
Allowed values: NORMAL、HIGHER、LOW、CUSTOM
fee_rate Optional Decimal For BTC/ETH series, need to pass rate for CUSTOM rate, range refers to 'Get Withdrawal Rate Range' interface
For EIP1559 series, this is equilant of max fee per gas
dest_address_item_list Object[] Destination address list
-dest_address String Destination address
-memo_type Optional String memo type (MEMO_NONE,MEMO_TEXT,MEMO_HASH)
-memo Optional String memo
-amount Decimal Withdrawal amount (the smallest unit)
-is_all_withdrawal Boolean If the order is full balance withdrawal
Allowed values: "false", "true"
-memo_type Optional String memo type(for XLM series)
Allowed values: MEMO_NONE,MEMO_TEXT,MEMO_HASH
-memo Optional String memo(for XLM series)
-remark Optional String Remark
Size: 50

Request Example

{
    "from_address": "mioNv7xz1es2waP77gLQYypXesBbkT8BeX",
    "from_wallet_code": "CHBTC4813422686",
    "description": "test order create",
    "dest_address_item_list": [
        {
            "amount": 65000,
            "dest_address": "mioNv7xz1es2waP77gLQYypXesBbkT8BeX",
            "memo_type": "MEMO_TEXT",
            "memo": "text",
            "is_all_withdrawal": false,
            "remark": "test order item"
        }
    ]
}

Response

Field Type Description
code Integer Response code
message String Response message
successful Boolean If the request is successful
data Integer estimated gas fee

Response Example


{
  "code":0,
  "message":"",
  "data":8003000,
  "successful":true
}
Copyright © 2025 Cactus Custody all right reserved,powered by GitbookUpdated: 17-Apr-2025 10:11:15

results matching ""

    No results matching ""

    results matching ""

      No results matching ""