Claim Cross-Chain Link
Claim on Any Chain in Any Token
Gasless Claiming
const result = await peanut.claimLinkXChainGasless({
link, // the entire link as string.
recipientAddress, // receipient address on the destination chain.
destinationChainId, // id of a supported destination chain.
destinationToken, // optional. address of the token on the destination chain, 0x00..00 for native token. If not specified, the address of the token on the source chain is used.
APIKey, // api key for the relaying API.
baseUrl, // optional. Use if you have a custom realying api that the link should be claimed through.
squidRouterUrl, // optional. Use if you want to get squid data from a custom endpoint.
isMainnet, // optional. Use when experimenting on testnets. Default: true.
slippage, // optional. Max slippage when swapping between source and destination tokens.
})Claiming Yourself
createClaimXChainPayload
createClaimXChainPayloadpopulateXChainClaimTx
populateXChainClaimTxNotes
Last updated