All Projects → polkadot-js → Client

polkadot-js / Client

Licence: apache-2.0
An alternative Polkadot Runtime Environment implementation acting as a full-node (excluding block production for validators) for syncing with Substrate-based chains.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Client

Gossamer
🕸️ Gossamer: A Go implementation of the Polkadot Host (WIP)
Stars: ✭ 207 (+152.44%)
Mutual labels:  p2p, wasm
cabasa
Haxe Framework for WebAssembly
Stars: ✭ 30 (-63.41%)
Mutual labels:  runtime, wasm
matchbox
Painless peer-to-peer WebRTC networking for rust wasm
Stars: ✭ 276 (+236.59%)
Mutual labels:  p2p, wasm
Lunatic
Lunatic is an Erlang-inspired runtime for WebAssembly
Stars: ✭ 2,074 (+2429.27%)
Mutual labels:  wasm, runtime
Fluence
Peer-to-peer computing protocol and licensing system
Stars: ✭ 453 (+452.44%)
Mutual labels:  p2p, wasm
Wasmtime Go
Go WebAssembly runtime powered by Wasmtime
Stars: ✭ 239 (+191.46%)
Mutual labels:  wasm, runtime
safenetwork-gitportal
p2p git portal - a decentralised alternative to github
Stars: ✭ 12 (-85.37%)
Mutual labels:  p2p, wasm
Wasm Micro Runtime
WebAssembly Micro Runtime (WAMR)
Stars: ✭ 2,440 (+2875.61%)
Mutual labels:  wasm, runtime
p2p-git-portal-poc
p2p git portal proof-of-concept using Svelte Golang/WASM (experimental)
Stars: ✭ 29 (-64.63%)
Mutual labels:  p2p, wasm
FISCO-BCOS
FISCO BCOS是由微众牵头的金链盟主导研发、对外开源、安全可控的企业级金融区块链底层技术平台。 单链配置下,性能TPS可达万级。提供群组架构、并行计算、分布式存储、可插拔的共识机制、隐私保护算法、支持全链路国密算法等诸多特性。 经过多个机构、多个应用,长时间在生产环境中的实践检验,具备金融级的高性能、高可用性及高安全性。FISCO BCOS is a secure and reliable financial-grade open-source blockchain platform. The platform provides rich features including group architecture, cross-chain communication protoc…
Stars: ✭ 1,603 (+1854.88%)
Mutual labels:  p2p, rpc
remote-lib
💫 Convert your JavaScript library to a remote service.
Stars: ✭ 40 (-51.22%)
Mutual labels:  p2p, rpc
Webrtc
Pure Go implementation of the WebRTC API
Stars: ✭ 8,399 (+10142.68%)
Mutual labels:  p2p, wasm
wapc-rust
Rust-based WebAssembly Host Runtime for waPC-compliant modules
Stars: ✭ 75 (-8.54%)
Mutual labels:  wasm, rpc
Wasmtime
Standalone JIT-style runtime for WebAssembly, using Cranelift
Stars: ✭ 6,413 (+7720.73%)
Mutual labels:  wasm, runtime
Waykichain
Public Blockchain as a Decentralized Finance Infrastructure Service Platform
Stars: ✭ 1,117 (+1262.2%)
Mutual labels:  p2p, wasm
Discordrpcvs
An extension for Visual Studio 2017 that enables Discord Rich Presence.
Stars: ✭ 77 (-6.1%)
Mutual labels:  rpc
Doomfire
DOOM fire implementation written in rust
Stars: ✭ 80 (-2.44%)
Mutual labels:  wasm
Datradio
p2p music player for {old} beaker and dat
Stars: ✭ 77 (-6.1%)
Mutual labels:  p2p
Seed Rs Realworld
Exemplary real world application built with Seed
Stars: ✭ 77 (-6.1%)
Mutual labels:  wasm
Js Dag Service
Library for storing and replicating hash-linked data over the IPFS network.
Stars: ✭ 81 (-1.22%)
Mutual labels:  p2p

polkadotjs license npm beta maintainability coverage

@polkadot/client

A JavaScript version of a Polkadot/Substrate network client. It allows operation in full and light nodes fullfilling all functions of chain operation, however does not include the ability to author blocks (i.e. run as a validator on the network).

Current status

This is the current status of the client -

  • It can sync and operate on Polkadot POC-3 networks, and has been tested against Alexander (Polkadot), Dried Danta (Substrate) as well as Edgeware networks.
  • It currently does not include much (if any) of the RPC interfaces - so it is not (currently) able to support eg. the apps UI connecting to it
  • It does not (currently) do any state and trie pruning, so the resulting backing database growth is not controlled
  • As of 0.19.1 the backing database has been swapped to LmDB, this interface is much faster than the previous implementation, however uses more disk space (follow-up from the previous point). Investigations are still ongoing as to the best fit for the backend DB engine.

Development overview

It is split up into a number of internal packages -

Local development node

Start the node with yarn run start <options>, e.g. yarn run start --chain dried-danta. You can use --help to get a list of the available options.

Running via docker

A docker image is built from the supplied Dockerfile, which includes the latest version as supported and deployed to the registry. To run via docker, the following commands can be used. (Split into lines for readability) -

docker run -d \
  --name dd \
  -p 60666:60666 \
  -v ~/db:/data \
  jacogr/polkadot-js-client:latest \
    --chain alexander \
    --db-path /data \
    --db-type file \
    --telemetry-name "some-cool-name-here"

Some additional expansion to the above -

  • docker -d runs the container as a daemon (skip as required)
  • docker --name specifies the name of the container in docker container ls
  • docker -p maps the p2p port externally (ensure the firewall is open on this)
  • docker -v uses the local host path ~/db as the data path, mapping it to the container itself.
  • For --chain either alexander or dried-danta are built-in options.
  • --db-type can be either file (default, experimental) or lmdb (experimental, more memory intensive).
  • Images are deployed to dockerhub, and we try to keep them current.

You can build your own container via the ./docker.sh script included which will use the latest available repo version to base an image on.

Contributing

  • Bootstrap the dependencies, yarn
  • Make any changes in the relevant package, on master merges new versions will be published automatically
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].