starknetdata

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StarknetData

type StarknetData interface {
	BlockByNumber(ctx context.Context, blockNumber uint64) (*core.Block, error)
	BlockLatest(ctx context.Context) (*core.Block, error)
	BlockPending(ctx context.Context) (*core.Block, error)
	Transaction(ctx context.Context, transactionHash *felt.Felt) (core.Transaction, error)
	Class(ctx context.Context, classHash *felt.Felt) (core.Class, error)
	StateUpdate(ctx context.Context, blockNumber uint64) (*core.StateUpdate, error)
	StateUpdatePending(ctx context.Context) (*core.StateUpdate, error)
	StateUpdateWithBlock(ctx context.Context, blockNumber uint64) (*core.StateUpdate, *core.Block, error)
	StateUpdatePendingWithBlock(ctx context.Context) (*core.StateUpdate, *core.Block, error)
}

StarknetData defines the function which are required to retrieve Starknet's state

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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