vault.transfer(Transfer)
Transfer tokens between addresses, scaling the human-readable amount using the token’s decimals.
Transfer Type Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| from | Signer | Required | Sender wallet (must hold balance). Must be connected to a provider. |
| to | string | Required | Recipient address. |
| token | string | Required | Token address. |
| transferAmountHuman | string | Required | Human-readable amount; scaled by token decimals. |
Returns
| Field | Type | Description |
|---|---|---|
| status | transferred | Status of the operation. |
| token | string | Token address. |
| sender | string | Sender address. |
| recipient | string | Recipient address. |
| amount | { human: string; units: bigint; decimals: number } | Amount details. |
| receipt | TransactionReceipt | Transaction receipt for the transfer. |
Usage
TypeScript
JavaScript
Example outputs
- The method fetches the token’s decimals and scales the provided amount accordingly.
- Ensure the sender is allowed to transfer (compliance checks may apply).

