Eueno
  • EUENO – Decentralized Encrypting Blockchain Oracles for Web3
    • Litepaper
    • Use Cases
  • Get Started
    • Prerequisites
    • Buckets
      • Create a bucket
      • Delete a bucket
    • Files
      • Upload a file
      • View a file
      • Delete a file
      • Share a file
  • Pricing
  • Eueno libraries
    • @eueno/lib-browser
      • Installation
      • Setup
      • Create key (generate a key for encrypting the file(s))
      • login()
      • useEuenoContext()
      • getUserInfo()
      • updateUserInfo()
      • createProject()
      • getProjectInfo()
      • getProjects()
      • getFilesListByFolder()
      • deleteProject()
      • createFolder()
      • uploadFolder()
      • Get folder detail
      • deleteFolder()
      • uploadFile()
      • uploadFileWithSignedUrl()
      • getCid()
      • getFileById()
      • getFileListById()
      • Get file detail
        • getDetailFile()
        • getDetailUnencryptedFile()
        • getDetailEncryptedFile()
      • getDetailMultiEncryptedFiles()
      • deleteFile()
      • shareFile()
      • shareMultiFile()
      • deleteSharePermission()
      • getShareList()
      • getShareListToMe ()
    • @eueno/lib-node
      • Create eueno client
      • Create project key
      • Create project
      • Upload file
      • Upload folder
      • Get file
      • Get list file
      • Share file
      • Get shared files
      • Create folder
      • Create Account
      • Decrypt Get Key Aes
      • Decrypt File by Key Aes
  • Policies
    • Privacy Policy
    • Terms of Service
Powered by GitBook
On this page
  • 1. initEndpoint()
  • Syntax
  • Parameters
  • 2. Adding EuenoProvider
  • Example
  1. Eueno libraries
  2. @eueno/lib-browser

Setup

1. initEndpoint()

First, you have to initialize the endpoint of API.

Syntax

initEndpoint: (_endpoint: string, _webseedUrl?: string)

Parameters

Name
Type
Required
Description

_endpoint

string

Yes

_webseedUrl

string

No

Webseed URL. Default value is:

2. Adding EuenoProvider

We will enable eueno library services by rendering a <EuenoProvider> component around our entire <App>.

Example

Let's add that to our App.js file:

import React from "react";
import { EuenoProvider, initEndpoint } from "@eueno/lib-browser";
import { Test } from "./Test";
const ENDPOINT = "https://v2-developers.eueno.io/";

function App() {
  useEffect(() => {
    initEndpoint(ENDPOINT);
  }, []);
  
  return (
    <EuenoProvider>
      <Test />
    </EuenoProvider>
  );
}

export default App;
PreviousInstallationNextCreate key (generate a key for encrypting the file(s))

Last updated 2 years ago

Endpoint of API. You can get the endpoint from

https://node1-gateway-ipfs.eueno.io/ipfs/
here
.