---
title: "Jogos instantâneos"
description: "Partidas, rolls e prêmios instantâneos."
---
<div class="lm-ref-kicker"><code>instantGames</code><span>namespace</span></div>

Partidas, rolls e prêmios instantâneos.

<div class="lm-ref-stats lm-ref-stats--compact">
  <div class="lm-ref-stat"><strong>6</strong><span>métodos</span></div>
  <div class="lm-ref-stat"><code>instantGames</code><span>namespace</span></div>
</div>

> Esta página é gerada automaticamente pelo `@luckymaker/sdk-generator`. Não edite manualmente.

## `getPendingPrizeRolls`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/games/instant/pending</code></div>

Assinatura:

```ts
getPendingPrizeRolls(query?: GetPendingPrizeRollsQuery, settings?: SdkSettings): Promise<GetPendingPrizeRollsResponse>
```

### Query

| Nome | Tipo | Obrigatório |
|---|---|---|
| `drawMethod` | `string` | não |
| `payment` | `string` | não |
| `raffle` | `number \| string` | não |

### Tipos

```ts
type GetPendingPrizeRollsQuery = { "drawMethod"?: string; "payment"?: string; "raffle"?: number | string; };
type GetPendingPrizeRollsResponse = unknown;
```

### Exemplo

```ts
const response = await sdk.instantGames.getPendingPrizeRolls();
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=instantGames&method=getPendingPrizeRolls">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `getPendingPrizeRollsByGamemode`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/games/instant/pending/by-gamemode</code></div>

Assinatura:

```ts
getPendingPrizeRollsByGamemode(query?: GetPendingPrizeRollsByGamemodeQuery, settings?: SdkSettings): Promise<GetPendingPrizeRollsByGamemodeResponse>
```

### Query

| Nome | Tipo | Obrigatório |
|---|---|---|
| `page` | `number` | sim |

### Tipos

```ts
type GetPendingPrizeRollsByGamemodeQuery = { "page": number; };
type GetPendingPrizeRollsByGamemodeResponse = unknown;
```

### Exemplo

```ts
const response = await sdk.instantGames.getPendingPrizeRollsByGamemode({ "page": 0 });
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=instantGames&method=getPendingPrizeRollsByGamemode">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `getPendingPrizeRollsByRaffle`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/games/instant/pending/by-raffle</code></div>

Assinatura:

```ts
getPendingPrizeRollsByRaffle(query?: GetPendingPrizeRollsByRaffleQuery, settings?: SdkSettings): Promise<GetPendingPrizeRollsByRaffleResponse>
```

### Query

| Nome | Tipo | Obrigatório |
|---|---|---|
| `page` | `number` | sim |

### Tipos

```ts
type GetPendingPrizeRollsByRaffleQuery = { "page": number; };
type GetPendingPrizeRollsByRaffleResponse = unknown;
```

### Exemplo

```ts
const response = await sdk.instantGames.getPendingPrizeRollsByRaffle({ "page": 0 });
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=instantGames&method=getPendingPrizeRollsByRaffle">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `listPrizeMatchesHistory`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/games/instant/matches</code></div>

Assinatura:

```ts
listPrizeMatchesHistory(query?: ListPrizeMatchesHistoryQuery, settings?: SdkSettings): Promise<ListPrizeMatchesHistoryResponse>
```

### Query

| Nome | Tipo | Obrigatório |
|---|---|---|
| `page` | `number` | não |
| `limit` | `number` | não |
| `status` | `"FINISHED" \| "CREATED"` | não |
| `raffle` | `string` | não |
| `gamemode` | `string \| number` | não |

### Tipos

```ts
type ListPrizeMatchesHistoryQuery = { "page"?: number; "limit"?: number; "status"?: "FINISHED" | "CREATED"; "raffle"?: string; "gamemode"?: string | number; };
type ListPrizeMatchesHistoryResponse = { "items": Array<{ "uuid": string; "gamemode": string; "isPlayed": boolean; "playedAt": null | string; "createdAt": string; "raffle": { "uuid": string; "title": string; "thumbnail"?: string; }; "prize": null | { "title": string; "kind": string; "monetaryValue"?: number; }; "payment": null | { "uuid": string; "method": string; "createdAt": string; }; "contemplation": { "isWon": boolean; "link"?: string; }; "canPlay": boolean; }>; "summary": { "totalWon": number; "byGamemode": Array<{ "gamemode": string; "totalWon": number; }>; }; "pagination": { "total": number; "page": number; "limit": number; "totalPages": number; }; };
```

### Exemplo

```ts
const response = await sdk.instantGames.listPrizeMatchesHistory();
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=instantGames&method=listPrizeMatchesHistory">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `rollMatch`

<div class="lm-endpoint"><span class="lm-http lm-http--post">POST</span><code>/user/games/instant/matches/:uuid/roll</code></div>

Assinatura:

```ts
rollMatch(uuid: string, settings?: SdkSettings): Promise<RollMatchResponse>
```

### Parâmetros de rota

| Nome | Tipo |
|---|---|
| `uuid` | `string` |

### Tipos

```ts
type RollMatchParams = { "uuid": string; };
type RollMatchResponse = { "winner": true; "title": string; "monetaryValue": string; } | { "winner": false; "title": null; "monetaryValue": null; };
```

### Exemplo

```ts
const response = await sdk.instantGames.rollMatch("string");
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=instantGames&method=rollMatch">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `rollMatchesAll`

<div class="lm-endpoint"><span class="lm-http lm-http--post">POST</span><code>/user/games/instant/matches/roll-all</code></div>

Assinatura:

```ts
rollMatchesAll(settings?: SdkSettings<RollMatchesAllQuery>): Promise<RollMatchesAllResponse>
```

### Query

| Nome | Tipo | Obrigatório |
|---|---|---|
| `drawMethod` | `string` | não |
| `payment` | `string` | não |
| `raffle` | `number \| string` | não |

### Tipos

```ts
type RollMatchesAllQuery = { "drawMethod"?: string; "payment"?: string; "raffle"?: number | string; };
type RollMatchesAllResponse = { "results": Array<{ "winner": boolean; "title": string | null; "monetaryValue": string | null; }>; "pendingCount": number; };
```

### Exemplo

```ts
const response = await sdk.instantGames.rollMatchesAll();
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=instantGames&method=rollMatchesAll">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>