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/{deployer_address}/{contract_name}

Request

  • Base URL
    http://localhost:20443
  • URL
    http://localhost:20443/v2/contracts/source/{deployer_address}/{contract_name}
  • Auth
    none required

Parameters

./components/parameters/deployer-address.yaml (unresolved $ref)
./components/parameters/contract-name.yaml (unresolved $ref)
./components/parameters/proof.yaml (unresolved $ref)
./components/parameters/tip.yaml (unresolved $ref)

Response

Success

ContractSource required(unresolved $ref)

Changes

No recorded changes to this operation across all 55 revisions of this API.