/v2/contracts/source/{contract_address}/{contract_name} REST API Endpoint
Path Parameters
contract_address
string
REQUIRED
Stacks address.
contract_name
string
REQUIRED
Contract name.
Query Parameters
proof
integer
Returns object without the proof field if set to 0.
tip
string
The Stacks chain tip to query from.
Returns
object
GET request to get contract source
source
string
The source code of the requested contract
publish_height
integer
The block height at which the contract was published or deployed
proof
string
The proof of the contract's source code integrity or authenticity
Request
1curl -X 'GET' \2'https://docs-demo.stacks-mainnet.quiknode.pro/v2/contracts/source/SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9/.swap-helper-v1-01' \3-H 'Content-Type: application/json'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free