Giter Site home page Giter Site logo

tx-indexer's Introduction

tx-indexer

Usage

go run index.go -bitcoind=http://<bitcoind endpoint>:8332 -prune=12

CMD

  -bind string
    	 (default "0.0.0.0:9096")
  -bitcoind string
    	bitcoind endpoint (default "http://localhost:8332")
  -prune int
    	prune blocks (default 4)
  -wsbind string
    	websocket bind (default "0.0.0.0:9099")

WS endpoint

ws://localhost:9099/ws
  • watch/unwatch txs of index address
{"action":"watchTxs","address":"1Fi9J5TeaWPHdU5cTJ4e9jr3V58SrWtUuT"}
{"action":"unwatchTxs","address":"1Fi9J5TeaWPHdU5cTJ4e9jr3V58SrWtUuT"}
  • get txs of index address
{"action":"getTxs","address":"1Fi9J5TeaWPHdU5cTJ4e9jr3V58SrWtUuT"}

Build

$ docker build -t index .

RUN

$ docker run -d \
    --restart=always \
    --name index \
    -p 9096:9096 \
    index \
    -prune=12 \
    -bitcoind http://172.17.0.1:8332

bitcoind-node

mainnet

$ chmod +x scripts/docker_bitcoind.sh && scripts/docker_bitcoind.sh

testnet

$ chmod +x scripts/docker_bitcoind_testnet.sh && scripts/docker_bitcoind_testnet.sh

tx-indexer's People

Contributors

syrohei avatar

Watchers

James Cloos 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.