> For the complete documentation index, see [llms.txt](https://smartscenarios.pirichain.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smartscenarios.pirichain.com/psce-functions/sendtoken.md).

# sendToken

{% code overflow="wrap" lineNumbers="true" %}

```javascript
const result = await Transaction.sendToken(<Receipt Address:Base58>,<amount:integer | float >, <assetID:integer>);
```

{% endcode %}

System creates a new internal transaction which has type 9 when above code executed. So Type 9 transactions cannot move to other nodes. Because Only moving transactions type are -1. We described this point on      [this page](/generating-a-new-transaction-though-psce.md).

**Example:**

{% code overflow="wrap" lineNumbers="true" %}

```javascript
const result = await Transaction.sendToken('PRTMPp6wo6zGAcStmhmBGQErnomzhFCoaTfLuXKTvo2',10.1, -1);
```

{% endcode %}

As we see above sample, first parameter PIRI Address that must be match PIRI Address strandarts. 2nd parameter amount ,3rd assetID (PIRI coin asset ID :-1)

**Response:**

```json
{
    "executedResult":{},
    "error":0,
    "tx":"a1149d13cc98521e2711f4f033d99f93876c507739774986e08f0574a89e7d9d",
    "sign":"3045022054d25f4efa52bcf78558854ad49f60d06955f01476a7de41bd5c6a4893d980e1022100d214cb6a377813b392847532ebaa85bc7f7ca9d99ab12003be5471471e3b3a7d",
    "timeStamp":1705185399375
}
```


---

# 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://smartscenarios.pirichain.com/psce-functions/sendtoken.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.
