# Reddio NFT

Dive into the specifics of connecting and using INFURA with web3stash

## Initialisation

To use INFURA you have to pass "INFURA" as service name. No other name will work

```javascript
const infuraService = Web3Stash("INFURA",{projectId:"", projectSecret:""},{Infura APIconfig options})
```

## Configuration&#x20;

To use INFURA in web3stash, you need two things:

* projectId - Project Id from infura dashboard
* projectSecret - Project Secret from infura dashboard

Note: Use these name only while passing keys in object i.e, {projectId:"", projectSecret:""}

#### Optional Config Options

There are no configOptions for this service

## Methods Available

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

* Uploading Json data&#x20;

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

* Uploading Image

```javascript
infuraService.uploadImage("./image.png", {infuraServiceOptions}).then().catch()
```

* Uploading Video

```javascript
infuraService.uploadVideo("./video.mp4", {infuraServiceOptions}).then().catch()
```

* Uploading File

<pre class="language-javascript"><code class="lang-javascript"><strong>infuraService.uploadFile("./data.txt", {infuraServiceOptions}).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: 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/onestarkjs-library/services/reddio-nft.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.
