Skip to main content

Get contract info

Retrieves details of a contract with a given contract_id

Path Parameters
contract_id string REQUIRED

Contract identifier formatted as <contract_address>.<contract_name>

Query Parameters
unanchored boolean

Include transaction data from unanchored (i.e. unconfirmed) microblocks

Responses
200

Contract found

Schema OPTIONAL
tx_id string
canonical boolean
contract_id string
block_height integer
source_code string
abi string
404

Cannot find contract of given ID

get_contract_by_id
GET /extended/v1/contract/:contract_id
contract_id — path
unanchored — query
https://api.mainnet.hiro.so
curl -L 'https://api.mainnet.hiro.so/extended/v1/contract/:contract_id' \
-H 'Accept: application/json'