Get contract info

Retrieves details for a specific smart contract.

GET

/extended/v1/contract/{contract_id}

Retrieves details of a contract with a given contract_id.

Status codeDescription
200Contract found
404Cannot find contract of given ID
Terminal
curl -X GET "https://api.mainnet.hiro.so/extended/v1/contract/%7Bcontract_id%7D"

GET request that returns smart contract details

Example response
{
  "tx_id": "string",
  "canonical": true,
  "contract_id": "string",
  "block_height": 0,
  "source_code": "string",
  "abi": "string"
}