> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Database

> Starton local sync: searchable entities, `.search()` filters, and operators.

The Starton plugin syncs data locally. Use `corsair.starton.db.<entity>.search({ data, limit?, offset? })` with the filters listed per entity.

<Info>
  **New to Corsair?** See [database operations](/concepts/database), [data synchronization](/concepts/integrations), and [multi-tenancy](/concepts/multi-tenancy).
</Info>

## Pins

Path: `starton.db.pins.search`

```ts theme={null}
const rows = await corsair.starton.db.pins.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `cid` | `string` | equals, contains, startsWith, endsWith, in |
| `size` | `number` | equals, gt, gte, lt, lte, in |
| `projectId` | `string` | equals, contains, startsWith, endsWith, in |
| `createdAt` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***

## Smart Contracts

Path: `starton.db.smartContracts.search`

```ts theme={null}
const rows = await corsair.starton.db.smartContracts.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `description` | `string` | equals, contains, startsWith, endsWith, in |
| `network` | `string` | equals, contains, startsWith, endsWith, in |
| `address` | `string` | equals, contains, startsWith, endsWith, in |
| `creationHash` | `string` | equals, contains, startsWith, endsWith, in |
| `minedDate` | `string` | equals, contains, startsWith, endsWith, in |
| `blockNumber` | `number` | equals, gt, gte, lt, lte, in |
| `templateId` | `string` | equals, contains, startsWith, endsWith, in |
| `projectId` | `string` | equals, contains, startsWith, endsWith, in |
| `createdAt` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***

## Templates

Path: `starton.db.templates.search`

```ts theme={null}
const rows = await corsair.starton.db.templates.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `description` | `string` | equals, contains, startsWith, endsWith, in |
| `shortDescription` | `string` | equals, contains, startsWith, endsWith, in |
| `githubUrl` | `string` | equals, contains, startsWith, endsWith, in |
| `isAudited` | `boolean` | equals |
| `isActivated` | `boolean` | equals |
| `order` | `number` | equals, gt, gte, lt, lte, in |
| `createdAt` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***

## Transactions

Path: `starton.db.transactions.search`

```ts theme={null}
const rows = await corsair.starton.db.transactions.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `blockHash` | `string` | equals, contains, startsWith, endsWith, in |
| `blockNumber` | `number` | equals, gt, gte, lt, lte, in |
| `chainId` | `number` | equals, gt, gte, lt, lte, in |
| `network` | `string` | equals, contains, startsWith, endsWith, in |
| `data` | `string` | equals, contains, startsWith, endsWith, in |
| `from` | `string` | equals, contains, startsWith, endsWith, in |
| `gasLimit` | `string` | equals, contains, startsWith, endsWith, in |
| `gasPrice` | `string` | equals, contains, startsWith, endsWith, in |
| `maxFeePerGas` | `string` | equals, contains, startsWith, endsWith, in |
| `maxPriorityFeePerGas` | `string` | equals, contains, startsWith, endsWith, in |
| `nonce` | `number` | equals, gt, gte, lt, lte, in |
| `type` | `number` | equals, gt, gte, lt, lte, in |
| `signerWallet` | `string` | equals, contains, startsWith, endsWith, in |
| `publishedDate` | `string` | equals, contains, startsWith, endsWith, in |
| `minedDate` | `string` | equals, contains, startsWith, endsWith, in |
| `signedTransaction` | `string` | equals, contains, startsWith, endsWith, in |
| `to` | `string` | equals, contains, startsWith, endsWith, in |
| `transactionHash` | `string` | equals, contains, startsWith, endsWith, in |
| `value` | `string` | equals, contains, startsWith, endsWith, in |
| `automaticNonce` | `boolean` | equals |
| `isDeployTransaction` | `boolean` | equals |
| `projectId` | `string` | equals, contains, startsWith, endsWith, in |
| `parentTransaction` | `string` | equals, contains, startsWith, endsWith, in |
| `createdAt` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***

## Wallets

Path: `starton.db.wallets.search`

```ts theme={null}
const rows = await corsair.starton.db.wallets.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `address` | `string` | equals, contains, startsWith, endsWith, in |
| `providerKeyId` | `string` | equals, contains, startsWith, endsWith, in |
| `kmsId` | `string` | equals, contains, startsWith, endsWith, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `description` | `string` | equals, contains, startsWith, endsWith, in |
| `projectId` | `string` | equals, contains, startsWith, endsWith, in |
| `createdAt` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***

## Watchers

Path: `starton.db.watchers.search`

```ts theme={null}
const rows = await corsair.starton.db.watchers.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `description` | `string` | equals, contains, startsWith, endsWith, in |
| `address` | `string` | equals, contains, startsWith, endsWith, in |
| `network` | `string` | equals, contains, startsWith, endsWith, in |
| `projectId` | `string` | equals, contains, startsWith, endsWith, in |
| `webhookUrl` | `string` | equals, contains, startsWith, endsWith, in |
| `confirmationsBlocks` | `number` | equals, gt, gte, lt, lte, in |
| `paused` | `boolean` | equals |
| `pausedReason` | `string` | equals, contains, startsWith, endsWith, in |
| `createdAt` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***

## Webhooks

Path: `starton.db.webhooks.search`

```ts theme={null}
const rows = await corsair.starton.db.webhooks.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `refId` | `string` | equals, contains, startsWith, endsWith, in |
| `url` | `string` | equals, contains, startsWith, endsWith, in |
| `projectId` | `string` | equals, contains, startsWith, endsWith, in |
| `createdAt` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.