Skip to content

Feature request: address.balance() helper function #115

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

Closed
peterVG opened this issue Oct 29, 2022 · 2 comments
Closed

Feature request: address.balance() helper function #115

peterVG opened this issue Oct 29, 2022 · 2 comments
Labels
enhancement New feature or request Feature request

Comments

@peterVG
Copy link
Contributor

peterVG commented Oct 29, 2022

Provide a function that returns the current balance of (t)ADA at a valid address.

@cffls cffls added enhancement New feature or request Feature request labels Oct 29, 2022
@cffls
Copy link
Collaborator

cffls commented Oct 29, 2022

Requested feature is included in this PR: #89

@peterVG
Copy link
Contributor Author

peterVG commented Oct 29, 2022

Ah nice! Just spotted them:

w.utxos  # list of wallets UTXOs
w.ada  # view total amount of ADA
w.lovelace  # view total amount of lovelace
w.tokens  # get a list of all tokens in the wallet

https://github.com/Python-Cardano/pycardano/pull/89/files#diff-7960e6108869da9949251abe0ca4c49ad6fea21656bee5a3720f32955dcaf7a1

@peterVG peterVG closed this as completed Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Feature request
Projects
None yet
Development

No branches or pull requests

2 participants