steem-block-db/main.go

22 lines
281 B
Go
Raw Normal View History

2018-10-04 18:41:39 +00:00
package main
import (
"github.com/davecgh/go-spew/spew"
2018-10-18 08:39:41 +00:00
log "github.com/sirupsen/logrus"
2018-10-04 18:41:39 +00:00
)
2018-10-18 08:39:41 +00:00
const steemAPIURL = "https://api.steemit.com"
2018-10-18 07:09:30 +00:00
2018-10-04 18:41:39 +00:00
func main() {
2018-10-25 13:12:43 +00:00
2018-10-18 08:39:41 +00:00
s := NewSteemAPI(steemAPIURL)
2018-10-04 18:41:39 +00:00
2018-10-18 08:39:41 +00:00
r, err := s.GetOpsInBlock(20000000)
2018-10-04 18:41:39 +00:00
if err != nil {
log.Fatal(err)
}
spew.Dump(r)
}