# INVALID_COIN_TYPE

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

What INVALID_COIN_TYPE means, why InvalidInputError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.

Source: https://ensforge.com/docs/reference/errors/INVALID_COIN_TYPE

<ErrorMeta errorClass="InvalidInputError" href="/docs/reference/errors/invalid-input-error" package="@ensforge/sdk" />

## What happened [#what-happened]

undefined is not a known coin type.

## What to show users [#what-to-show-users]

| Title | Message | Action |
| --- | --- | --- |
| Unsupported network | This coin or network is not supported. |  |

## How to fix [#how-to-fix]

Pass a symbol (`btc`), `{ chainId }` or a numeric coin type.

## Retry safety [#retry-safety]

Retrying the same call fails the same way until the cause is fixed (`retryable: false`).

## Actions that throw it [#actions-that-throw-it]

| Action | When |
| --- | --- |
| [`indexer.getNamesForAddress`](/docs/reference/sdk/indexer/get-names-for-address) | for invalid input. |
| [`indexer.getPrimaryName`](/docs/reference/sdk/indexer/get-primary-name) | for invalid input. |
| [`permission.check`](/docs/reference/sdk/permission/check) | for invalid input. |
| [`primaryName.get`](/docs/reference/sdk/primary-name/get) | for invalid input, or with `strict` an unnormalized name. |
| [`primaryName.set`](/docs/reference/sdk/primary-name/set) | for a coin that is not an EVM chain, or a chain the claim does not cover. |
| [`primaryName.signClaim`](/docs/reference/sdk/primary-name/sign-claim) | when `chainIds` is empty, includes the ENS chain, or mixes mainnet L2s and testnets. |
| [`record.get`](/docs/reference/sdk/record/get) | for invalid input. |
| [`record.getAddress`](/docs/reference/sdk/record/get-address) | for invalid input. |
| [`record.set`](/docs/reference/sdk/record/set) | for invalid input. |

## Catch it [#catch-it]

`Errors.hasCode("INVALID_COIN_TYPE")` narrows to this error. See [Handle errors](/docs/sdk/handle-errors).