Get Contract by ID
Return the contract information given an id.
This method will use 20
Compute Units.
Return the contract information given an id
Path parameters
contractIdOrAddressstringRequiredPattern:
The ID or hex encoded EVM address (with or without 0x prefix) associated with this contract.
^(\d{1,10}\.){0,2}(\d{1,10}|(0x)?[A-Fa-f0-9]{40})$
Query parameters
timestampstring[]OptionalExample:
The consensus timestamp in seconds.nanoseconds format with an optional comparison operator
{"summary":"--","value":""}
Responses
200
OK
application/json
Responseall of
400
Invalid parameter
application/json
404
Not Found
application/json
get
GET /v1/YOUR_API_KEY/api/v1/contracts/{contractIdOrAddress} HTTP/1.1
Host: mainnet.hedera.validationcloud.io
Accept: */*
{
"admin_key": {
"_type": "ProtobufEncoded",
"key": 10101
},
"auto_renew_account": "0.1.2",
"auto_renew_period": 7776000,
"contract_id": "0.1.2",
"created_timestamp": "1586567700.453054000",
"deleted": false,
"evm_address": "0000000000000000000000000000000000001f41",
"expiration_timestamp": "1586567700.453054000",
"file_id": "0.1.2",
"max_automatic_token_associations": 1,
"memo": "contract memo",
"obtainer_id": "0.1.2",
"permanent_removal": true,
"proxy_account_id": "0.1.2",
"timestamp": {
"from": null,
"to": null
},
"bytecode": "0x01021a1fdc9b",
"runtime_bytecode": "0x0302fa1ad39c"
}
Last updated
Was this helpful?