internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	// General YOUChain API
	SuggestPrice(ctx context.Context) (*big.Int, error)
	BlockByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*types.Block, error)
	HeaderByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*types.Header, error)

	//txpool
	GetTransaction(txHash common.Hash) (*types.Transaction, common.Hash, uint64, uint64, error)
	GetPoolTransactions() (types.Transactions, error)
	GetPoolTransaction(txHash common.Hash) *types.Transaction
}

Backend interface provides the common API services (that are provided by both full and light clients) with access to necessary functions.

Directories

Path Synopsis
Package debug interfaces Go runtime debugging facilities.
Package debug interfaces Go runtime debugging facilities.
Package jsre provides execution environment for JavaScript.
Package jsre provides execution environment for JavaScript.
deps
Package deps contains the console JavaScript dependencies Go embedded.
Package deps contains the console JavaScript dependencies Go embedded.
package web3ext contains geth specific web3.js extensions.
package web3ext contains geth specific web3.js extensions.

Jump to

Keyboard shortcuts

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