Skip to content
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: addd chain.get_balance() method #2520

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

antazoey
Copy link
Member

What I did

I wanted to be able to get the balance of the my ENS name more easily so that is the intent of this.

chain.get_balance("myname.ens")

How I did it

How to verify it

Checklist

  • All changes are completed
  • Change is covered in tests
  • Documentation is complete

Returns:
int: The account balance.
"""
if (isinstance(address, str) and not address.startswith("0x")) or not isinstance(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can make this simpler if this: #2521 merges

@antazoey antazoey merged commit 37173cc into ApeWorX:main Feb 19, 2025
18 checks passed
@antazoey antazoey deleted the feat/get-balance branch February 19, 2025 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants