Code Monkey home page Code Monkey logo

block-expoler's Introduction

Install on my ABT Node

Install on my ABT Node

Block Expoler

a bitcoin block exploer build by react

frontend 

  • setup by create-react-app
  • use new code style hock functions
  • use material-ui
  • display bitcoin block data (some fields are not returned from the API, I left blank there)
  • transaction pagination (the API does not return fee's descrption, just hardcode there *****  174.312 sat/B - 79.516 sat/WU - 536 bytes *******)

dev

npm run dev

build

npm run build

run test (uncomplete)

  the test will find the text input, and then put a block hash, wait for the data loading and then check if the block data is matched the input

backend (experiment with koa js and in process)

since the block info api not returning all the information, I set up this server to combine all the api the purpose of building this backend is to build the following api

GET rawBlock/:block

return basic block data,use anyway and combine result all-in-one object for example,  to calculate the confirmations need the block count from https://blockchain.info/q/getblockcount the difficulty not return from the api, but can get from the bitcoin-cli

$ bitcoin-cli getblockheader 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
{
  ...
  "height": 0,
  ...
  "bits": "1d00ffff",
  "difficulty": 1,
  ...
}

also, the backend can server the frontend's build directory as an dapp.

block-expoler's People

Contributors

dependabot[bot] avatar ezioruan avatar

Watchers

 avatar  avatar  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.