Withdraw tokens from the unlink contract to any EVM address. Tokens are withdrawn from 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).
withdraw() 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.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
recipientEvmAddress | string | Yes | Destination EVM address |
token | string | Yes | ERC-20 token address |
amount | string | Yes | Amount in wei |
signSigningRequest | SignSigningRequestFn | Yes | Callback that signs the prepared transaction |
{ txId: string; status: string }