Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Important: If you're upgrading snforge to version 0.48.0 or later, please read the 0.48.0 Migration Guide.

Account Balance

sncast allows you to check the balance of your account using the sncast balance command.

Basic Example

$ sncast --account my_account balance --network devnet
Output:
Balance: [..] strk

By default, it shows the balance in STRK tokens. Other possible tokens can be specified using the --token flag, read more here.

Checking Balance of a Custom Token

You can check the balance of a custom token by providing the --token-address flag followed by the token's contract address.

📝 Note

Token address must be a valid ERC-20 token contract.

$ sncast --account user1 balance \
    --token-address <YOUR_TOKEN_ADDRESS> \
    --network sepolia
Output: ```shell Balance: [..] ```

Read more about sncast balance command here.