Skip to content

Tech: GetAccountBalances #785

@andy-shi88

Description

@andy-shi88

Description

Implement GetAccountBalances endpoint.

Currently we have the skeleton code for GetAccountBalances available, but not implemented yet.

The Endpoint need to be able to provide account balance based on the addresses the client send.

Request {
    Addresses: [
        A,
        B,
        C,
    ]
}
Response {
    AccountBalances: [
        {
            A: 10000,
            B: 200100,
            C: 50,
        }
    ],

}

Breakdown

  • Add Addresses field to GetAccountBalancesRequest
  • Remove all other filed in GetAccountBalancesRequest
  • At least 1 address is required in Addresses field.
  • Return all account balances requested by the client.

Metadata

Metadata

Assignees

Labels

APIAPI endpointBACKWARD_COMPATIBLErequire changes that are backward compatible, no reset requiredFEATURENew feature or requestLOW_PRIORITYcan be postponed

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions