get_contract
Retrieve the source code of a contract deployed on the Flow blockchain by providing its address and contract name. Works on mainnet or testnet.
Instructions
Get the source code of a contract deployed at a specific address
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": {
"address": "<address>",
"contractName": "<contractName>"
},
"name": "get_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Flow address where the contract is deployed | |
| network | No | Flow network to use | mainnet |
| contractName | Yes | Name of the contract to fetch |