Get contract source
Retrieves the Clarity source code of a given contract, along with the block height it was published in, and the MARF proof for the data.
GET
/v2/contracts/source/{contract_address}/{contract_name}
Get contract source
Returns the Clarity source code of a given contract, along with the block height it was published in, and the MARF proof for the data
Status code | Description |
---|---|
| Success |
Terminal
$curl -X GET "http://localhost:20443/v2/contracts/source/%7Bcontract_address%7D/%7Bcontract_name%7D"
GET request to get contract source
{"source": "string","publish_height": 0,"proof": "string"}