Contracts
Accounts

List contracts for an account

Changed on

Returns a paginated list of contracts deployed to the given account address, ordered ascending by contract name. Results can be filtered by contract name and block height range.

get/experimental/v1/accounts/{address}/contracts

Request

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

Path parameters

addressstring hexadecimal required

The 8-byte address of an account.

The account address (hex-encoded without 0x prefix).

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 for the account.

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