Joystream / Joystream/joystream
General Info: For Exchanges Integration
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
# Joystream - L1 Substrate based chain
# Running a Joystream node
## Native binary
Download latest version for your platform from https://github.com/Joystream/joystream/releases
```
curl -L -o joystream-node.tar.gz \
https://github.com/Joystream/joystream/releases/download/v12.2004.0/joystream-node-8.7.0-87e2e24bf88-x86_64-linux-gnu.tar.gz
tar xzf joystream-node.tar.gz
```
Run a full public node
```
./joystream-node \
--pruning archive
--ws-external
--rpc-external
--rpc-methods Safe
--rpc-cors all
--chain joy-mainnet
```
## Docker compose
```
services:
joystream:
image: joystream/node:latest
command: >
--pruning archive
--ws-external
--rpc-external
--rpc-methods Safe
--rpc-cors all
--base-path /chain
--chain joy-mainnet
ports:
- "127.0.0.1:9944:9944" # Websocket JSON-RPC
- "127.0.0.1:9933:9933" # HTTP JSON-RPC
- 30333:30333
volumes:
- ./joystream:/chain
```
## From source
https://github.com/Joystream/joystream/tree/master/bin/node
## Test/Development node
To run a local development node remove the argument `--chain joy-mainnet` and replace it with `--dev`
# RPC interfaces on joystream node
The RPC nodes use JSON-RPC message protocol: https://www.jsonrpc.org/specification
RPC Call reference
https://polkadot.js.org/docs/api
https://polkadot.js.org/docs/substrate/rpc
RPC is available over two transports, Websocket and HTTP
## Websocket Transport - by default on port 9944
Local node: `ws://127.0.0.1:9944`
Public endpoint: wss://rpc.joystream.org
## HTTP Transport - by default on port 9933
Local node: `http://127.0.0.1:9933`
Public endpoint: https://http-rpc.joystream.org
# REST API - Sidecar
Public endpoints:
API Endpoint https://api-sidecar.joystream.org
API Docs https://docs-sidecar.joystream.org
## Running a local sidecar using public rpc endpoint
```
docker run --rm --read-only -e SAS_SUBSTRATE_URL=wss://rpc.joystream.org \
-p 8080:8080 parity/substrate-api-sidecar
```
# Libraries and Tools
### Javascript/Typescript
Most upto-date and well maintained library for interacting with Polkadot/Substrate base networks
https://wiki.polkadot.network/docs/build-tools-index#polkadot-js-api
### Python
https://github.com/polkascan/py-substrate-interface
Joystream metadata docs: https://polkascan.github.io/py-substrate-metadata-docs/joystream-node
### Cli Tools
https://github.com/polkadot-js/tools/tree/master/packages/api-cli
https://github.com/polkadot-js/tools/tree/master/packages/signer-cli
### Java
Library doesn't appear to be very well maintained and is possibly out of date.
We do not have experience using it.
https://github.com/strategyobject/substrate-client-java
# Example code
https://github.com/mnaamani/joystream/tree/code-examples/utils/api-scripts
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.