All Projects → bonustrack → obyte.js

bonustrack / obyte.js

Licence: MIT License
A pure and powerful JavaScript Obyte library.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to obyte.js

ipfs-dag-builder-vis
See how the DAGs get built
Stars: ✭ 19 (-26.92%)
Mutual labels:  dag
go-pdu
Parallel Digital Universe - A decentralized social networking service
Stars: ✭ 39 (+50%)
Mutual labels:  dag
react-visual-modeling
A DAG React Component for visualization modeling, suitable for UML, database modeling, data warehouse construction.(一个基于React的数据可视化建模的DAG图,适用于UML,数据库建模,数据仓库建设等业务)
Stars: ✭ 96 (+269.23%)
Mutual labels:  dag
react-monitor-dag
A React-based operation/monitoring DAG diagram.(基于React的运维/监控DAG图)
Stars: ✭ 57 (+119.23%)
Mutual labels:  dag
hathor-core
HathorNetwork's fullnode core
Stars: ✭ 57 (+119.23%)
Mutual labels:  dag
django-postgresql-dag
Directed Acyclic Graphs with a variety of methods for both Nodes and Edges, and multiple exports (NetworkX, Pandas, etc). This project is the foundation for a commercial product, so expect regular improvements. PR's and other contributions are welcomed.
Stars: ✭ 23 (-11.54%)
Mutual labels:  dag
DaggerGpuMiner
Standalone GPU/CPU miner for Dagger coin
Stars: ✭ 21 (-19.23%)
Mutual labels:  dag
laravel-dag-manager
A SQL-based Directed Acyclic Graph (DAG) solution for Laravel.
Stars: ✭ 24 (-7.69%)
Mutual labels:  dag
algorithms
Algorithms in python and C
Stars: ✭ 71 (+173.08%)
Mutual labels:  dag
apollo
An experimental distributed ledger platform based on a sea of DAG Nodes
Stars: ✭ 33 (+26.92%)
Mutual labels:  dag
hamilton
A scalable general purpose micro-framework for defining dataflows. You can use it to create dataframes, numpy matrices, python objects, ML models, etc.
Stars: ✭ 612 (+2253.85%)
Mutual labels:  dag
obyte-hub
Hub for Obyte network
Stars: ✭ 17 (-34.62%)
Mutual labels:  dag
gitrunner
Упрощение работы с git из OneScript
Stars: ✭ 23 (-11.54%)
Mutual labels:  oscript
irac
Интерфейсная библиотека (oscript) к утилите администрирования кластера серверов 1С (rac).
Stars: ✭ 62 (+138.46%)
Mutual labels:  oscript
avrio-rs
Avrio's core code written in rust.
Stars: ✭ 14 (-46.15%)
Mutual labels:  dag
Slack-Stock-DAG
This repository holds a list of cool resources for Silica.
Stars: ✭ 94 (+261.54%)
Mutual labels:  dag
dag
Simple DSL for executing functions in Go
Stars: ✭ 85 (+226.92%)
Mutual labels:  dag
vue-dag
🏗 Data-driven directed acyclic graph (DAG) builder for Vue.js
Stars: ✭ 37 (+42.31%)
Mutual labels:  dag
findr
Fast Inference of Networks from Directed Regulations
Stars: ✭ 19 (-26.92%)
Mutual labels:  dag
lineage
Generate beautiful documentation for your data pipelines in markdown format
Stars: ✭ 16 (-38.46%)
Mutual labels:  dag

npm npm CircleCI GitHub license

Obyte.js

A pure and powerful JavaScript Obyte library.

Documentation

Getting started

To install and run Obyte.js, follow this quick start guide

Install

Obyte.js was designed to work both in the browser and in Node.js.

Node.js

To install Obyte.js on Node.js, open your terminal and run:

npm i obyte --save

Browser

You can create an index.html file and include Obyte.js with:

<script src="https://cdn.jsdelivr.net/npm/obyte"></script>

Usage

Ways to initiate WebSocket client:

const obyte = require('obyte');

// Connect to mainnet official node 'wss://obyte.org/bb'
const client = new obyte.Client();

// Connect to a custom node
const client = new obyte.Client('wss://obyte.org/bb');

// Connect to testnet
const options = { testnet: true };
const client = new obyte.Client('wss://obyte.org/bb-test', options);

Close the client:

client.close();

All API methods follow this pattern:

// If the last argument is a function it is treated as a callback
client.api.getJoint('oj8yEksX9Ubq7lLc+p6F2uyHUuynugeVq4+ikT67X6E=', function(err, result) {
  console.log(err, result);
});

// If a callback is not provided, a Promise is returned
client.api.getJoint('oj8yEksX9Ubq7lLc+p6F2uyHUuynugeVq4+ikT67X6E=').then(function(result) {
  console.log(result);
});

Transaction

To compose and post unit you need first to create a Obyte wallet and fund it with the native currency ‘bytes’. The generated WIF will be used on Obyte.js. Click on the link below to learn more:

Generate a random address

Sending a payment:

const wif = '5JBFvTeSY5...'; // WIF string generated (private key)

const params = {
  outputs: [
    {
      address: 'NX2BTV43XN6BOTCYZUUFU6TK7DVOC4LU', // The Obyte address of the recipient 
      amount: 1000 // The amount he receives
    }
  ]
};

client.post.payment(params, wif, function(err, result) {
  console.log(result); // The unit hash is returned
});

License

MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].