Get Cross-Chain Options

The getXChainOptionsForLink is a wrapper function to get all the possible xchain options. Options are possible destination chains and corresponding tokens.

const crossChainDetails = await peanut.getXChainOptionsForLink({
                isTestnet,
                sourceChainId: '137',
                tokenType: 1, //0 for native, 1 for ERC-20
            })

Last updated