Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 804 Bytes

File metadata and controls

32 lines (21 loc) · 804 Bytes

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