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/everFinance/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

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

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: Bundle use cases, Manifest use cases.