jimmychu0807 / substrate-offchain-worker-demo

Fetching cryptocurrency prices using off-chain workers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Substrate Off-chain Worker Demo

This repository is built based on Substrate Node Template v3.0.0+monthly-2021-10.

The purpose is to demonstrate what off-chain worker could do, and how one would go about using it.

Run

  1. First, complete the basic Rust setup instructions.

  2. To run it, use Rust's native cargo command to build and launch the template node:

cargo run --release -- --dev --tmp
  1. To build it, the cargo run command will perform an initial build. Use the following command to build the node without launching it:
cargo build --release

Since this repository is based on Substrate Node Template, it's README applies to this repository as well.

About Off-chain Worker

About

Fetching cryptocurrency prices using off-chain workers

License:Do What The F*ck You Want To Public License


Languages

Language:Rust 98.5%Language:Nix 1.0%Language:Shell 0.5%