Method Signature
align.crossChain.completeTransfer(
customerId: string,
transferId: string,
data: CompleteCrossChainTransferRequest
): Promise<CrossChainTransfer>
Parameters
The cross-chain transfer ID
Transaction hash from the source blockchain
Example
const completed = await align.crossChain.completeTransfer(
customerId,
"xc_123e4567-e89b-12d3-a456-426614174000",
{
deposit_transaction_hash: "0xabcdef1234567890...",
}
);
console.log(`Status: ${completed.status}`);
// Status: processing
Wait for the transaction to be confirmed on the source blockchain before
calling this method.