An open API service indexing awesome lists of open source software.

https://github.com/makevoid/try-deno

trying deno - code sample - get the latest eth mainnet block number - dockerized
https://github.com/makevoid/try-deno

boilerplate code-sample deno dinatra docker docker-compose eth mainnet sample sinatra

Last synced: 3 months ago
JSON representation

trying deno - code sample - get the latest eth mainnet block number - dockerized

Awesome Lists containing this project

README

          

# try-deno

Trying out Deno's Dinatra (using JS)

This is a sample API that exposes an ethereum blockchain API (you can use it to read blocks information).

### Dependencies

- A Geth (go-ethereum) full node, exposing local rpc to localhost

The app queries a Geth / Ethereum node via its JSON RPC API.

### run

deno run --allow-net main.js

then visit http://localhost:8080/

### run with Docker

docker-compose up

then visit http://localhost/