get storage
Get storage value for a slot at a contract. One of --felt-key and --key is required.
--felt-key, -f <FELT>
Storage key in hex (prefixed with 0x) or decimal representation.
--key, -k <KEY>
Storage key as a string.
--contract-address, -d <CONTRACT_ADDRESS>
Required.
The address of the contract. It can be either:
- Felt in hex (prefixed with
0x) or decimal representation. @aliasdefined in[sncast.<profile>.aliases]insnfoundry.toml. See aliases.
--url, -u <RPC_URL>
Optional.
Starknet RPC node url address.
Overrides url from snfoundry.toml.
--network <NETWORK>
Optional.
Use predefined network with public provider
Possible values: mainnet, sepolia, devnet.
Overrides network from snfoundry.toml.
--block-id, -b <BLOCK_ID>
Optional.
Block identifier from which storage value should be fetched.
Possible values: pre_confirmed, latest, block hash (0x prefixed string), and block number (u64).
pre_confirmed is used as a default value.
--include-last-block, -l
Optional.
Fetch the number of the most recent block that modified storage slot under key.