bus

Get latest contract revision

Returns the latest revision of the contract with the specified ID.

get/bus/contract/{id}/revision

Path parameters

idstring required

A unique identifier for a file contract

Response

Latest contract revision

contractIDstring

A unique identifier for a file contract

missedHostValuestring

An unsigned amount of Hastings, the smallest unit of currency in Sia. 1 Siacoin (SC) equals 10^24 Hastings (H).

renterFundsstring

An unsigned amount of Hastings, the smallest unit of currency in Sia. 1 Siacoin (SC) equals 10^24 Hastings (H).

revisionNumberinteger

The revision number of the contract

sizeinteger

The size of the contract in bytes

Example response

{
  "revisionNumber": 246
}

Changes

Changed in 3 of the 50 revisions of this API.24

  • 922f156353c913See the full diff
    • removed the media type text/plain for the response with the status 500

      response-media-type-removed

    • api tag bus added

      api-tag-added

    • added the non-success response with the status 404

      response-non-success-status-added

    • removed the non-success response with the status 400

      response-non-success-status-removed

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 99 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog