Giter Club home page Giter Club logo

algostreamer's Introduction

AlgoNode algostreamer utility

About algostreamer

Small utility to stream past and/or current Algorand node JSON blocks to Redis or stdout. Blocks and TXn can be filtered and transformed and redirected using REGO - an Open Policy Agent language.

About AlgoNode

We are here to help your Algorand node shine! Go to https://algonode.cloud for more.

Install

go get github.com/algonode/algostreamer

Config

config.jsonc

{
  // archival or catchup Algorand node config
  // setup serveral nodes to fetch from the fastest one or failover
  "algod": {
    "queue": 100, // buffer up to this number of blocks when processing history
    "nodes": [
      {
        "id": "private-node",
        "address": "http://localhost:8180",
        "token": "..."
      },
      {
        "id": "public-node",
        "address": "https://mainnet-api.algonode.cloud",
      }

    ]
  },
  "sinks": {
    // redis server config
    "redis": {
      "addr": "localhost:6379",
      "user": "",
      "pass": "",
      "db": 0
    },
  },
}
  • You can find your token in node/data/algo.token
  • You can find your address in node/data/alogo.net

Run

Start streaming from the current block

./algostreamer -f config.jsonc -s 2>error.log

Start streming from the block no 18000000 and then continue with current blocks

./algostreamer -r 18000000 -f config.jsonc -s 2>error.log

License

Copyright (C) 2022 AlgoNode Org.

algostreamer is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Support AlgoNode

if you like what we do feel free to support us by sending some microAlgos to

AlgoNode wallet: ALGONODEIBJTET5OSEAXIHDSIEG7C2DOFB2WDYLRZTXN3NXVJ3NJD26L4E

algostreamer's People

Contributors

urtho avatar wolffshots avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.