Smart Contracts

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

get/v2/contracts/source/{contract_address}/{contract_name}

Response

Success

GetContractSourceSchemaJson required— unresolved $ref

Changes

Changed in 2 of the 21 revisions of this API.2

    • added the new optional query request parameter use_latest_tip to all path's operations

      new-optional-request-default-parameter-to-existing-path

    • added the new optional query request parameter use_latest_tip to all path's operations

      new-optional-request-default-parameter-to-existing-path