Chainsync

a framework for streaming blockchain transactions/operations into other mediums
Alternatives To Chainsync
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Awesome Blockchain Kor235
3 years agoPython
<블록체인의 정석>, <하이퍼레저 블록체인 개발> 소스코드 및 참고자료 저장소
Chiccocoin178
5 years ago2wtfplJavaScript
Chicco Coin: Learn what is a blockchain by creating one
Awesome Chainlink99
3 years ago3
Sharder Chain40
a year ago1otherJava
A blockchain-based multi-chain notary and storage network
Instagram34
a year ago37JavaScript
Create an Instagram-like DApp with IPFS
React_ethereum_tutorial29
4 months agoJavaScript
Connecting a React frontend with the Ethereum blockchain using Remix, Metamask and a text-editor.
Cryptovipers23
2 years ago15JavaScript
Create an CryptoKitties-like DApp
Block Track22
5 years agoTypeScript
Blockchain application
Blockchain Spv192194 years ago45January 25, 201998JavaScript
:black_medium_small_square::black_medium_small_square::black_medium_small_square: Stores blockchain headers and verifies transactions with SPV
Crowdfunding16
a year ago2Vue
Creating a Simple Crowdfunding Dapp with Ethereum Solidity and Vue.js
Alternatives To Chainsync
Select To Compare


Alternative Project Comparisons
Readme

ChainSync

PyPI GitHub issues Build Status

A simple library to stream blocks and operations for digesting into other mediums.

Install

pip install chainsync

Requirements

pip install -r requirements.txt

Example - streaming blocks

from chainsync import ChainSync
from chainsync.adapters.steemv2 import SteemV2Adapter

adapter = SteemV2Adapter(endpoints=['https://api.steemit.com'])
chainsync = ChainSync(adapter)

for dataType, data in chainsync.stream(['blocks']):
    print("{} - {}".format(data['block_num'], data['witness']))

Example - streaming operations

from chainsync import ChainSync
from chainsync.adapters.steemv2 import SteemV2Adapter

adapter = SteemV2Adapter(endpoints=['https://api.steemit.com'])
chainsync = ChainSync(adapter)

for dataType, data in chainsync.stream(['ops']):
    print("{} - {}".format(data['block_num'], data['operation_type']))

Example - streaming operations with a whitelist

from chainsync import ChainSync
from chainsync.adapters.steemv2 import SteemV2Adapter

adapter = SteemV2Adapter(endpoints=['https://api.steemit.com'])
chainsync = ChainSync(adapter)

for dataType, op in chainsync.stream(['ops'], whitelist=['vote']):
    print("{} - {} by {}".format(op['block_num'], op['operation_type'], op['voter']))

Example - custom adapters

A custom adapter can be supplied to allow parsing of a specific blockchain

from chainsync import ChainSync
from chainsync.adapters.decent import DecentAdapter

adapter = DecentAdapter(endpoints=['http://api.decent-db.com:8090'])
chainsync = ChainSync(adapter)

for block in chainsync.stream(['blocks']):
    print("{} - {}".format(block['block_num'], block['witness']))

Adapters

Adapters can be added and configured to allow access to other similar blockchains.

A current list of adapters can be found in the ./chainsync/adapters folder.

Popular Medium Projects
Popular Blockchain Projects
Popular Content Management Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Python
Blockchain
Transaction
Adapter
Streaming
Medium
Json Rpc
Steem