HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

eth_getStorageAt

Returns the value from a storage position at a given address. It can be used to get the value of a variable in a contract.

Parameters

IndexData TypeDescription
1DATA, 20 Bytesaddress
2QUANTITYinteger of the position in the storage
3QUANTITY|TAGcurrently only support "latest"

Returns

DATA - the value at this storage position.

Example

curl -X POST '47.95.206.44:50545/jsonrpc' --data '{
	"jsonrpc": "2.0",
	"method": "eth_getStorageAt",
	"params": ["0xE94EAD5F4CA072A25B2E5500934709F1AEE3C64B", "0x29313b34b1b4beab0d3bad2b8824e9e6317c8625dd4d9e9e0f8f61d7b69d1f26", "latest"],
	"id": 1
}'

Result

{"jsonrpc":"2.0","id":1,"result":"0x0000000000000000000000000000000000000000000000000000000000000000"}