protojson

package
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

README

Substreams Sink ProtoJSON

Example

  • Extract USDT events to ProtoJSONL of a 200 blocks range, in 100-blocks-chunks
    substreams sink protojson substreams_ethereum_usdt@v0.1.0 map_events -o ./output --filter=.transfers[] -n 100 -s 20000000 -t +200
    

Documentation

Index

Constants

View Source
const (
	FileTypeJSONL = writer.FileTypeJSONL
)

Re-export constants

Variables

View Source
var (
	NewFileSinker            = substreamsfile.NewFileSinker
	NewBundler               = bundler.New
	NewBufferedIO            = writer.NewBufferedIO
	NewProtoToJson           = encoder.NewProtoToJson
	NewFileStateStore        = state.NewFileStateStore
	FindMessageByNameInFiles = protox.FindMessageByNameInFiles
)

Re-export types and functions from substreams-sink-files/v2

Functions

func OutputMessageDescriptor

func OutputMessageDescriptor(sinker *sink.Sinker) (protoreflect.MessageDescriptor, error)

func OutputProtoreflectMessageDescriptor

func OutputProtoreflectMessageDescriptor(sinker *sink.Sinker) (protoreflect.MessageDescriptor, error)

Types

type Bundler

type Bundler = *bundler.Bundler

Re-export types

type Encoder

type Encoder = encoder.Encoder

Re-export types

type EncoderFunc

type EncoderFunc = encoder.EncoderFunc

Re-export types

type FileSinker

type FileSinker = *substreamsfile.FileSinker

Re-export types

type FileType

type FileType = writer.FileType

Re-export types

type Writer

type Writer = writer.Writer

Re-export types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL