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: rex balance --token <address> #20

Merged
merged 1 commit into from
Mar 19, 2025
Merged

Conversation

LeanSerra
Copy link
Contributor

Description

This PR implements the --token flag for the rex balance command. To get the token balance for an address we call the contract function balanceOf(address) the calldata is created by the selector 0x70a08231 16 bytes of padding, then the address of the account we are querying.

Syntax

rex balance <ACCOUNT> --token <TOKEN_ADDRESS>

@LeanSerra LeanSerra added the enhancement New feature or request label Mar 19, 2025
@LeanSerra LeanSerra self-assigned this Mar 19, 2025
@ilitteri ilitteri merged commit 9019ae8 into main Mar 19, 2025
@ilitteri ilitteri deleted the feat/rex_balance_token_flag branch March 19, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants