logo
The getXChainOptionsForLink is a wrapper function to get all the possible xchain options. Options are possible destination chains and corresponding tokens.
plain text
const crossChainDetails = await peanut.getXChainOptionsForLink({ isTestnet, sourceChainId: '137', tokenType: 1, //0 for native, 1 for ERC-20 })
Share