🛤️CCIP
CCIP
Before you begin
const sdk = new CryptumSdk({
environment: 'testnet',
apiKey: 'YOUR-API-KEY'
})const getWallet = async () => await sdk.wallet.generateWallet({
protocol,
mnemonic: process.env.MNEMONIC
})
const wallet = await getWallet();
await sdk.chainlink.sendTokenCCIPEoa({
protocol: "ARBITRUM",
wallet,
to: "0x91438...6623", // destination wallet
amount: '1',
tokenAddress: 'CCIP-BnM',
destinationProtocol: "AVAXCCHAIN",
// feeTokenAddress: '0x' // 0x for native token or token address or null for LINK token
})
/* Response:
TransactionResponse {
hash: '0x082a35d8172700ec2c97538034d774feb44ec5d4e81b45116c4c368fc3bb79cc'
}
*/OnChain
Send Message
Withdraw
Last updated
