{"modulePath":"github.com/onflow/flow-archive","version":"v0.31.9-decrease-wait-interval","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package chain\n\n## Types\n\n```go\ntype Disk struct {\n\t// contains filtered or unexported fields\n}\n```\nDisk is a component used to access chain data from a badger database.\n\n```go\nfunc FromDisk(db *badger.DB) *Disk\n```\nFromDisk returns a new Disk chain that uses the given badger database.\n\n```go\nfunc (d *Disk) Collections(height uint64) ([]*flow.LightCollection, error)\n```\nCollections retrieves the collections at the given height.\n\n```go\nfunc (d *Disk) Commit(height uint64) (flow.StateCommitment, error)\n```\nCommit retrieves the state commitment at the given height.\n\n```go\nfunc (d *Disk) Events(height uint64) ([]flow.Event, error)\n```\nEvents retrieves the events at the given height.\n\n```go\nfunc (d *Disk) Guarantees(height uint64) ([]*flow.CollectionGuarantee, error)\n```\nGuarantees retrieves the guarantees at the given height.\n\n```go\nfunc (d *Disk) Header(height uint64) (*flow.Header, error)\n```\nHeader retrieves the block header at the given height.\n\n```go\nfunc (d *Disk) Results(height uint64) ([]*flow.TransactionResult, error)\n```\nResults retrieves the results at the given height.\n\n```go\nfunc (d *Disk) Root() (uint64, error)\n```\nRoot retrieves the root height of the chain.\n\n```go\nfunc (d *Disk) Seals(height uint64) ([]*flow.Seal, error)\n```\nSeals retrieves the seals at the given height.\n\n```go\nfunc (d *Disk) Transactions(height uint64) ([]*flow.TransactionBody, error)\n```\nTransactions retrieves the transactions at the given height.\n\n","path":"github.com/onflow/flow-archive/service/chain","name":"chain","synopsis":"","isRedistributable":true}
