Get Contracts
Returns a list of contract entities on the network.
This method will use 20
Compute Units.
Returns a list of all contract entity items on the network.
Query parameters
contract.idstringOptionalExample:
The ID of the smart contract
{"summary":"--","value":""}
Pattern: ^((gte?|lte?|eq|ne)\:)?(\d{1,10}\.\d{1,10}\.)?\d{1,10}|(\d{1,10}\.){0,2}[A-Fa-f0-9]{40}$
limitinteger · int32 · min: 1 · max: 100OptionalDefault:
The maximum number of items to return
25
Example: 2
orderundefined · enumOptionalDefault:
The order in which items are listed
desc
Example: asc
Possible values: Responses
200
OK
application/json
400
Invalid parameter
application/json
get
GET /v1/YOUR_API_KEY/api/v1/contracts HTTP/1.1
Host: mainnet.hedera.validationcloud.io
Accept: */*
{
"contracts": [
{
"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
}
}
],
"links": {
"next": "/api/v1/transactions?timestamp=lt:1657598275.517984411"
}
}
Last updated
Was this helpful?