Assets and chains
Install the registries directly when an application needs picker or routing metadata without the full SDK.
import {
getAssetOnChain,
listAssets,
} from '@silentswap/assets';
import {
getChainConfig,
getSourceChain,
listSourceChains,
} from '@silentswap/chains';
import { ASSETS } from '@silentswap/sdk';
const baseUsdc = getAssetOnChain('USDC', 8453);
const base = getChainConfig(8453);
const bnbSource = getSourceChain(56);
const sources = listSourceChains();
console.log(ASSETS, listAssets(), baseUsdc, base, bnbSource, sources);Use the registry's token address and decimals as one pair. Do not hardcode them or assume USDC
uses six decimals on every chain. Use NATIVE_TOKEN_SENTINEL to detect native gas
assets.
viem is a peer dependency of both public registry packages, preventing duplicate
Chain type identities.