# NetworkMismatchError

> None of the offered requirements is for the network the wallet is on, or a requirement's genesis does not match.

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

```ts
export class NetworkMismatchError extends X402AvmError {
  readonly offered: string[];
  readonly expected: string;

  constructor(message: string, offered: string[], expected: string) {
    super(message, 'network_mismatch');
    this.offered = offered;
    this.expected = expected;
  }
}
```

None of the offered requirements is for the network the wallet is on, or a requirement's genesis does not match.

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

Source: https://x402-avm.github.io/reference/js/network-mismatch-error
