Giter Site home page Giter Site logo

sachinsmc / ethblock-store Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 1.1 MB

This repository contains code related to Ethereum blockchain blocks detail store implementation.

License: MIT License

JavaScript 91.94% CSS 2.00% Shell 0.58% EJS 5.49%
ethereum web3 node blockchain infura

ethblock-store's Introduction

ethblock-store

This repository contains code related to Ethereum blockchain blocks detail store implementation.

Steps

Clone Repository

$ git clone [email protected]:sachinsmc/ethblock-store.git

Install dependencies.

$ cd ethblock-store

$ npm i

Create environment variable file

$ cp .example.env .env

update env values 

Start application

$ npm start or $ node --max-old-space-size=7096 ./bin/www

This will store latest 10k blocks transactions in Mongo DB

Test API endpoint : get transactions by a user

Method : GET

ENDPOINT AND HOST : localhost:3002/transactions/0x00cFBbaF7DDB3a1476767101c12a0162e241fbAD

Check using CURL if it works

$ curl -X GET \ http://localhost:3002/transactions/0x00cFBbaF7DDB3a1476767101c12a0162e241fbAD

This returns all the transactions done by user

ethblock-store's People

Contributors

sachinsmc avatar dependabot[bot] avatar deepsourcebot avatar

Stargazers

Roman avatar JU avatar

Watchers

James Cloos avatar  avatar

ethblock-store's Issues

(JS-0128) Should not have unused variables

Description

Variables that are declared and not used anywhere in the code are most likely an error due to incomplete refactoring. Such variables take up space in the code and can lead to confusion by readers. Example - The not-preferred way : ```js // It checks variables you have defined as …

Occurrences

There are 2 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/sachinsmc/ethblock-store/issue/JS-0128/occurrences/

(JS-D004) Found anonymous functions

Description

An anonymous function is a function without a name. An anonymous function is often not accessible after its initial creation. Anonymous functions can be used as an argument to other functions or as an immediately invoked function execution. Using anonymous functions is a bad practice because of the following reason: …

Occurrences

There are 14 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/sachinsmc/ethblock-store/issue/JS-D004/occurrences/

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.