convertCoinTypeToChain

Converts a coin type to its corresponding blockchain chain based on a predefined mapping.

Import

1import { convertCoinTypeToChain } from "@aa-sdk/core";

Usage

1import { convertChainIdToCoinType, convertCoinTypeToChain } from "@aa-sdk/core";
2import { sepolia } from "viem/chains";
3
4const coinType = convertChainIdToCoinType(sepolia.id);
5const chain = convertCoinTypeToChain(coinType);

Parameters

coinType

number The numerical identifier for the coin type

Returns

Chain The corresponding blockchain chain