Contracts

Returns a paginated list of contracts (latest deployment per unique contract identifier), ordered descending by contract address. Results can be filtered by contract name and block height range.

get/experimental/v1/contracts

Request

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

Query parameters

cursorstring base64

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

limitinteger

The maximum number of results to return.

contract_namestring

Filter by case sensitive contract name (unqualified, e.g. EVM).

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 contracts.

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