read_contract
Read and decode blockchain contract states by specifying contract addresses, methods, input parameters, and expected output types, ensuring accurate data retrieval for nested structs and tuples.
Instructions
Read contract state from a blockchain. important:
Copy
Input Schema
Name | Required | Description | Default |
---|---|---|---|
contract | Yes | The contract address | |
inputs | Yes | Input parameters for the method call | |
method | Yes | The contract method to call | |
network | Yes | The blockchain network (e.g., "ethereum", "base") | |
outputs | Yes | Expected output types for the method call. 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. Example: struct DataTypeA { DataTypeB b; //the liquidity index. Expressed in ray uint128 liquidityIndex; } struct DataTypeB { address token; } results in outputs for function with return type DataTypeA (tuple in abi): outputs: [{"type": "address"}, {"type": "uint128"}] |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from Bankless Onchain MCP Server
Related Tools
- @AbdelStark/bitcoin-mcp
- @armorwallet/armor-crypto-mcp
- @crazyrabbitLTC/mcp-ethers-server
- @crazyrabbitLTC/mcp-ethers-server
- @Bankless/onchain-mcp