GET
/
v1
/
custody
/
mpc
/
estimate_fee
/
request(
    "GET",
    "/v1/custody/mpc/estimate_fee/",
    {
        "coin": "ETH",
        "amount": 1,
        "address": "0x8a73abedb3053b17204b887af6231a8ac35fc2cc"
    },
    api_key, api_secret, host
)
{
  "success": true,
  "result": {
    "slow": {
      "fee_per_byte": 0,
      "fee_amount": 0,
      "gas_price": 13349966041,
      "gas_limit": 21000
    },
    "average": {
      "fee_per_byte": 0,
      "fee_amount": 0,
      "gas_price": 13349966041,
      "gas_limit": 21000
    },
    "fast": {
      "fee_per_byte": 0,
      "fee_amount": 0,
      "gas_price": 26699932082,
      "gas_limit": 42000
    }
  }
}

Request

coin
String
required
coin code
amount
Int
transaction amount in decimal places (e.g. one bitcoin is divisible to eight decimal places, and 100000000 represents 1 BTC)
address
String
deposit address
replace_cobo_id
String
Cobo ID of a transaction designated as RBF
from_address
String
from address
to_address_details
Json
list of addresses used for receiving coins associated with the UTXO model; this value must be a JSON string and has a parameter type that fits. Please note that the to_address_details parameter and amount parameter are alternative.
Sample
to_address_details: '[{"to_address": "2N4J1WajwKZKpRtzzUmaW9B5GEqkppqdVY9","amount": "547"},
                      {"to_address": "tb1qycxy8d8jgff8hql09y62smw5s5mrf3ryn2j9lk","amount": "548"}]'
fee
Float
transaction fees per byte; applicable to UTXO model
gas_price
Int
gas price; applicable to account model; unit: wei
gas_limit
Int
gas limit, applicable to account model
extra_parameters
Json

UTXO Model:

  1. input_selection: inputs to be excluded and included in transactions associated with the UTXO model; inputs must be in correspondence with from_address (if specified); it must be a JSON string and has a structure that fits InputSelection
  2. inputs_to_spend: UTXO you want as input
    • tx_hash: Transaction tx_hash
    • vout_n: UTXO index
Sample
extra_parameters: '{"input_selection":
                     {"inputs_to_spend":[
                       {"tx_hash": "e7ddfa61cc2a78e1661da44b10cdc862256573d2dc0485dc989fb7045ed9032c", "vout_n": 1},
                       {"tx_hash": "eabaee1f1a196b087e78303c6eaaeb9d1166de5f8d85f4ef7872b88bfcd60914", "vout_n": 2}]
                     }
                 }'

Web3 wallet:

  • calldata: request data associated with an EVM contract.
Sample
extra_parameters: '{"calldata": "0xa8059cbb000000000000000000000000971948873f869e4517311b190d7eb31e30eba0ef000000000000000000000000000000000000000000000000002386f26fc10000"}'

Response

success
bool
request successful or failed
result
object