Documentation for agents: an index at /llms.txt, every docs page in one file at /llms-full.txt, and Markdown for any docs page by adding .md to its URL.

Skip to Content
ensforge

INVALID_COIN_TYPE

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

InvalidInputErrorNot retryable
@ensforge/sdk

What happened

undefined is not a known coin type.

What to show users

TitleMessageAction
Unsupported networkThis coin or network is not supported.

How to fix

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

Retry safety

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

Actions that throw it

ActionWhen
indexer.getNamesForAddressfor invalid input.
indexer.getPrimaryNamefor invalid input.
permission.checkfor invalid input.
primaryName.getfor invalid input, or with strict an unnormalized name.
primaryName.setfor a coin that is not an EVM chain, or a chain the claim does not cover.
primaryName.signClaimwhen chainIds is empty, includes the ENS chain, or mixes mainnet L2s and testnets.
record.getfor invalid input.
record.getAddressfor invalid input.
record.setfor invalid input.

Catch it

Errors.hasCode("INVALID_COIN_TYPE") narrows to this error. See Handle errors.

Was this page helpful?