Skip to main content

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

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

Responses

200

Success

Schema

OPTIONAL

source

string

publish_height

integer

proof

string