-
Notifications
You must be signed in to change notification settings - Fork 30
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
Is there a quick rpc api to get the balance directly? #363
Comments
There isn't any API to get the balance directly. But you can use this method to request cells belong to specific lockhash and calculate the balance by summing their capacity. |
After loadcells, I still need to |
Yes, the cell returned by this method has a field named dataHash whose value is the hash of output_data and if its value equals to EMPTY_DATA_HASH, it's safe to be spent out. |
|
Pass ‘BigInt(32341)’ instead. |
I think it is a bug in sdk, see code.
|
In the definition of |
I tried to use |
Thanks. |
The loadCells function works fine. |
I looked at #227 and looked at ruby's getbalance source code. I found it difficult to get the balance. Is there an easier way?
The text was updated successfully, but these errors were encountered: