provider_get_storage_at
Query Ethereum or EVM-compatible blockchain storage for a specific address and position. Retrieve stored data using optional block tags for precise blockchain state analysis.
Instructions
Get the storage at a position for an address
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The address to get storage from | |
| blockTag | No | Optional block tag (latest, pending, etc.) | |
| position | Yes | The storage position |
Implementation Reference
- src/handlers/wallet.ts:576-598 (handler)The handler function that executes the logic for 'provider_get_storage_at' by retrieving storage value at a specific position for an address using the ethers provider.export const getStorageAtHandler = async (input: any): Promise<ToolResultSchema> => { try { if (!input.address) { return createErrorResponse("Address is required"); } if (!input.position) { return createErrorResponse("Position is required"); } const provider = getProvider(); const storage = await provider.getStorageAt(input.address, input.position, input.blockTag); return createSuccessResponse( `Storage retrieved successfully Address: ${input.address} Position: ${input.position} Storage: ${storage} `); } catch (error) { return createErrorResponse(`Failed to get storage: ${(error as Error).message}`); } };
- src/tools.ts:437-449 (schema)The input schema and description definition for the 'provider_get_storage_at' tool.{ name: "provider_get_storage_at", description: "Get the storage at a position for an address", inputSchema: { type: "object", properties: { address: { type: "string", description: "The address to get storage from" }, position: { type: "string", description: "The storage position" }, blockTag: { type: "string", description: "Optional block tag (latest, pending, etc.)" } }, required: ["address", "position"] } },
- src/tools.ts:594-594 (registration)The registration mapping the tool name 'provider_get_storage_at' to its handler function getStorageAtHandler."provider_get_storage_at": getStorageAtHandler,