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(cli): get balance for an account #109

Merged
merged 6 commits into from
Jan 6, 2024

Conversation

czar0
Copy link
Contributor

@czar0 czar0 commented Dec 10, 2023

Description

Initial implementation of the eth_getBalance JSON-RPC call for ethkit CLI.

Examples

  • Retrieve the account balance (in wei) for address 0x213a286A1AF3Ac010d4F2D66A52DeAf762dF7742 on Sepolia network via https://nodes.sequence.app/sepolia RPC endpoint at latest block
ethkit balance 0x213a286A1AF3Ac010d4F2D66A52DeAf762dF7742 --rpc-url https://nodes.sequence.app/sepolia
  • Retrieve the account balance (in ether) for address 0x213a286A1AF3Ac010d4F2D66A52DeAf762dF7742 on Sepolia network via https://nodes.sequence.app/sepolia RPC endpoint at latest block
ethkit balance 0x213a286A1AF3Ac010d4F2D66A52DeAf762dF7742 --rpc-url https://nodes.sequence.app/sepolia --ether
  • Retrieve the latest account balance (in ether) for address 0x213a286A1AF3Ac010d4F2D66A52DeAf762dF7742 on Sepolia network via https://nodes.sequence.app/sepolia RPC endpoint at block 4861405
ethkit balance 0x213a286A1AF3Ac010d4F2D66A52DeAf762dF7742 --rpc-url https://nodes.sequence.app/sepolia --ether --block 4861405

@pkieltyka pkieltyka merged commit 94396f7 into 0xsequence:master Jan 6, 2024
6 checks passed
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