Skip to content

Commit

Permalink
add: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Himitsuko committed Nov 28, 2022
1 parent 3898103 commit d29f0fe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 32 deletions.
32 changes: 0 additions & 32 deletions .local/main.go

This file was deleted.

21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Near lake framework on Golang
## How to install
```
go get github.com/depocket/near-lake-framework-go
```

## How to use
```golang
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)
}
}
```

0 comments on commit d29f0fe

Please sign in to comment.