Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 811 Bytes

cast-storage.md

File metadata and controls

42 lines (24 loc) · 811 Bytes

cast storage

NAME

cast-storage - Get the raw value of a contract's storage slot.

SYNOPSIS

cast storage [options] address slot

DESCRIPTION

Get the raw value of a contract's storage slot.

The address (address) can be an ENS name or an address.

OPTIONS

Query Options

-B block
--block block
    The block height you want to query at.

    Can be a block number, or any of the tags: earliest, latest or pending.

RPC Options

{{#include ../common/rpc-url-option.md}}

{{#include common-options.md}}

EXAMPLES

  1. Get the value of slot 0 on the WETH contract.
    cast storage 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 0

SEE ALSO

cast, cast proof