Skip to content

Add CLI command to query transfer fees #243

Description

@tom9000

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions