+
Skip to content

Dynamic tx fee #265

@greenhat

Description

@greenhat

Motivation

In times of mempool congestion, txs can get on-chain with a significant delay.

Implementation details

Use transactions/getFee node's endpoint to calculate the fee for a tx passing tx's size and time (1 minute) to get on-chain as parameters.
Add max_tx_fee to the oracle config and use it as an upper limit for the suggested tx fee from the node. Set it to double the oracle config's base_fee initially.
I suppose that 'base_fee' can be dropped and tx fee from node used everywhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载