const endpoint = "https://meter.nownodes.io/debug/storage-range";
const apiKey = "YOUR_API_KEY";
async function nownodesRequest(payload) {
const response = await fetch(endpoint, {
method: "POST",
headers: {
"Content-Type": "application/json",
"api-key": apiKey,
},
body: JSON.stringify(payload),
});
return response.json();
}
const result = await nownodesRequest({
"address": "0xa4627036e2095eb71c2341054daa63577c062498",
"keyStart": "0x0000000000000000000000000000000000000000000000000000000000000000",
"maxResult": 10,
"target": "0x000edefb448685f9c72fc2b946980ef51d8d208bbaa4d3fdcf0c57d4847aca2e/0/0"
});
console.log(result);