eth_getStorageAt

Returns the value from a storage position at a given address.

https://api.1inch.com/web3/130
Supported on:
Unichain

Parameters

Address (required)

Address
* string

Storage slot (required)

Storage slot
* string

Block (required)

Block
* any
anyOf[0]
string
anyOf[1]
string (Enum)
earliest
finalized
safe
latest
pending
anyOf[2]
string

Request

Request
object
jsonrpc
* string (Enum)
2.0
method
* string
params
array
items
any
oneOf[0]
string
oneOf[1]
string
oneOf[2]
any
anyOf[0]
string
anyOf[1]
string (Enum)
earliest
finalized
safe
latest
pending
anyOf[2]
string
id
* number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const response = await fetch('https://api.1inch.com/web3/130', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${API_KEY}`,
  },
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'eth_getStorageAt',
    params: ['string', 'string', 'string'],
    id: 1,
  }),
});

const data = await response.json();
console.log(data);

Response

Value

Value
string
JSON
1
2
"0x0000000000000000000000000000000000000000000000000000000000000000"

Did you find what you need?