# エラー

> 以下のようにRelayerのNonceがズレることがあります。

- URL: https://cardene.dev/books/avalanche-cli/5da981
- 本: Avalanche CLI (https://cardene.dev/books/avalanche-cli.md)
- 章: 19 / 20
- 前の章: https://cardene.dev/books/avalanche-cli/ee4043.md
- 次の章: https://cardene.dev/books/avalanche-cli/d61eac.md
- 公開日: 2025-09-08
- 更新日: 2025-09-08
- トピック: Blockchain
- タグ: ブロックチェーン, solidity, ethereum, zennfes2025free

## RelayerのNonceがズレる

以下のようにRelayerのNonceがズレることがあります。

```bash
| ⛔  | 07:19:28 |        | Received error from application relayer                                         |
|     |          |        |   error=nonce too low: next nonce 11, tx nonce 9
```

これは、Relayerのアドレスの次のNonceとトランザクション送付時に指定されているNonceの値が異なっているエラーです。
一番早い解決方法は、Relayerを立ち上げ直すことです。
まずは、以下のコマンドでRelayerで使用する鍵を作成します。

```bash
avalanche key create relayer1
```

次に以下のコマンドでRelayerをデプロイします。

```bash
avalanche interchain relayer deploy --local \
  --blockchains chain1,chain2 \
  --key relayer1 \
  --amount 100
```

詳細手順は、「**Interchain Message**」の「**Relayerのデプロイ**」の章を確認してください。
