---
url: >-
  https://game-engine-io.github.io/enginex-frontend-sdk/reference/api/@getenginex/sdk/extension/functions/money.md
---
[Reference](../../../../index.md) / [@getenginex/sdk/extension](../index.md) / money

# money()

> **money**(): `ZodMiniType`<`number`>

Money in minor units (a safe integer, `Number.isSafeInteger`). Strict even in
`'warn'` mode: outside the format, the whole response rejects with `VALIDATION_ERROR`. For SDK packages
(via `@getenginex/sdk/extension`), not for apps.

## Returns

`ZodMiniType`<`number`>

## Example

```ts
wire({ amount: money(), currency: currencyCode() }) // { amount: 1500, currency: 'BRL' }
```

## Throws

Nothing: the schema does not throw; the failure becomes `VALIDATION_ERROR` in the transport.
