For the complete documentation index, see llms.txt. This page is also available as Markdown.

Transfer

Initiate the raw transaction of token transfer with the SDK instance:

const xdr = (await sdk.bridge.rawTxBuilder.send({
    amount: amount,
    fromAccountAddress: accountAddress,
    toAccountAddress: toAddress,
    sourceToken: sourceToken,
    destinationToken: destinationToken,
    messenger: Messenger.CCTP,
    // gasFeePaymentMethod: FeePaymentMethod.WITH_STABLECOIN,
})) as RawSuiTransaction;

const txReceipt = await sendSuiRawTransaction(xdr);
console.log("tx id:", txReceipt);

Full example

Last updated