Last updated 6 months ago
Returns a list of contract entities on the network.
This method will use 15 .
15
Returns a list of all contract entity items on the network.
OK
const response = await fetch('https://mainnet.hedera.validationcloud.io/v1/YOUR_API_KEY/api/v1/contracts', { method: 'GET', headers: {}, }); const data = await response.json();
{ "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": 0, "memo": "contract memo", "obtainer_id": "0.1.2", "permanent_removal": false, "proxy_account_id": "0.1.2", "timestamp": { "from": {}, "to": {} } } ], "links": { "next": "/api/v1/transactions?timestamp=lt:1657598275.517984411" } }