Skip to main content

Method Signature

align.crossChain.completeTransfer(
  customerId: string,
  transferId: string,
  data: CompleteCrossChainTransferRequest
): Promise<CrossChainTransfer>

Parameters

customerId
string
required
Customer identifier
transferId
string
required
The cross-chain transfer ID
deposit_transaction_hash
string
required
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.