Skip to main content
Glama

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
NameRequiredDescriptionDefault
addressYesThe address to get storage from
blockTagNoOptional block tag (latest, pending, etc.)
positionYesThe storage position

Implementation Reference

  • 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}`); } };
  • 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,

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dcSpark/mcp-cryptowallet-evm'

If you have feedback or need assistance with the MCP directory API, please join our Discord server