ocean.js | 🦑 Ocean Protocol JavaScript library to privately & securely publish, exchange, and consume data | Blockchain library
kandi X-RAY | ocean.js Summary
kandi X-RAY | ocean.js Summary
JavaScript library to privately & securely publish, exchange, and consume data.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ocean.js
ocean.js Key Features
ocean.js Examples and Code Snippets
Community Discussions
Trending Discussions on ocean.js
QUESTION
I am just trying to clone this repo: https://github.com/oceanprotocol/react-tutorial
when I run the app I get the following stack trace:
...ANSWER
Answered 2020-Dec-14 at 06:14Looks like the package that this tutorial is using is now deleted. (Squid.js)
And regarding why its giving TypeError
because whatwg-url
is a dependency pacakge of squid.js and whatwg-url
is expecting an Object and its receiving undefined or null. May be squid.js internally calls some external url/api for creating an instance.
Instead of using :
import { Ocean } from '@oceanprotocol/squid'
.
Use this :
react-tutorial repo has not been updated to support the V3 version of ocean protocol : https://github.com/oceanprotocol/react-tutorial/issues/14
import { Ocean } from '@oceanprotocol/react'
NPM : npm install @oceanprotocol/react
https://www.npmjs.com/package/@oceanprotocol/react
Github Documentation : https://github.com/oceanprotocol/ocean.js
Hope this helps !! Cheers.
QUESTION
ANSWER
Answered 2020-Apr-11 at 11:38It seems the issue was with the version of blue ocean I had installed. I downgraded to 1.106. You can do the following to sort the issue.
Grab the 1.106. version of the plugin from Here
Then go to manage plugins > Advance > Upload Plugin and upload the 1.106 plugins and install it. All dependencies and indirect dependencies will also be satisfied with this version.
For more information check here
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ocean.js
Beginners guide - for developers who are completely new to blockchain, no coding experience is required.
Simple flow - the essence of Ocean - creating a data NFT & datatoken.
Marketplace flow - a data asset is posted for sale in a datatoken pool, then purchased. Includes metadata and Compute-to-Data.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page