getGeneratedDeployment

Description

Returns deployment job status, result, error message.

Method Parameters

  • params - Object:

Returns

  • result - Object:

    • deployment - string | null: Found deployment corresponding to provided request ID.

    • status - string: Status of the deployment generation job. One of: Queued InProgress, Completed, Failed.

    • error - string | null: Eventual error message.

    • updatedAt - string: ISO date string of last update of generation job (example: 2024-06-04T15:00:41.851Z).

Example

Request

curl --location --request POST 'https://testnet3.aleorpc.com' \
 --header 'Content-Type: application/json' \
 --data-raw '{
     "jsonrpc": "2.0",
     "id": 1,
     "method": "getGeneratedDeployment",
     "params": {
        "request_id": "2192e80c-e724-4b4c-a119-d11f11396604"
      }

 }'

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "deployment": null,
    "status": "Failed",
    "error": "Failed to retrieve result",
    "updatedAt": "2024-06-04T15:00:41.851Z"
  }
}

Last updated