-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: add getBalance to BTC package #701
feat: add getBalance to BTC package #701
Conversation
size-limit report 📦
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add an entry in CHANGELOG.md before merging please?
WDYT?
|
Sounds good |
# Motivation As discussed in #701, let's rename `min_confirmations` parameter of `getUtxos` in ckBTC library to `minConfirmations`. # Changes - Parameter and mapping updated accordingly. --------- Signed-off-by: David Dal Busco <david.dalbusco@dfinity.org>
# Motivation As discussed in #701, let's rename `min_confirmations` parameter of `getBalance` in ckBTC library to `minConfirmations`. # Changes - Parameter and mapping updated accordingly.
Motivation
Expose function getBalance, used to retrieve the balance of a Bitcoin address given a network and, optionally, a minimum number of confirmations.
Changes
bigint
number identified by the typesatoshi
).get_balance
from the canister into new functiongetBalance
of objectBitcoinCanister
.Tests
Create set of test mirroring the ones used for
getUtxos
function.