ruby-stellar-sdk
ruby-stellar-sdk copied to clipboard
Claimable Balance and Asset Summary Changes
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.