> 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/postdata.md).

# postData

```javascript
const externalResult=await Transaction.postData(<url:string>,<dataBody:string>,<options:string>);
```

This method provides to post data to external environments.

**Sample:**

```javascript
const dataBody={name:'myname',surname:'mySurname'};

const allCoffee=await Tools.postData("https://api.sampleapis.com/coffee/hot",
JSON.stringify(dataBody));
```

**Response:**

```json
{
    result:1,
    message:'Your Request has been proceed'
}
```
