@somnia-chain/markets-sdk / chains / getBridgeToken
Function: getBridgeToken()
getBridgeToken(
token,chainId):BridgeTokenDetails|null
Defined in: packages/sdk/src/chains/bridge/registry.ts:261
Token details for one token on one network — the router to call, what the sender holds, its decimals, and where it can go.
ts
import { BridgeToken, ChainId, getBridgeToken } from "@somnia-chain/markets-sdk/chains";
const wbtc = getBridgeToken(BridgeToken.WBTC, ChainId.somniaShannon);
wbtc?.model; // "collateral" — approve `wbtc.address` to `wbtc.router` first
wbtc?.decimals; // 8, NOT 18
Parameters
token
Token symbol.
chainId
number
Chain id of the network (also the Hyperlane domain id).
Returns
BridgeTokenDetails | null
The details, or null when that token has no route on that network.