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.ALLBRIDGE,
    // gasFeePaymentMethod: FeePaymentMethod.WITH_STABLECOIN,
})) as RawSuiTransaction;

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

Last updated

Was this helpful?