-
Notifications
You must be signed in to change notification settings - Fork 147
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
🧮 Calculating claimable balance ID #836
Comments
There are examples in three languages? Ctrl-f "method 1" |
@Shaptic I am not entirely sure what you mean, as each instance of Footnotes
|
@JFWooten4 err yeah, you're right (I had the Go tab open by default). There are still the other methods of course, but it'd be good to document computation of the claimable balance 👍 and add a JS helper for it if that's a feature request. |
Oh lol there already is one in JS: https://stellar.github.io/js-stellar-sdk/Transaction.html#getClaimableBalanceId, it's just not updated in the docs. |
The claimable balance ID is the sha256 hash of the claimable balance operation body encoded as a claimable balance ID. Namely,
|
Thank you for the help, George. I drafted an update in P1516 and will get the docs updated tomorrow. Mocking up the code examples now, all per your insights! |
stellar-docs/docs/data/hubble/data-catalog/data-dictionary/enriched-history-operations.mdx
Line 14 in 7143515
Claimable balance IDs use a "history operation id that created the balance" to get the final CB_ID. You are supposed to be able to do this outside of the network:
stellar-docs/docs/learn/encyclopedia/transactions-specialized/claimable-balances.mdx
Line 265 in 7143515
However, the documentation isn't clear on how to precisely find your CB_ID, which adds operational complexity.
The text was updated successfully, but these errors were encountered: