Skip to content

Extend getBalance request by adding support for getCommittedAmount parameter #806

Description

@map1336

Is your feature request related to a problem? Please describe.

Currently, the getAccount request has support for showing commitment balance.

image
Response example:

{
  "balanceNQT": "16143242542062",
  "unconfirmedBalanceNQT": "41616342062",
  "forgedBalanceNQT": "0",
  "guaranteedBalanceNQT": "16143242542062",
  "committedBalanceNQT": "16101626200000"
  // Remaining properties...
}

But the getBalance request does NOT have support for showing commitment balance.

image
Response example:

{
  "balanceNQT": "16143242542062",
  "unconfirmedBalanceNQT": "41616342062",
  "forgedBalanceNQT": "0",
  "guaranteedBalanceNQT": "16143242542062",
  "requestProcessingTime": 1
}

Describe the solution you'd like
The getBalance request must have support for that parameter also!
image

Describe alternatives you've considered
On the mobile wallet, i will be making the full request instead

Additional context
This request is lightweight compared to getAccount it allows any client to make more efficient queries.

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

    APIIssues related to the Node's APIenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions