---
title: "Get same contracts"
method: GET
path: "/v1/contracts/{address}/same"
tags: ["Contracts"]
---

# Get same contracts

`GET /v1/contracts/{address}/same`

Returns contracts which have the same script as the specified one.
Note, contract scripts are compared by 32-bit hash, so in very rare cases there may be collisions.

## Path parameters

- `address` string, required

## Query parameters

- `sort` SortParameter
  - `asc` string, nullable — **Ascending** sort mode (optional, i.e. `sort.asc=id` is the same as `sort=id`). \ Specify a field name to sort by. Example: `?sort=balance`.
  - `desc` string, nullable — **Descending** sort mode. \ Specify a field name to sort by descending. Example: `?sort.desc=id`.
- `offset` OffsetParameter
  - `el` integer, nullable — **Elements** offset mode (optional, i.e. `offset.el=123` is the same as `offset=123`). \ Skips specified number of elements. Example: `?offset=100`.
  - `pg` integer, nullable — **Page** offset mode. \ Skips `page * limit` elements. This is a classic pagination. Example: `?offset.pg=1`.
  - `cr` integer, nullable — **Cursor** offset mode. \ Skips all elements with the `cursor` before (including) the specified value. Cursor is a field used for sorting, e.g. `id`. Avoid using this offset mode with non-unique or non-sequential cursors such as `amount`, `balance`, etc. Example: `?offset.cr=45837`.
- `limit` integer
- `select` SelectionParameter
  - `fields` string[], nullable — **Fields** selection mode (optional, i.e. `select.fields=balance` is the same as `select=balance`). \ Specify a comma-separated list of fields to include into response. Example: `?select=address,balance as b,metadata.name as meta_name` will result in `[ { "address": "asd", "b": 10, "meta_name": "qwe" } ]`.
  - `values` string[], nullable — **Values** selection mode. \ Specify a comma-separated list of fields to include their values into response. Example: `?select.values=address,balance,metadata.name` will result in `[ [ "asd", 10, "qwe" ] ]`.
- `includeStorage` boolean

## Response `200`

- Contract[]
  - `id` integer — Internal TzKT id. **[sortable]**
  - `type` string — Type of the account, `contract` - smart contract programmable account.
  - `address` string, required — Public key hash of the contract
  - `kind` string, required — Kind of the contract (`delegator_contract` or `smart_contract`), where `delegator_contract` - manager.tz smart contract for delegation purpose only.
  - `tzips` string[], nullable — List of implemented standards (TZIPs).
  - `alias` string, nullable — Name of the project behind the contract or contract description.
  - `balance` integer — Contract balance (micro tez). **[sortable]**
  - `creator` Alias, required
    - `alias` string, nullable — Account alias name (off-chain data).
    - `address` string, required — Account address (public key hash).
  - `delegate` DelegateInfo
    - `alias` string, nullable — Name of the baking service
    - `address` string, required — Public key hash of the delegate (baker)
    - `active` boolean — Delegation status (`true` - active, `false` - deactivated)
  - `delegationLevel` integer, nullable — Block height of latest delegation. `null` if it's not delegated.
  - `delegationTime` string, date-time, nullable — Block datetime of latest delegation (ISO 8601, e.g. `2020-02-20T02:40:57Z`). `null` if it's not delegated.
  - `numContracts` integer — Number of contracts, created (originated) and/or managed by the contract.
  - `tokensCount` integer — Number of tokens minted in the contract.
  - `activeTokensCount` integer — Number of account tokens with non-zero balances.
  - `tokenBalancesCount` integer — Number of tokens the account ever had.
  - `tokenTransfersCount` integer — Number of token transfers from/to the account.
  - `ticketsCount` integer — Number of tickets minted in the contract.
  - `activeTicketsCount` integer — Number of tickets the account owns.
  - `ticketBalancesCount` integer — Number of tickets the account ever owned.
  - `ticketTransfersCount` integer — Number of ticket transfers from/to the account.
  - `numDelegations` integer — Number of delegation operations of the contract.
  - `numOriginations` integer — Number of origination (deployment / contract creation) operations, related the contract.
  - `numTransactions` integer — Number of transaction (transfer) operations, related to the contract. **[sortable]**
  - `numReveals` integer — Number of reveal (is used to reveal the public key associated with an account) operations of the contract.
  - `numMigrations` integer — Number of migration (result of the context (database) migration during a protocol update) operations. related to the contract (synthetic type).
  - `transferTicketCount` integer — Number of transfer ticket operations related to the contract.
  - `increasePaidStorageCount` integer — Number of `increase_paid_storage` operations related to the contract.
  - `eventsCount` integer — Number of events produced by the contract.
  - `firstActivity` integer — Block height of the contract creation. **[sortable]**
  - `firstActivityTime` string, date-time — Block datetime of the contract creation (ISO 8601, e.g. `2020-02-20T02:40:57Z`).
  - `lastActivity` integer — Height of the block in which the account state was changed last time. **[sortable]**
  - `lastActivityTime` string, date-time — Datetime of the block in which the account state was changed last time (ISO 8601, e.g. `2020-02-20T02:40:57Z`).
  - `typeHash` integer — 32-bit hash of the contract parameter and storage types. This field can be used for searching similar contracts (which have the same interface).
  - `codeHash` integer — 32-bit hash of the contract code. This field can be used for searching same contracts (which have the same script).
  - `metadata` unknown
  - `extras` unknown
  - `storage` unknown

---

[API](https://skmtc.dev/tzkt/apis/tzkt-api.md) · [All operations](https://skmtc.dev/tzkt/apis/tzkt-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tzkt/tzkt-api/revisions/a2e2aba5e534/schema)
