Skip to content

Feature Request: Estimate fee method for platform transactions #2807

Closed

Description

@pshenmic

Issue

There are no fee estimation RPC methods for Platform transactions available in the DAPI, and it is very difficult to calculate the fee yourself because it depends on many factors and same transaction may cost different amount of credits. There are certain cases when you need to know a specific amount of gas (credits) the transaction will take to proceed, for example when you want to withdraw the whole balance with IdentityCreditWithdrawal transaction.

There is an estimation fee method for Dash Core transactions in DAPI, and I think we need something similar for Dash Platform, because sometimes you have to show it before you sign your tx, for example in wallets.

Possible Solution

Add an RPC method in the DAPI for estimating transaction fee that takes unsigned platform transaction as an parameter

Or implement fee size calculation method in rs-dpp

Additional Context

This is very useful and even necessary for third-party integrations, especially in backend systems in exchanges and wallets, where it is necessary to show an exact fee that user will be charged with before broadcasting transaction in the network

Activity

  1. added
    enhancement
    on Oct 16, 2025
  2. added
    Interesting
    on Dec 5, 2025
  3. QuantumExplorer commented on Dec 5, 2025

    @QuantumExplorer
    Member

    This would not need to be done on the server. This can be done entirely without need to access the state. Something to think about.

  4. lklimek commented on Jan 14, 2026

    @lklimek
    Contributor

    Implemented in rs-dpp in #2899, please check and reopen if needed.

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

    Interestingenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions