Skip to content

ethersphere/batch-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

batch-archive

Embeddable Go package that ships a gzipped NDJSON snapshot of Swarm postage batches (exported from the Postage Stamp contract on Gnosis Chain). Importing this package gives a Bee node access to the historical batch state without re-fetching it from the chain.

The snapshot is refreshed periodically via the chore: update snapshot to block number … commits.

Install

go get github.com/ethersphere/batch-archive

Usage

package main

import (
    archive "github.com/ethersphere/batch-archive"
)

func main() {
    data := archive.GetBatchSnapshot() // gzipped NDJSON bytes
    _ = data
}

The snapshot is generated by batch-export.

Maintainers

About

Embeddable Go package providing a periodic snapshot of Swarm postage batches as gzipped NDJSON.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages