> For the complete documentation index, see [llms.txt](https://tutorial.neoline.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tutorial.neoline.io/reference/neo3-provider-api/send.md).

# send

Sends an asset from one account to another and returns the transaction hash.

## Parameters

#### 1. asset *(required)*

`UInt160`

Asset or token contract hash.

#### 2. from *(required)*

`UInt160`

Sender account script hash.

#### 3. to *(required)*

`UInt160`

Receiver account script hash.

#### 4. amount *(required)*

`Integer`

Amount to transfer.

#### 5. data *(optional)*

`Argument`

Additional transfer data passed to the contract.

## Returns

`Promise<UInt256>`

The relayed transaction hash.

## Errors

| Code    | Name                 | Description                                        |
| ------- | -------------------- | -------------------------------------------------- |
| `10002` | `INVALID`            | One or more inputs are invalid.                    |
| `10003` | `NOTFOUND`           | The requested account or asset cannot be found.    |
| `10004` | `FAILED`             | Contract execution failed.                         |
| `10005` | `TIMEOUT`            | The request timed out.                             |
| `10006` | `CANCELED`           | The user rejected the transfer.                    |
| `10007` | `INSUFFICIENT_FUNDS` | The selected account does not have enough balance. |
| `10008` | `RPC_ERROR`          | The RPC server returned an error.                  |

## Example

### Request

```js
const txid = await provider.send(
  "0xd2a4cff31913016155e38e474a2c06d08be276cf",
  "0x9a7c5085dcdd4adf9ec12f2d1a7d6b741ad4b20a",
  "0x79f3ac32a7b68280da5cf4207139c7349261f7bd",
  "1",
  {
    type: "String",
    value: "neoline",
  },
);
```

### Response

```js
"0x1f4d1defa46faa5e7b9b8d3f79a06bec777d7c26c4aa5f6f5899a291daa87c15"
```


---

# 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, and the optional `goal` query parameter:

```
GET https://tutorial.neoline.io/reference/neo3-provider-api/send.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
