Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Claimable Balance and Asset Summary Changes #15

Open
3 tasks
paulbellamy opened this issue Jun 2, 2021 · 0 comments
Open
3 tasks

Claimable Balance and Asset Summary Changes #15

paulbellamy opened this issue Jun 2, 2021 · 0 comments

Comments

@paulbellamy
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant