Skip to content

💰 Go API with the GIN framework to live stream ethereum transactions

License

Notifications You must be signed in to change notification settings

baakeydow/eth-streamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eth-streamer

Go API with the GIN framework to live stream ethereum transactions

Simple project I made to learn about Goroutines

Setup

Edit getEthClient in transactions => replace rawurl parameter with something like wss://mainnet.infura.io/ws/v3/xxxxxxxxxxx

go mod tidy && go install

Dev

GIN_MODE=debug go run .

Prod

go build . && GIN_MODE=release ./eth-streamer.com

Trigger stream

curl -s -D "/dev/stderr" http://localhost:8080/tx-start \
 --include \
 --header "Content-Type: application/json"

Get latest TX

curl -D "/dev/stderr" http://localhost:8080/transactions`

About

💰 Go API with the GIN framework to live stream ethereum transactions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages