Skip to main content
GET
/
v1
/
custody
/
mpc
/
get_max_send_amount
/
request(
    "GET",
    "/v1/custody/mpc/get_max_send_amount/",
    {
        "coin": "ETH",
        "fee_rate": 43638776316,
        "to_address": "0x8a73abedb3053b17204b887af6231a8ac35fc2cc",
        "from_address": "0xa09ba917934c2415fbeb785ed5dc8eaf4f694973"
    },
    api_key, api_secret, host
)
{
  "success": true,
  "result": {
    "coin": "ETH",
    "coin_decimal": 18,
    "fee_coin": "ETH",
    "fee_decimal": 18,
    "max_send_value": 841165119243622,
    "fee_per_byte": 0,
    "fee_amount": 0,
    "gas_price": 43638776316,
    "gas_limit": 21000
  }
}

Request

coin
String
required
coin code
fee_rate
Float
required
gas price (unit: wei) for account model or transaction fees per byte for UTXO model
to_address
String
required
to address
from_address
String
Account Model: this parameter is requiredUTXO Model: this parameter is optional, the input will be selected based off the current wallet if the parameter is empty or not passed

Response

success
bool
request successful or failed
result
object
request(
    "GET",
    "/v1/custody/mpc/get_max_send_amount/",
    {
        "coin": "ETH",
        "fee_rate": 43638776316,
        "to_address": "0x8a73abedb3053b17204b887af6231a8ac35fc2cc",
        "from_address": "0xa09ba917934c2415fbeb785ed5dc8eaf4f694973"
    },
    api_key, api_secret, host
)
{
  "success": true,
  "result": {
    "coin": "ETH",
    "coin_decimal": 18,
    "fee_coin": "ETH",
    "fee_decimal": 18,
    "max_send_value": 841165119243622,
    "fee_per_byte": 0,
    "fee_amount": 0,
    "gas_price": 43638776316,
    "gas_limit": 21000
  }
}
Feel free to share your feedback to improve our documentation!