Skip to main content

GetStorageAt

Return the value of the provided position at the provided address, at the provided block in Bytes32 format. For inspecting solidity code.

func GetStorageAt(address, position, blockTag string) (value string, err error)
func main() {
...
alchemy := gas.NewAlchemy(setting)
res, _ := alchemy.Core.GetStorageAt(
"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73",
"0x0",
"latest",
)
}