logo
🥜
Peanut Documentation
🏦
How to Withdraw?
📥
How to Deposit?
🔗
How to receive money via Peanut?
💵
How to pay someone with Peanut?
💰
Fees
🆘
Support
🔑
Passkeys
🔓
Security Audit
👾
Bug bounties
🧑‍💻
Dev Quickstart
➡️
API keys
⛓️
Supported Chains and Tokens
🗂️
Embedding an IFrame
💻
Using the SDK
➡️
Create Claim Links
➡️
Create Request Links
➡️
Claim
➡️
Utils
🔗
Get Link Details
🔗
Cross-chain
➡️
Get Supported Destination Chains
➡️
Get Supported Destination Tokens
➡️
Get Cross-Chain Options
➡️
Get Cross-Chain Route
🔗
Raffle (Legacy)
🔗
Get Default Provider
🔗
Get Supported Peanut Chains
🔗
Toggle Verbosity
🔗
EthersV5 <> Peanut Transaction Types
🔗
Estimate Fee Options
🔗
Get Random String
🔗
Get all deposits for an Address
🔗
Get Token Balance
➡️
White-Labelling
➡️
Troubleshooting
➡️
SDK FAQ
🏪
Request API
Press Kit
👨‍⚖️
T&Cs and Contact
🎲
Other
Peanut Documentation
/
Using the SDK
/
Utils
/
Cross-chain

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.
plain text
const crossChainDetails = await peanut.getXChainOptionsForLink({ isTestnet, sourceChainId: '137', tokenType: 1, //0 for native, 1 for ERC-20 })
Get Supported Destination Tokens
Get Cross-Chain Route

Powered by Notaku
Helpful?
Share