Description

In most cases, users can download their Scenario Chain using the provided download API without complication. If you are trying to download a Scenario Chain and see a file size of 0 KB, you can continue reading for a solution. 


An excellent way to check this is to download the Scenario Chain or Scenario Chain Set from the web platform and see if it goes to the queue. If it does, it will also go to the queue from the API. 


When the Scenario Chain is heavy (i.e., large), it goes to the queue. "Heavy" means that the total number of Attributes in all Scenarios within the Scenario Chain is greater than '1000'. 


For that, you will need to use 2 APIs: 

  1. One API must be used to send to the queue.
  2. Another API must be used to download once it is ready in the queue.


API Command 1

This command returns different responses for different statuses. For example, it will return the queueId if it is in the queue or 'isReady: true' if the Scenario Chain is ready to be downloaded.

URL: /rest/chain/verify
{
  "chainId":"<ExternalID>"
}


API Command 2

You can use this command to download the Scenario Chain when it is ready.

URL: /rest/chain/download
{
  "chainId":"<ExternalID>"
}