Skip to content

Estimate the fee from transaction size instead of a flat default #2

Description

@oliv3rdrt

The fee is a flat 0.5 ML default sized for a ~200 byte transfer, as the comment notes, because the REST indexer exposes no fee-rate endpoint. A transfer that selects several inputs is larger than that, so the flat fee overpays on small txs and can drift toward the min-relay floor on large ones. After encoding the tx, derive the fee from its byte size at the ~0.001 ML/byte min relay rate, keeping the flat value as a floor.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions