Skip to content

depocket/near-lake-framework-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
    }
}