> For the complete documentation index, see [llms.txt](https://koii-network.gitbook.io/getting-started/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://koii-network.gitbook.io/getting-started/finnie-for-devs/koii-network/transfernft.md).

# transferNft

This function transfers the NFT ownership to a target address.

### Parameters

* **nftId \<string>** - NFT ID to transfer
* **qty \<number>** - Quantity of NFT balance to transfer
* **target \<string>** - Target address to transfer ownership to
* *\[Optional]* **reward \<string>** - Custom reward for smartweave transaction

### Example Code

{% hint style="warning" %}
In the below code example, change the `nftID` & `targetAddress` as per your transfer requirements.
{% endhint %}

```javascript
const knode = require("@_koi/sdk/node");
const ktools = new knode.Node();

async function testTransferNft() {
    const jwk = await ktools.loadFile("arweaveWallet.json");
    await ktools.loadWallet(jwk);
    
    const nftID = "5APQHMQblgRjnl74iQGhfsoNW9UoVqX6V8Jl8wGtwLw";
    const targetAddress = "7b4ll1zwenRB8jzyESjFNcRls331buyNl231Pe0V9VI";
    const transferTx = await ktools.transferNft(nftID,1,targetAddress);
    console.log(transferTx);
}

testTransferNft();
```

### Example Code Output

```
Initialized Koii Tools for true ownership and direct communication using version QA7AIFVx1KBBmzC7WUNhJbDsHlSJArUT0jWrhZMZPS8
ZtaH__3m1QJH1iH2X8PdNT7Wo5iOh0tn6dXfngKMn90
```

### Returns

**Promise \<string>** - Arweave transaction ID of the NFT transfer transaction.


---

# 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://koii-network.gitbook.io/getting-started/finnie-for-devs/koii-network/transfernft.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.
