> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spark.money/llms.txt
> Use this file to discover all available pages before exploring further.

# transferTokens

> Transfer tokens from issuer wallet to a Spark address.

Transfers tokens to another Spark Address via the `IssuerSparkWallet`.

## Method Signature

```typescript theme={null}
async transferTokens({
  tokenIdentifier,
  tokenAmount,
  receiverSparkAddress,
  outputSelectionStrategy,
  selectedOutputs,
  executeBefore,
}: {
  tokenIdentifier: Bech32mTokenIdentifier;
  tokenAmount: bigint;
  receiverSparkAddress: string;
  outputSelectionStrategy?: "SMALL_FIRST" | "LARGE_FIRST";
  selectedOutputs?: OutputWithPreviousTransactionData[];
  executeBefore?: Date;
}): Promise<string>
```

## Parameters

<ResponseField name="tokenIdentifier" type="Bech32mTokenIdentifier" required>
  Bech32m token identifier (eg: btkn1…) of the token to transfer
</ResponseField>

<ResponseField name="tokenAmount" type="bigint" required>
  Amount of tokens to transfer
</ResponseField>

<ResponseField name="receiverSparkAddress" type="string" required>
  Recipient's Spark Address
</ResponseField>

<ResponseField name="outputSelectionStrategy" type="&#x22;SMALL_FIRST&#x22; | &#x22;LARGE_FIRST&#x22;">
  Strategy for selecting outputs: `"SMALL_FIRST"` or `"LARGE_FIRST"` (defaults to `"SMALL_FIRST"`)
</ResponseField>

<ResponseField name="selectedOutputs" type="OutputWithPreviousTransactionData[]">
  Specific outputs to use for transfer (overrides selection strategy)
</ResponseField>

<ResponseField name="executeBefore" type="Date">
  Optional deadline for the transaction. If the transaction is not executed before this time, it will not be processed.
</ResponseField>

## Returns

<ResponseField name="txId" type="string" required>
  Transaction ID
</ResponseField>

## Example

```typescript theme={null}
const txId = await issuerWallet.transferTokens({
  tokenIdentifier: "btkn1...",
  tokenAmount: 1000n,
  receiverSparkAddress: "spark1qw508d6qejxtdg4y5r3zarvary0c5xw7kxpjzsx"
});

console.log("Tokens transferred:", txId);
```
