> For the complete documentation index, see [llms.txt](https://docs.xverse.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xverse.app/sats-connect/spark-methods/spark_transfertoken.md).

# 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="/pages/rahttdBi8MhlC9aipLAY">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>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.xverse.app/sats-connect/spark-methods/spark_transfertoken.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
