Transfer tokens privately to one or more Unlink addresses. The sender is the account bound to yourDocumentation Index
Fetch the complete documentation index at: https://docs.unlink.xyz/llms.txt
Use this file to discover all available pages before exploring further.
unlink session (set via tenant.forUser({ account }), see Quickstart). Sender, recipient, and amount are all hidden by a zero-knowledge proof.
transfer() needs a signSigningRequest callback. In a single-process script, call the SDK’s signSigningRequest helper with the user’s spending key. In a Tenant + browser setup, the Tenant callback forwards the signing request to the browser and returns the browser’s signature.
Single recipient
Multiple recipients
Parameters
Single recipient:| Parameter | Type | Required | Description |
|---|---|---|---|
recipientAddress | string | Yes | Recipient Unlink address (unlink1...) |
token | string | Yes | ERC-20 token address |
amount | string | Yes | Amount in the token’s smallest unit (wei for 18-decimal tokens) |
signSigningRequest | SignSigningRequestFn | Yes | Callback that signs the prepared transaction |
| Parameter | Type | Required | Description |
|---|---|---|---|
token | string | Yes | ERC-20 token address |
transfers | Array<{ recipientAddress: string; amount: string }> | Yes | List of recipients and amounts |
signSigningRequest | SignSigningRequestFn | Yes | Callback that signs the prepared transaction |
{ txId: string; status: string }