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

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Send the asset

> Send 100 units of your asset to a new holder, opening their token account in the same transaction.

<div className="sol-stepper not-prose" data-path="quickstart">
<div className="sol-stepper-nav" role="navigation" aria-label="Quickstart · ~8 min">
<ol>
<li data-state="done"><a href="/developers/docs/quickstart/check-balance"><span className="sol-stepper-n">Step 1<span className="sol-vh">, </span><span className="sol-stepper-done">Done</span><span className="sol-vh">: </span></span><span className="sol-stepper-t">Check a balance</span></a></li>
<li data-state="done"><a href="/developers/docs/quickstart/send-dollars"><span className="sol-stepper-n">Step 2<span className="sol-vh">, </span><span className="sol-stepper-done">Done</span><span className="sol-vh">: </span></span><span className="sol-stepper-t">Send dollars</span></a></li>
<li data-state="done"><a href="/developers/docs/quickstart/create-asset"><span className="sol-stepper-n">Step 3<span className="sol-vh">, </span><span className="sol-stepper-done">Done</span><span className="sol-vh">: </span></span><span className="sol-stepper-t">Create an asset</span></a></li>
<li data-state="current"><a href="/developers/docs/quickstart/send-asset" aria-current="step"><span className="sol-stepper-n">Step 4<span className="sol-vh">: </span></span><span className="sol-stepper-t">Send the asset</span></a></li>
<li data-state="todo"><a href="/developers/docs/quickstart/freeze-holder"><span className="sol-stepper-n">Step 5<span className="sol-vh">: </span></span><span className="sol-stepper-t">Freeze a holder</span></a></li>
</ol>
</div>
</div>

In this step you send 100 EXF, the asset from step 3, to a new holder. It's the
same instruction as sending dollars in step 2, for a different mint.

## Send the asset

Save this as `send-asset.ts` next to `client.ts` and run
`npx tsx send-asset.ts`. It reads the asset's address from `asset.json` (the
**CLI** tab uses `exf.json`).

<Tabs>
<Tab title="TypeScript">
<div className="sol-tab-label">TypeScript</div>

```ts
import { readFileSync } from "node:fs";
import {
  address,
  generateKeyPairSigner,
  writeKeyPairSigner,
} from "@solana/kit";
import { client, tokenBalance } from "./client";

// The asset you created in create-asset.ts.
const mint = address(JSON.parse(readFileSync("asset.json", "utf8")).mint);

// A new holder: a second wallet, saved in holder.json so step 5 can sign
// for it. In a real app, the holder keeps their own key.
const holder = await generateKeyPairSigner(true);
await writeKeyPairSigner(holder, "holder.json");

// Opens the holder's EXF token account, then moves 100 EXF
// (10,000 base units: EXF has 2 decimals) with TransferChecked.
const { context } = await client.token2022.instructions
  .transferToATA({
    mint,
    authority: client.identity,
    recipient: holder.address,
    amount: 10_000n,
    decimals: 2,
  })
  .sendTransaction();

console.log("Sent 100 EXF to", holder.address);
console.log("Signature:", context.signature);
console.log(
  `Explorer: https://explorer.solana.com/tx/${context.signature}?cluster=devnet`,
);
console.log("Holder balance:", await tokenBalance(holder.address, mint), "EXF");
```

<div className="sol-term not-prose" data-term="paths/start/quickstart/send-asset" data-tab="TypeScript" data-kind="block" data-steps="1" data-l-run="Run" data-l-run-step="Run step" data-l-next="Next step" data-l-all="Run all" data-l-again="Run again" data-l-running="Running…" data-l-tx="Sending transaction…" data-l-http="Requesting…" data-l-call="Running…" data-l-confirming="Confirming…" data-l-done="Done" data-l-copied="Copied" data-l-step="Step">
<div className="sol-term-head"><span className="sol-term-title">Output of npx tsx send-asset.ts</span><span className="sol-term-env">Local test network (Surfpool)</span><button type="button" className="sol-term-copy" data-act="copy">Copy</button></div>
<div className="sol-term-screen" role="region" tabIndex="0" aria-label="Output of npx tsx send-asset.ts: Output">
<div className="sol-term-step" data-step="1" data-pending="tx">
<div className="sol-term-row sol-term-cmd"><span className="sol-term-ps" aria-hidden="true">\$</span> npx tsx send-asset.ts</div>
<div className="sol-term-row sol-term-ln">Sent 100 EXF to <span className="sol-h" title="GtU8gbvgsAfARGxXTDnCaQPPRg2KHcVxiRF8ZxmLSstk"><span className="sol-h-f">GtU8gbvgsAfARGxXTDnCaQPPRg2KHcVxiRF8ZxmLSstk</span><span className="sol-h-s" aria-hidden="true">GtU8…Sstk</span></span></div>
<div className="sol-term-row sol-term-ln"><span className="sol-term-k">Signature\:</span> <span className="sol-h" title="27EnUyCoCpAxDBtdz8uD9YKCLwuy7Ps3RUNvN8FcgFB3LsE9ZbKpiPyqp4QSSGCwFBZBSvVfmmiWr8YoeVquCibK"><span className="sol-h-f">27EnUyCoCpAxDBtdz8uD9YKCLwuy7Ps3RUNvN8FcgFB3LsE9ZbKpiPyqp4QSSGCwFBZBSvVfmmiWr8YoeVquCibK</span><span className="sol-h-s" aria-hidden="true">27En…CibK</span></span></div>
<div className="sol-term-row sol-term-ln"><span className="sol-term-k">Explorer\:</span> `https://explorer.solana.com/tx/27EnUyCoCpAxDBtdz8uD9YKCLwuy7Ps3RUNvN8FcgFB3LsE9ZbKpiPyqp4QSSGCwFBZBSvVfmmiWr8YoeVquCibK?cluster=devnet`</div>
<div className="sol-term-row sol-term-ln">Holder <span className="sol-term-k">balance\:</span> 100 EXF</div>
<div className="sol-term-result"><span className="sol-term-badge" data-tone="ok">Confirmed</span></div>
</div>
</div>
<div className="sol-term-foot"><button type="button" className="sol-term-btn" data-act="run">Run</button><span className="sol-term-status"></span><span className="sol-term-sr" role="status"></span></div>
</div>

</Tab>
<Tab title="CLI">
<div className="sol-tab-label">CLI</div>

```bash
MINT=$(solana address -k exf.json)
solana-keygen new --no-bip39-passphrase -o holder.json  # the holder's wallet
spl-token transfer $MINT 100 holder.json \
  --fund-recipient --allow-unfunded-recipient
spl-token balance $MINT --owner holder.json
```

</Tab>
</Tabs>

The script prints a link to the transfer in Solana Explorer.

What the code does:

- `generateKeyPairSigner(true)` creates the holder: a second wallet.
  `writeKeyPairSigner` saves it in `holder.json`, so step 5 can sign for it. In
  a real app, each holder keeps their own key.
- `client.token2022.instructions.transferToATA(...)` builds two instructions:
  1. Open the holder's EXF token account, which they don't have yet. Your
     wallet pays its small deposit.
  2. Move 100 EXF: 10,000 base units, because EXF has 2 decimals. Like the
     USDC transfer, it's a `TransferChecked` instruction.
- `.sendTransaction()` sends both in one transaction, paid and signed by your
  wallet, and waits until it's confirmed.

The script prints `Holder balance: 100 EXF`. You now hold 900.

<div className="sol-concept not-prose">
[<span className="sol-concept-name">Token accounts</span> <span className="sol-concept-def">Wallets don't hold tokens directly.</span>](/developers/docs/tokens/basics/create-token-account)
</div>

<div className="sol-concept not-prose">
[<span className="sol-concept-name">Signatures</span> <span className="sol-concept-def">Every transaction is signed by the wallets it spends from.</span>](/developers/docs/core/transactions#signatures)
</div>
