# Pause Stream

Pause function stops the stream. After this, it will long as user will not resume this . In case the end time is crossed and stream is not resumed stream will be canceled and only the streamed amount will be withdraw able.

```
// Native Token

 const response = await native.pause({
      sender: 'J75jd3kjsABQSDrEdywcyhmbq8eHDowfW9xtEWsVALy9',
      receiver: "Av6xsgSrnM1UAj4pUZnEWM97iBphph69NPHE8J2ceeYs",
      escrow: "3FUiFXgde4EUsk9gJKxmSh11YN2z7KEW47TErGV8yidk",
 });
 console.log(response.message);
```

```
// SPL Token

const response = await token.pause({
      sender: 'J75jd3kjsABQSDrEdywcyhmbq8eHDowfW9xtEWsVALy9',
      receiver: "Av6xsgSrnM1UAj4pUZnEWM97iBphph69NPHE8J2ceeYs",
      escrow: "3FUiFXgde4EUsk9gJKxmSh11YN2z7KEW47TErGV8yidk",
      token_mint_address:'zebeczgi5fSEtbpfQKVZKCJ3WgYXxjkMUkNNx7fLKAF',
});
 console.log(response.message);

```


---

# Agent Instructions: 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://docs.zebec.io/zebec-solana/zebec-solana-sdk/streaming/pause-stream.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.
