curl --request POST \
--url https://nd-954-882-037.p2pify.com/66f812de2a6724a75a51f60dd6f2a154 \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "debug_getAccessibleState",
"params": [
"0x1C9C380",
"latest"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": 123
}curl --request POST \
--url https://nd-954-882-037.p2pify.com/66f812de2a6724a75a51f60dd6f2a154 \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "debug_getAccessibleState",
"params": [
"0x1C9C380",
"latest"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": 123
}Arbitrum API method that finds the first block number in a given range where the state is accessible on disk. This is useful for determining which historical states are available for querying on the node, as nodes may prune older state data.Documentation Index
Fetch the complete documentation index at: https://chainstack-mintlify-flesh-empty-pages.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
arbtrace_* methods instead.from — the start of the block range to search, as a hex-encoded block number or block tag.to — the end of the block range to search, as a hex-encoded block number or block tag.result — the block number (as a decimal integer) of the first block in the range where the state is accessible. Returns an error if no accessible state is found in the range.debug_getAccessibleState code examplesconst ethers = require('ethers');
const NODE_URL = "YOUR_CHAINSTACK_ENDPOINT";
const provider = new ethers.JsonRpcProvider(NODE_URL);
const debugGetAccessibleState = async (from, to) => {
const result = await provider.send("debug_getAccessibleState", [from, to]);
console.log(result);
};
debugGetAccessibleState("0x1C9C380", "latest");
debug_getAccessibleState method is useful for determining the historical state availability of a node. Before calling state-dependent methods like debug_accountRange or debug_dumpBlock on a specific block, developers can use this method to verify that the node still has the state data for that block. This is particularly relevant for nodes that use state pruning, where older state data may have been removed.Was this page helpful?