Skip to main content
Glama

Osmosis MCP Server

get-contracts-by-code

Retrieve contracts instantiated from a specific code ID on the Osmosis blockchain. Specify the code ID and optional limit to fetch up to 200 contracts for targeted queries.

Instructions

Returns all contracts instantiated from a specific code ID

Input Schema

NameRequiredDescriptionDefault
codeIdYesThe code ID to query contracts for
limitNoMaximum number of contracts to return (default: 50)

Input Schema (JSON Schema)

{ "properties": { "codeId": { "description": "The code ID to query contracts for", "type": "number" }, "limit": { "description": "Maximum number of contracts to return (default: 50)", "maximum": 200, "minimum": 1, "type": "number" } }, "required": [ "codeId" ], "type": "object" }

Other Tools from Osmosis MCP Server

Related Tools

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/MyronKoch-dev/osmosis-mcp-server'

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