> 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="/sats-connect/spark-methods/spark_getbalance.md">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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
