Hedera · Example Payload

Getcontracts

Returns a list of all contract entity items on the network.

contracts

Getcontracts is an example object payload from Hedera, with 8 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummarydescriptiontagsparametersresponses

Example Payload

Raw ↑
{
  "operationId": "getContracts",
  "method": "GET",
  "path": "/api/v1/contracts",
  "summary": "List contract entities on network",
  "description": "Returns a list of all contract entity items on the network.",
  "tags": [
    "contracts"
  ],
  "parameters": [
    {
      "name": "contract.id",
      "in": "query",
      "description": "The ID of the smart contract",
      "required": false
    },
    {
      "name": "limit",
      "in": "query",
      "description": "The maximum number of items to return",
      "required": false
    },
    {
      "name": "order",
      "in": "query",
      "description": "The order in which items are listed",
      "required": false
    }
  ],
  "responses": {
    "200": "OK",
    "400": "Invalid parameter"
  }
}