{
"operationId": "getContract",
"method": "GET",
"path": "/api/v1/contracts/{contractIdOrAddress}",
"summary": "Get contract by id",
"description": "Return the contract information given an id",
"tags": [
"contracts"
],
"parameters": [
{
"name": "contractIdOrAddress",
"in": "path",
"description": "Contract or account identifier in format shard.realm.num, realm.num, num or a 20-byte EVM address (with or without 0x prefix).",
"required": true
},
{
"name": "timestamp",
"in": "query",
"description": "The consensus timestamp as a Unix timestamp in seconds.nanoseconds format with an optional comparison operator. See [unixtimestamp.com](https://www.unixtimestamp.com/) for a simple way to convert a date to the 'seconds' part of the Unix time.",
"required": false
}
],
"responses": {
"200": "OK",
"400": "Invalid parameter",
"404": "Not Found"
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.