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
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})$The consensus timestamp in seconds.nanoseconds format with an optional comparison operator
{"summary":"--","value":""}OK
Network entity ID in the format of shard.realm.num
0.1.2Pattern: ^\d{1,10}\.\d{1,10}\.\d{1,10}$7776000Network entity ID in the format of shard.realm.num
0.1.2Pattern: ^\d{1,10}\.\d{1,10}\.\d{1,10}$1586567700.453054000Pattern: ^\d{1,10}(\.\d{1,9})?$falseA network entity encoded as an EVM address in hex.
0000000000000000000000000000000000001f41Pattern: ^(0x)?[A-Fa-f0-9]{40}$1586567700.453054000Pattern: ^\d{1,10}(\.\d{1,9})?$Network entity ID in the format of shard.realm.num
0.1.2Pattern: ^\d{1,10}\.\d{1,10}\.\d{1,10}$contract memoNetwork entity ID in the format of shard.realm.num
0.1.2Pattern: ^\d{1,10}\.\d{1,10}\.\d{1,10}$Network entity ID in the format of shard.realm.num
0.1.2Pattern: ^\d{1,10}\.\d{1,10}\.\d{1,10}$The contract bytecode in hex during deployment
0x01021a1fdc9bThe contract bytecode in hex after deployment
0x0302fa1ad39cInvalid parameter
Not Found
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?