# DEFAULT_MAX_AMOUNT

> Default per-payment cap in base units (1 ALGO, or 1 USDC) applied when `maxAmount` is not set.

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

```ts
export const DEFAULT_MAX_AMOUNT = 1_000_000n;
```

Default per-payment cap in base units (1 ALGO, or 1 USDC) applied when `maxAmount` is not set.

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

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