Skip to main content
Glama

Bankless Onchain MCP Server

Official
by Bankless

build_event_topic

Generates event topic signatures for blockchain events by specifying the event name and argument types, enabling accurate data retrieval and analysis on supported networks.

Instructions

Builds an event topic signature based on event name and arguments

Input Schema

NameRequiredDescriptionDefault
argumentsYesEvent arguments types
nameYesEvent name (e.g., "Transfer(address,address,uint256)")
networkYesThe blockchain network (e.g., "ethereum", "base")

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "arguments": { "description": "Event arguments types", "items": { "additionalProperties": false, "properties": { "components": { "description": "optional components for tuple types", "items": { "$ref": "#/properties/arguments/items" }, "type": "array" }, "type": { "description": "Expected output types for the method call. \n In case of a tuple, don't use type tuple, but specify the inner types (found in the source) in order. For nested structs, include the substructs types.\n \n Example: \n struct DataTypeA {\n DataTypeB b;\n //the liquidity index. Expressed in ray\n uint128 liquidityIndex;\n }\n \n struct DataTypeB {\n address token;\n }\n \n results in outputs for function with return type DataTypeA (tuple in abi): outputs: [{\"type\": \"address\"}, {\"type\": \"uint128\"}]\n ", "type": "string" } }, "required": [ "type" ], "type": "object" }, "type": "array" }, "name": { "description": "Event name (e.g., \"Transfer(address,address,uint256)\")", "type": "string" }, "network": { "description": "The blockchain network (e.g., \"ethereum\", \"base\")", "type": "string" } }, "required": [ "network", "name", "arguments" ], "type": "object" }

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/Bankless/onchain-mcp'

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