/v1/scan
Read sequential storage slots, decoded
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/storageslot-api/v1/scan" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/storageslot-api/v1/scan", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/storageslot-api/v1/scan");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/storageslot-api/v1/scan",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"from": 0,
"note": "Reads sequential storage slots from..from+count and decodes each. Good for peeking at a contract's state layout (slot 0, 1, 2 ...).",
"chain": "ethereum",
"count": 8,
"slots": [
{
"slot": 0,
"value": {
"raw": "0x000000000000000000000000fcb19e6a322b27c06842a71e8c725399f049ae3a",
"as_bool": null,
"as_uint": "1442626706025541066953462928744535818996053290554",
"is_zero": false,
"as_address": "0xfcb19e6a322b27c06842a71e8c725399f049ae3a"
},
"slot_hex": "0x0"
},
{
"slot": 1,
"value": {
"raw": "0x0000000000000000000000004914f61d25e5c567143774b76edbf4d5109a8566",
"as_bool": null,
"as_uint": "417223780715013227085836490829281552150151464294",
"is_zero": false,
"as_address": "0x4914f61d25e5c567143774b76edbf4d5109a8566"
},
"slot_hex": "0x1"
},
{
"slot": 2,
"value": {
"raw": "0x0000000000000000000000000a06be16275b95a7d2567fbdae118b36c7da78f9",
"as_bool": null,
"as_uint": "57240271052284111913658603083735073530102577401",
"is_zero": false,
"as_address": "0x0a06be16275b95a7d2567fbdae118b36c7da78f9"
},
"slot_hex": "0x2"
},
{
"slot": 3,
"value": {
"raw": "0x0000000000000000000000000000000000000000000000000000000000000000",
"as_bool": false,
"as_uint": "0",
"is_zero": true,
"as_address": "0x0000000000000000000000000000000000000000"
},
"slot_hex": "0x3"
},
{
"slot": 4,
"value": {
"raw": "0x55534420436f696e000000000000000000000000000000000000000000000010",
"as_bool": null,
"as_uint": "38593710624525879730480819364414810941157096808048686924515883081335702552592",
"is_zero": false,
"as_address": null
},
"slot_hex": "0x4"
},
{
"slot": 5,
"value": {
"raw": "0x5553444300000000000000000000000000000000000000000000000000000008",
"as_bool": null,
"as_uint": "38593711561022257368518379114816214809265752568552928798754351540423798816776",
"is_zero": false,
"as_address": null
},
"slot_hex": "0x5"
…