get_source
Retrieve the source code of a smart contract by specifying its address and blockchain network. Integrates with the Bankless Onchain MCP Server for blockchain data access.
Instructions
Gets the source code for a given contract on a specific network
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"network": "<network>",
"contract": "<contract>"
},
"name": "get_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract | Yes | The contract address | |
| network | Yes | The blockchain network (e.g., "ethereum", "base") |