# spark\_transferToken

Use the `spark_transferToken` method to send any **BTKN token** from the user’s wallet to a recipient’s Spark address.

## Parameters

<table><thead><tr><th width="221">Request parameters</th><th>Description</th></tr></thead><tbody><tr><td><code>reciverSparkAddress</code></td><td>a string representing the destination Spark address<br>Example: "sprt1pgssyuuuhnrrdjswal5c3s3rafw9w3y5dd4cjy3duxlf7hjzkp0rqx6dj6mrhu"</td></tr><tr><td><code>tokenIdentifier</code></td><td>a string representing the <strong>identifier</strong> of the Spark BTKN token</td></tr><tr><td><code>tokenAmount</code></td><td>a string representing the amount of the token to send (denominated based on token decimals - refer to <a href="spark_getbalance">spark_getBalance</a>)</td></tr></tbody></table>

## Example

```typescript
import { request } from "sats-connect";

try {
  const response = await request("spark_transferToken", {
    receiverSparkAddress: "sprt1pgssyuuuhnrrdjswal5c3s3rafw9w3y5dd4cjy3duxlf7hjzkp0rqx6dj6mrhu",
    tokenIdentifier: "btkn1qwertyuiopasdfghjklzxcvbnm1234567890abcdef", // Identifier of the Spark token
    tokenAmount: 1000, // Amount to send (denominated based on token decimals)
  });

  if ("result" in response) {
    console.log("Token transfer successful:", response.result.txid);
  } else {
    console.error("Token transfer failed:", response.error.message);
  }
} catch (error) {
  console.error("Unexpected error:", error);
}

```

## What `spark_transferToken` does

This method initiates a token transfer on Spark using the selected token’s identifier. The user will:

1. Review the **recipient**, **token name**, and **amount**.
2. Approve the transaction in their Xverse wallet.
3. The transaction will be **signed and broadcasted** on the Spark network.

The `spark_transferToken` method returns a Promise that resolves to the `SparkTokenTransferResult` object:

<table><thead><tr><th width="162">Property</th><th>Description</th></tr></thead><tbody><tr><td><code>txid</code></td><td>a hex-encoded string representing the ID of the BTKN transfer transaction on Spark</td></tr></tbody></table>
