In the original issue #181 @olga24912 requested:
"Add a function that returns the minimum required fee for a successful transfer."
The fee getter is now implemented (fetch_transfer_fee()), but there is no CLI command to query fees without initiating a transfer.
Should we add a GetTransferFee subcommand that exposes fetch_transfer_fee()?
Something like:
bridge-cli get-transfer-fee --sender --recipient --token --amount
To return:
native_token_fee, transferred_token_fee, gas_fee (if UTXO destination).
Should we also expose get_fee_rate() to get the raw fee rate for UTXO chains separately? Or is the indexer estimate sufficient?
In the original issue #181 @olga24912 requested:
"Add a function that returns the minimum required fee for a successful transfer."
The fee getter is now implemented (fetch_transfer_fee()), but there is no CLI command to query fees without initiating a transfer.
Should we add a GetTransferFee subcommand that exposes fetch_transfer_fee()?
Something like:
bridge-cli get-transfer-fee --sender --recipient --token --amount
To return:
native_token_fee, transferred_token_fee, gas_fee (if UTXO destination).
Should we also expose get_fee_rate() to get the raw fee rate for UTXO chains separately? Or is the indexer estimate sufficient?