Skip to main content
Estimates the cost necessary to execute a transaction. This method will use 40 Compute Units.

Parameters

object - Object - Required with the following fields:
  • from - DATA, 20 Bytes - The address the transaction is send from.
  • from - DATA, 20 Bytes - The address the transaction is send from.
  • from - DATA, 20 Bytes - The address the transaction is send from.

Returns

object containing:
  • decimals - The decimals cost values are presented with.
  • usdCost - Estimated USD cost presented using decimals. Divide by 10^decimals to obtain the base USD value.
  • btcCost - Estimated BTC cost presented using decimals. Divide by 10^decimals to obtain the base BTC value.