# AmountLimit

> A limit in base units: bigint, a non-negative safe integer, a decimal string, or `Infinity` for no cap.

```ts
import type { AmountLimit } from 'x402-avm-js';
```

```ts
export type AmountLimit = bigint | number | string;
```

A limit in base units: bigint, a non-negative safe integer, a decimal string, or `Infinity` for no cap.

Source: [src/index.ts](https://github.com/x402-avm/x402-avm-js/blob/main/src/index.ts#L434)

Source: https://x402-avm.github.io/reference/js/amount-limit
