GithubHelp home page GithubHelp logo

rarepress.node's Introduction

rarepress.node

Rarepress for Node.js

rarepress-origin

What is this?

Rarepress.node is a part of the rarepress stack that lets you mint NFTs from outside of the browser using node.js.

How is it different from rarepress.js?

rarepress.js is for running inside a browser, whereas rarepress.node is for running outside of browsers. Here are some differences:

  1. built-in wallet: Rarepress.node has a wallet built-in.
  2. multi identity: Rarepress.node lets you mint and trade from as many wallets as you want.
  3. automatic: Rarepress.node doesn't require manual signature approval so you can automatically mint as many NFTs as you want.

Install

npm install rarepress.node

Quickstart

Try the examples under the demo folder. First clone the repository:

git clone https://github.com/skogard/rarepress.node.git

Install the dependencies:

cd rarepress.node && npm install

And finally run each file in the folder to test. Here's an example:

node demo/tokenize

Syntax

Initialize

The only part different from rarepress.js is the initizlization step:

const Rarepress = require('rarepress-node')
const rarepress = new Rarepress()
await rarepress.init({
  key: <BIP44 derivation path (optional)>,
  host: <Rarepress host URL>
})
  1. key: (optional) The bip44 derivation path. If unspecified, it will use the default Ethereum key path of m'/44'/60'/0'/0/0.
  2. host: The rarepress host URL (see https://docs.rarepress.org/#/?id=init)

Usage

Once initialized, the syntax is EXACTLY the same as rarepress.js.

Read the documentation at https://docs.rarepress.org/.


Key Management

Rarepress uses a programmable wallet called mushie, to manage keys.

To directly interact with the wallet from the command line, install mushie globally.

npm install -g mushie

From this point on, you can run the commands directly:

  1. Export seed: mushie export
  2. Import seed: mushie import
  3. Generate random seed: mushie generate

rarepress.node's People

Contributors

skogard avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.