Skip to content

Add siac command to get data from /host/contracts endpoint

Christopher Schinnerl requested to merge nielscastien:siac-contract-cmd into master

Created by: nielscastien

This PR introduces a new siac command to display contract information on the host. The command uses 2 formats to display the data:

  1. value: shows information about the financial values of the obligation
  2. status: shows information about the status of the obligation

A filter is used to specify what data should should be shown based on the obligation status.

Examples: siac host contracts value rejected shows financial information about all rejected obligations siac host contracts status all shows status information about all obligations

Data is always sorted by expiration height.

Closes issues #2416 (closed) and #2465 (closed)

Merge request reports