Appearance
Documentation / js-sdk-core / chainToMoonpayCurrency
Function: chainToMoonpayCurrency()
chainToMoonpayCurrency(
chainId
,asset
):MoonpayCurrencyCode
Maps the privy chain to the moonpay currency. We currently only support ETH, which is hardcoded here. When we support multiple tokens, they will need to be taken into account as input here.
Parameters
• chainId: number
• asset: "native-currency"
| "USDC"
Returns
MoonpayCurrencyCode