Skip to main content
Get your API key at hackathon-apikey.vercel.app.
Transfer tokens privately to one or more Unlink addresses. The sender is the account bound to your unlink client (set via createUnlink(), see Quickstart). Sender, recipient, and amount are all hidden by a zero-knowledge proof.

Single recipient

const result = await unlink.transfer({
  recipientAddress: "unlink1...",
  token: "0xTokenAddress",
  amount: "500000000000000000",
});

const confirmed = await unlink.pollTransactionStatus(result.txId);

Multiple recipients

const result = await unlink.transfer({
  token: "0xTokenAddress",
  transfers: [
    { recipientAddress: "unlink1aaa...", amount: "100000000000000000" },
    { recipientAddress: "unlink1bbb...", amount: "200000000000000000" },
  ],
});

Parameters

Single recipient:
ParameterTypeRequiredDescription
recipientAddressstringYesRecipient Unlink address (unlink1...)
tokenstringYesERC-20 token address
amountstringYesAmount in the token’s smallest unit (wei for 18-decimal tokens)
Multiple recipients:
ParameterTypeRequiredDescription
tokenstringYesERC-20 token address
transfersArray<{ recipientAddress: string; amount: string }>YesList of recipients and amounts
Returns: { txId: string; status: string }