api

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventsFilter added in v0.3.0

type EventsFilter struct {
	FromBlock string
	ToBlock   string
	Address   *types.Address
	Topics    []types.Hash
}

EventsFilter contains the events filter.

func (*EventsFilter) MarshalJSON added in v0.3.0

func (e *EventsFilter) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*EventsFilter) String added in v0.4.0

func (e *EventsFilter) String() string

String returns a string version of the structure.

func (*EventsFilter) UnmarshalJSON added in v0.4.0

func (e *EventsFilter) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Issuance added in v0.2.1

type Issuance struct {
	BlockReward *big.Int
	UncleReward *big.Int
	Issuance    *big.Int
}

Issuance contains issuance for a block.

func (*Issuance) MarshalJSON added in v0.2.1

func (i *Issuance) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*Issuance) String added in v0.2.1

func (i *Issuance) String() string

String returns a string version of the structure.

func (*Issuance) UnmarshalJSON added in v0.2.1

func (i *Issuance) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type SyncState added in v0.2.0

type SyncState struct {
	CurrentBlock  uint32
	HighestBlock  uint32
	StartingBlock uint32
	Syncing       bool
}

SyncState contains the sync state.

func (*SyncState) MarshalJSON added in v0.2.0

func (s *SyncState) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*SyncState) String added in v0.2.0

func (s *SyncState) String() string

String returns a string version of the structure.

func (*SyncState) UnmarshalJSON added in v0.2.0

func (s *SyncState) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type TransactionResult

type TransactionResult struct {
	Output          []byte
	StateDiff       map[types.Address]*TransactionStateDiff
	TransactionHash types.Hash
}

TransactionResult contains the result of a transaction.

func (*TransactionResult) MarshalJSON

func (t *TransactionResult) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*TransactionResult) String

func (t *TransactionResult) String() string

String returns a string version of the structure.

func (*TransactionResult) UnmarshalJSON

func (t *TransactionResult) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type TransactionStateChange

type TransactionStateChange struct {
	From *big.Int
	To   *big.Int
}

TransactionStateChange is a change to state, from one value to another.

func (*TransactionStateChange) MarshalJSON

func (t *TransactionStateChange) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*TransactionStateChange) String

func (t *TransactionStateChange) String() string

String returns a string version of the structure.

func (*TransactionStateChange) UnmarshalJSON

func (t *TransactionStateChange) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type TransactionStateDiff

type TransactionStateDiff struct {
	Output  []byte
	Balance *TransactionStateChange
	Nonce   *TransactionStateChange
	Storage map[types.Hash]*TransactionStorageChange
}

TransactionStateDiff contains the changes made to a balance as a result of a transaction.

func (*TransactionStateDiff) MarshalJSON

func (t *TransactionStateDiff) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*TransactionStateDiff) String

func (t *TransactionStateDiff) String() string

String returns a string version of the structure.

func (*TransactionStateDiff) UnmarshalJSON

func (t *TransactionStateDiff) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type TransactionStorageChange

type TransactionStorageChange struct {
	From []byte
	To   []byte
}

TransactionStorageChange is a change to state, from one value to another.

func (*TransactionStorageChange) MarshalJSON

func (t *TransactionStorageChange) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*TransactionStorageChange) String

func (t *TransactionStorageChange) String() string

String returns a string version of the structure.

func (*TransactionStorageChange) UnmarshalJSON

func (t *TransactionStorageChange) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

Jump to

Keyboard shortcuts

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