Skip to main content

getStorageAt

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

Parameters

DATA, 20 Bytes

address of the storage.

QUANTITY

integer of the position in the storage.

QUANTITY | TAG

integer block number, or the string "latest", "earliest" or "pending", see the default block parameter

Returns

DATA

the value at this storage position.

Requests

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://testnode.jumbochain.org");
var content = new StringContent("{\n\t\"jsonrpc\":\"2.0\", \n\t\"method\": \"jumbo_getStorageAt\", \n\t\"params\": [\n\t\t\"0x295a70b2de5e3953354a6a8344e616ed314d7251\", \n\t\t\"0x0\",\n\t\t\"latest\"\n\t], \n\t\"id\": 1\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());