All Projects → hectorchu → nano-payment-server

hectorchu / nano-payment-server

Licence: BSD-3-Clause License
A payment server for NANO

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to nano-payment-server

reblocks
React Components for Nano cryptocurrency (formerly RaiBlocks) - including Payments via Brainblocks
Stars: ✭ 21 (+5%)
Mutual labels:  nanocurrency
nano-update-tx-work
Rebroadcast unconfirmed Nano transactions with higher proof-of-work (PoW) to help restart expired elections.
Stars: ✭ 14 (-30%)
Mutual labels:  nanocurrency
nanook
Ruby library for making and receiving payments and managing a nano currency node
Stars: ✭ 17 (-15%)
Mutual labels:  nanocurrency
nano-rs
An implementation of Nano in Rust using Tokio
Stars: ✭ 29 (+45%)
Mutual labels:  nanocurrency
gonano-gui
GUI for the Gonano Nano wallet
Stars: ✭ 27 (+35%)
Mutual labels:  nanocurrency
nano distributed pow client
No description or website provided.
Stars: ✭ 13 (-35%)
Mutual labels:  nanocurrency
MyNanoNinja
The perfect tool for Nano representatives lists and network statistics
Stars: ✭ 33 (+65%)
Mutual labels:  nanocurrency
Nault
⚡ The most advanced Nano wallet with focus on security, speed and robustness
Stars: ✭ 228 (+1040%)
Mutual labels:  nanocurrency
RaiBlocksWebAssemblyPoW
WebAssembly Nanocurrency PoW implementation
Stars: ✭ 33 (+65%)
Mutual labels:  nanocurrency
nanolib
Python library for working with the NANO cryptocurrency protocol
Stars: ✭ 63 (+215%)
Mutual labels:  nanocurrency
jNano
A comprehensive Java library for the Nano cryptocurrency.
Stars: ✭ 25 (+25%)
Mutual labels:  nanocurrency
RaiBlocksPHP
A bunch of PHP methods to build and sign transactions
Stars: ✭ 20 (+0%)
Mutual labels:  nanocurrency
nano-workspace
A workspace for Nano coin development
Stars: ✭ 23 (+15%)
Mutual labels:  nanocurrency
nano-node-docker
Setup a fully automated NANO cryptocurrency node as part of an dockerized stack with fast-syncing and easy SSL support.
Stars: ✭ 77 (+285%)
Mutual labels:  nanocurrency
Nano.Net
A .NET library for Nano
Stars: ✭ 19 (-5%)
Mutual labels:  nanocurrency
Nano Node
Nano is a cryptocurrency
Stars: ✭ 3,336 (+16580%)
Mutual labels:  nanocurrency

nano-payment-server

This is a server for processing NANO payments in conjunction with a node.

Install

go get -u github.com/hectorchu/nano-payment-server

Usage

-cb string
      Callback URL when payment is fulfilled
-db string
      Path to DB (default "./data.db")
-p int
      Listen port (default 7080)
-pow string
      RPC Proof-of-Work URL
-rpc string
      RPC URL (default "http://[::1]:7076")
-ws string
      WebSocket URL (default "ws://[::1]:7078")

Mode of operation

The operator's regular server software (perhaps an e-commerce platform) will send a request to this server (/payment/new) with a JSON body containing the NANO account to receive on and the amount receivable. In response they will receive a payment id. The payment URL which should be sent to the payer will then be /payment/pay?id=<id>. The payer's wallet should POST in JSON format a signed block (minus proof-of-work) to this URL. This server will then validate the block, calculate the proof-of-work and send the block on the network. The operator's server can be notified of successful payment via a callback URL.

Running the demo

  • Run the payment server: go run .
  • Compile the frontend: cd demo && GOOS=js GOARCH=wasm go build -o public/main.wasm ./frontend && gzip -f public/main.wasm
  • Run the demo server (from directory demo): go run .
  • The server can be accessed from a web browser on port 8080.
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].