All Projects → machinomy → Machinomy

machinomy / Machinomy

Node.js library for micropayments in Ether and ERC20 tokens over HTTP

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Labels

Projects that are alternatives of or similar to Machinomy

Interledger Rs
An easy-to-use, high-performance Interledger implementation written in Rust
Stars: ✭ 155 (-5.49%)
Mutual labels:  ethereum
Vault Ethereum
A plugin that turns Vault into an Ethereum wallet.
Stars: ✭ 159 (-3.05%)
Mutual labels:  ethereum
Sparkle Token
Sparkle Peer to Peer Ecosystem Built on Ethereum
Stars: ✭ 162 (-1.22%)
Mutual labels:  ethereum
Web3 By Example
Node.js with Web3 javascript examples for getting basic information (transactions, balances, network stats, and tokens) from the Ethereum blockchain.
Stars: ✭ 156 (-4.88%)
Mutual labels:  ethereum
Rainbowminer
GPU/CPU Mining script with intelligent profit-switching between miningpools, algorithms, miners, using all possible combinations of devices (NVIDIA, AMD, CPU). Features: actively maintained, uses the top actual miner programs (Bminer, Ccminer, Claymore, Dstm, EnemyZ, Sgminer, T-rex and more) easy setup wizard, webinterface, auto update.
Stars: ✭ 158 (-3.66%)
Mutual labels:  ethereum
Ico Contracts
Ethereum smart contracts that have been used during successful ICOs
Stars: ✭ 160 (-2.44%)
Mutual labels:  ethereum
Ethers.objc
Fast, simple and complete library for Ethereum in Objective-C.
Stars: ✭ 154 (-6.1%)
Mutual labels:  ethereum
Tokenbalance
Simple Ethereum API to get your ERC20 Token Balance along with useful information
Stars: ✭ 163 (-0.61%)
Mutual labels:  ethereum
Pymaker
Python API for Maker contracts
Stars: ✭ 158 (-3.66%)
Mutual labels:  ethereum
Curso blockchain
Indtroductory course to cryptocurrencies and applications of Blockchain technologies.
Stars: ✭ 161 (-1.83%)
Mutual labels:  ethereum
Telegram Kraken Bot
Python bot to trade on Kraken via Telegram
Stars: ✭ 156 (-4.88%)
Mutual labels:  ethereum
Prettier Plugin Solidity
Prettier plugin for Solidity
Stars: ✭ 156 (-4.88%)
Mutual labels:  ethereum
Basic Attention Token Crowdsale
Basic Attention Token
Stars: ✭ 160 (-2.44%)
Mutual labels:  ethereum
Lemon.email Dapp
Lemon dApp is a world's first encrypted & decentralized e-mail service.
Stars: ✭ 155 (-5.49%)
Mutual labels:  ethereum
Nimbus Eth2
Nim implementation of the Ethereum 2.0 blockchain
Stars: ✭ 162 (-1.22%)
Mutual labels:  ethereum
Protocol v1
[DEPRECATED] Solidity Smart Contracts for the dYdX V1 Margin Trading Protocol
Stars: ✭ 155 (-5.49%)
Mutual labels:  ethereum
Crowdfunding
基于区块链(以太坊)技术的安全众筹系统
Stars: ✭ 159 (-3.05%)
Mutual labels:  ethereum
Prysm
Go implementation of Ethereum proof of stake
Stars: ✭ 2,323 (+1316.46%)
Mutual labels:  ethereum
Evmone
Fast Ethereum Virtual Machine implementation
Stars: ✭ 162 (-1.22%)
Mutual labels:  ethereum
Kethereum
Kotlin library for Ethereum
Stars: ✭ 161 (-1.83%)
Mutual labels:  ethereum

Machinomy Monorepo Build Status Coverage Status Greenkeeper badge Chat

Machinomy Lerna Monorepo repository.

Available sub-projects:

  • Machinomy is a Node.js library for micropayments in Ether over HTTP. It allows you to send and receive a minuscule amount of money instantly.
  • Contracts is a TypeScript interface for Ethereum contracts managed by Truffle used by Machinomy.
  • Examples is Machinomy examples.
  • Playground contains code of playground.machinomy.com
  • cli is Machinomy Command Line Interface.
  • logger is Machinomy Logger. Works in browser and Node.
  • wraptso is Machinomy Wrapper for Truffle Contract.

Web site: machinomy.com. Twitter: @machinomy. Support/Discussion: Gitter. FAQ: GitHub Wiki Page.

Installation

Using yarn and Node.js v9 is mandatory (don't use npm!)

$ yarn add machinomy

The library supports mainnet, Ropsten, and Rinkeby networks.

Tinkering

It takes two to tango: a seller and a buyer. Seller is packages/examples/src/server.ts script. Build it or run through node-ts.

$ git clone https://github.com/machinomy/machinomy
$ cd machinomy && yarn install && yarn bootstrap && yarn build
$ node packages/examples/src/server.js

And then run client script:

$ node packages/examples/src/client.js

Usage

Buy

Using TypeScript

import Machinomy from 'machinomy'
const uri = 'http://localhost:3000/content'

const machinomy = new Machinomy(SENDER_ACCOUNT, web3)
const contents = await machinomy.buy({ receiver: RECEIVER_ACCOUNT, price: 100, gateway: 'http://localhost:3001/accept' })
console.log(contents)

Sell

The process is more convoluted than buying. Better consult packages/examples/src/server.ts file.

Sending payments through channels

$ git clone https://github.com/machinomy/machinomy
$ cd machinomy && yarn install && yarn bootstrap && yarn build && cd packages/examples
$ yarn run sender && yarn run receiver

Look at sender.ts and receiver.ts for more information.

Documentation

For more advanced documentation go to doc/ folder.

Contributing

Developers: Machinomy is for you. Feel free to use it, break it, fork it, and make the world better. The code is standard TypeScript, no special skills required:

$ yarn install && yarn bootstrap

Using yarn is mandatory (don't use npm!)

Apply migrations (eg. for PostgreSQL, refer packages/machinomy/database.json):

$ PGUSER=user PGPASSWORD=pass PGHOSTADDR=localhost PGDATABASE=dbname yarn migrate

Non-Developers: You are lovely. As a starter, help us spread the word! Tell a friend right now. If not enough, developers need flesh-world guidance. It starts with proper documentation and a pinch of fantasy. Really anything, whether it is a short post on a use case of IoT micropayments, addition to the documentation (code comments, yay!), or an elaborate analysis of machine economy implications. Do not hesitate to share any idea with us on Gitter.

License

Licensed under Apache License, Version 2.0.

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].