@scintilla-network/ndk
v1.0.1
Published
Network Development Kit
Readme
ts-ndk
Network Development Kit
Primitives
Miner
PeerManager
RESTServer
SeedManager
TCPServer
Validator
Used to validate a cluster.
NetworkInfo
Simple utility to ease the acquisition of the internal and external ip addresses.
static NetworkInfo.getInternalIp('ipv4');
static NetworkInfo.getInternalIp('ipv6');
static NetworkInfo.getExternalIp('ipv4');
static NetworkInfo.getExternalIp('ipv6');
static NetworkInfo.computeNetworkInfo();Peer
Stack
Primitives that is able to be attached to a peer as a way to transform data into STAction messages parsed.
const stack = new Stack();
const messages = stack.push(uintData);