Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Claimable Balance and Asset Summary Changes #319

Closed
3 tasks done
paulbellamy opened this issue Jun 2, 2021 · 2 comments · Fixed by #320
Closed
3 tasks done

Claimable Balance and Asset Summary Changes #319

paulbellamy opened this issue Jun 2, 2021 · 2 comments · Fixed by #320
Assignees

Comments

@paulbellamy
Copy link

paulbellamy commented Jun 2, 2021

The following changes to claimable balances, and assets endpoints were recently released in Horizon 2.2.0:

  • The Asset object now includes the following new fields, with examples:
      ...
       "accounts": {
          "authorized": 23,
          "authorized_to_maintain_liabilities": 11,
          "unauthorized": 6
        },
        "num_claimable_balances": 3,
        "balances": {
          "authorized": "997268.0000000",
          "authorized_to_maintain_liabilities": "498634.0000000",
          "unauthorized": "249317.0000000"
        },
        "claimable_balances_amount": "124658.5000000",
        ...
  • There is a new endpoint at /claimable_balances/{id}/operations{?cursor,limit,order}, to fetch operations for a given claimable balance.
  • There is a new endpoint at /claimable_balances/{id}/transactions{?cursor,limit,order}, to fetch transactions for a given claimable balance.

Each SDK must update to support the first item in the list, so that the amount, and num_accounts fields can be deprecated in Horizon v3.
Each SDK should update to support querying operations and transactions for a given Claimable Balance ID.

The SDF's JavaScript SDK released v8.2.0 recently including these changes.

If your SDK has implemented and released these changes, reference the release in a closing comment.

@Kirbyrawr
Copy link
Collaborator

Working on it.

@Kirbyrawr
Copy link
Collaborator

#320

@Kirbyrawr Kirbyrawr linked a pull request Jun 5, 2021 that will close this issue
9 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants