API Reference

Description

Retrieves a list of run history for a chain.

GET /v1/execute/environment/{environment_id}/chain/{chain_id}/history

Parameters

ParameterInTypeRequiredDescription
environment_idpathstringtrueThe ID of the Environment.
chain_idpathstringtrueThe ID of the Chain.
limitquerystringfalseLimit number of chainRuns returned (max 50).
cursorquerystringfalseCursor value returned from the API, indicating page information.
start_datequerystringfalseStart Date (Unix timestamp).
end_datequerystringfalseEnd Date (Unix timestamp).

Code Samples

curl -X GET https://h.app.wdesk.com/s/wdata/oc/api/v1/execute/environment/{environment_id}/chain/{chain_id}/history  \ 
-H 'Accept: application/json' \ 
-H 'Authorization: Bearer {access-token}'
http GET https://h.app.wdesk.com/s/wdata/oc/api/v1/execute/environment/{environment_id}/chain/{chain_id}/history  \ 
Accept:application/json \ 
Authorization:"Bearer {access-token}"
wget --method=GET "https://h.app.wdesk.com/s/wdata/oc/api/v1/execute/environment/{environment_id}/chain/{chain_id}/history" \
 --output-document -  \ 
 --header 'Accept: application/json' \ 
 --header 'Authorization: Bearer {access-token}'
import requests
headers = {
  'Accept': 'application/json',
  'Authorization': 'Bearer {access-token}'
}

r = requests.get('https://h.app.wdesk.com/s/wdata/oc/api/v1/execute/environment/{environment_id}/chain/{chain_id}/history', headers = headers)

print(r.json())

Returns

200 - OK

Returns a ChainRunPageResponse containing the ChainRunPage object for chain history.

Example Responses


{
  "data": {
    "cursor": "string",
    "chainExecutors": [
      {
        "id": "1",
        "chainId": "37",
        "envId": "1154",
        "userId": "5",
        "userName": "dev23",
        "startAt": "2019-02-08 06:25:00",
        "endAt": "2019-02-12 06:25:00",
        "pausedAt": "2019-02-12 06:25:00",
        "resumedAt": "2019-02-12 06:25:00",
        "state": "sleeping",
        "launchType": "manual",
        "resultText": ""
      }
    ]
  }
}