blockchain

package
v0.0.0-...-192ff41 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockNumber

func BlockNumber() (uint64, error)

func GetTransactions

func GetTransactions(blockNumber uint64) ([]storage.Transaction, error)

Types

type BlockNumberResponse

type BlockNumberResponse struct {
	Result string `json:"result"`
}

type BlockResult

type BlockResult struct {
	Result BlockResultTransactions `json:"result"`
}

type BlockResultTransactions

type BlockResultTransactions struct {
	Transactions []storage.Transaction `json:"transactions"`
}

type JSONRPCRequest

type JSONRPCRequest struct {
	Jsonrpc string   `json:"jsonrpc"`
	Method  string   `json:"method"`
	Params  []string `json:"params"`
	ID      int      `json:"id"`
}

Jump to

Keyboard shortcuts

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