Contracts

List deployments for a contract

Changed on

Returns a paginated list of all historical deployments for the contract with the given identifier, ordered descending by block height (newest first). Results can be filtered by block height range.

get/experimental/v1/contracts/{identifier}/deployments

Request

  • Base URL
    https://rest-testnet.onflow.org
  • URL
    https://rest-testnet.onflow.org/experimental/v1/contracts/{identifier}/deployments
  • Auth
    none required

Path parameters

identifierstring required

Address-qualified Cadence contract identifier (e.g. A.1654653399040a61.EVM).

The address-qualified contract identifier (e.g. A.1654653399040a61.EVM).

Query parameters

cursorstring base64

Opaque pagination cursor from a previous response's next_cursor field.

limitinteger

The maximum number of results to return.

start_blockstring uint64

Filter to include only deployments at or after this block height (inclusive).

end_blockstring uint64

Filter to include only deployments at or before this block height (inclusive).

expandstring[]

A comma-separated list indicating which properties of the content to expand.

selectstring[]

A comma-separated list indicating which properties of the content to return.

Response

A page of contract deployments.

next_cursorstring base64

Opaque pagination cursor from a previous response's next_cursor field.

Changes

    • breaking

      the response property // became optional for the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property // to the response with the status