Skip to content

Bridge component to forward data requests between Ethereum contracts and Witnet

License

Notifications You must be signed in to change notification settings

funfun-zaszas/ffzz-bridge

Repository files navigation

ffzz-bridge

Bridge component to forward data requests between Ethereum contracts and Witnet

Requirements

pip3 install msgpack toml web3

Usage

  • Run witnet node
  • Update config.toml
  • Run bridge:
# Event watcher, will block waiting for a PostDataRequest event
python3 wbi_watch.py

# Post a data request
# (can be skipped if the data request will be posted externally)
python3 wbi_post.py data_requests/air_quality.json

By default it will use the local ethereum testnet. This can be changed by setting the ethereum client address as an environment variable:

export WEB3_PROVIDER_URI="http://127.0.0.1:8545"

About

Bridge component to forward data requests between Ethereum contracts and Witnet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages