0.0.18 • Published 5 years ago

nanoconnect v0.0.18

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

Nano Connect

What is it

Nano Connect is a relay server that allows you to use the RPC server from a browser or from a terminal without any costs.

How it works

It works by having people run a Nano Node and a Nano Connect server. The Nano Connect server is listening on many WebRTC ports and is discovered by seeding itself on the Bittorrent network. People find your Nano Server by connecting to the Bittorent tracker and asking for a peer. Once you've connected to a peer(A Nano Connect Server) you disconnect from the bittorent tracker and you then send your RPC commands to the Nano Connect Server and it will relay them to the Nano Node.

How Nano Connect works

Goal

To make accessing a Nano Node completely free by allowing people to run a Nano client that can have a intermediate connection. Think folding@home but for Nano.

Getting started

1. Getting a node started

# main totorial
# https://docs.nano.org/running-a-node/node-setup/

# First you have to get nano docker container
docker pull nanocurrency/nano

# Then run the network
docker run --restart=unless-stopped -d \
  -p 7075:7075/udp \
  -p 7075:7075 \
  -p [::1]:7076:7076 \
  -p [::1]:7078:7078 \
  -v ${NANO_HOST_FOLDER}:/root \ #This folder will hold a VM's data
  --name nano_server \
  nanocurrency/nano:latest 

# Then your going to have to wait for the server to fully bootstrap itself.

2. Running

# install dependencies
npm install

# start the server
node ./examples/serverExample.js

Debug

Logs

Turn on with node logging with DEBUG=NSindexInfo,NSindexError node ./examples/serverExample.js

  • NSIndexInfo #stands for NanoClientIndexInfo
  • NSIndexError
  • NSindexInfo
  • NSindexError

start own bittorent-tracker

bittorrent-tracker
# ws://localhost:8000

Librarys Fundimental to make this work.

0.0.17

5 years ago

0.0.18

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.12

5 years ago

0.0.13

5 years ago

0.0.10

5 years ago

0.0.11

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago