Skip to main content

Installation

Arseeding-js acts as a js SDK for Arseeding nodes, facilitating developers to develop nodeJS and web-side services.

GitHub Repo: https://github.com/permadao/arseeding-js.

npm i arseeding-js

Usage

Bundler in the node

import { genNodeAPI } from 'arseeding-js'
const instance = await genNodeAPI('YOUR PRIVATE KEY')

Bundler in the browser

ethereum

import { genAPI } from 'arseeding-js'
const instance = await genAPI(window.ethereum)

arweave

import { genArweaveAPI } from 'arseeding-js'
const instance = await genArweaveAPI(window.arweaveWallet)

Note: import { genAPI } is part of ES6 specification, you need to adjust package.json, otherwise it may not run the program correctly.

For more use cases, please refer to: SubmitData use cases, Manifest use cases.