---
title: "Get contract source"
method: GET
path: "/v2/contracts/source/{contract_address}/{contract_name}"
tags: ["Smart Contracts"]
---

# Get contract source

`GET /v2/contracts/source/{contract_address}/{contract_name}`

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

## Response `200`

Success

- GetContractSourceSchemaJson — unresolved $ref

---

[API](https://skmtc.dev/hirosystems/apis/stacks-2-0-rpc-api.md) · [All operations](https://skmtc.dev/hirosystems/apis/stacks-2-0-rpc-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hirosystems/stacks-2-0-rpc-api/revisions/01ac1149ec88/schema)
