> For the complete documentation index, see [llms.txt](https://theblockchainchief.gitbook.io/web3stash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://theblockchainchief.gitbook.io/web3stash/services/helia.md).

# Helia

Dive into the specifics of connecting and using Helia with web3stash

## Initialization

To use Helia Client which actually allows you to connect to local or your own hosted helia providers you have to pass "HELIA" as the service name. No other name will work!

```javascript
const heliaClientService = Web3Stash("HELIA",{},{Helia APIconfig options})
```

## Configuration&#x20;

To use Helia in web3stash, you need to pass nothing, we will spawn a Helia node for you!

#### Optional Config Options

You can pass Helia configOptions for this service

## Methods Available

The following methods are available for this service, More will be added soon

* Uploading JSON data&#x20;

```javascript
heliaClientService.uploadJson({name:"example", url:"abc.com"}, {heiaClientOptions}).then().catch()
```

* Uploading Image

```javascript
heliaClientService.uploadImage("./image.png", {heliaClientOptions}).then().catch()
```

* Uploading Video

```javascript
heliaClientService.uploadVideo("./video.mp4", {heliaClientOptions}).then().catch()
```

* Uploading File

<pre class="language-javascript"><code class="lang-javascript"><strong>heliaClientService.uploadFile("./data.txt", {heliaClientOptions}).then().catch()
</strong></code></pre>

## Output

All the functions return id (cid) and metadata (data returned by the service on upload)

<pre class="language-javascript"><code class="lang-javascript"><strong>{id:"dewfnlpweurmwknrwiojhgcbxczz", metadata:{}}
</strong></code></pre>


---

# 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:

```
GET https://theblockchainchief.gitbook.io/web3stash/services/helia.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.
