Skip to content

Latest commit

 

History

History
21 lines (20 loc) · 447 Bytes

README.md

File metadata and controls

21 lines (20 loc) · 447 Bytes

Near lake framework on Golang

How to install

go get github.com/depocket/near-lake-framework-go

How to use

config := core.DefaultLakeConfigBuilder().
		      Mainnet().
	          SetStartBlockHeight(79075963).
	          SetBlocksPreloadPoolSize(100).
	          Build()
channel := core.Streamer(*config)
for {
    select {
    case message := <-channel:
        fmt.Println(message.Shards[0].Chunk.Receipts)
    }
}