client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: AGPL-3.0, ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ABClient

type ABClient interface {
	SendTransaction(tx *txsystem.Transaction) (*txsystem.TransactionResponse, error)
	GetBlock(blockNo uint64) (*block.Block, error)
	GetMaxBlockNumber() (uint64, error)
	Shutdown() error
	IsShutdown() bool
}

ABClient manages connection to alphabill node and implements RPC methods

type AlphabillClient

type AlphabillClient struct {
	// contains filtered or unexported fields
}

func New

New creates instance of AlphabillClient

func (*AlphabillClient) GetBlock

func (c *AlphabillClient) GetBlock(blockNo uint64) (*block.Block, error)

func (*AlphabillClient) GetMaxBlockNumber

func (c *AlphabillClient) GetMaxBlockNumber() (uint64, error)

func (*AlphabillClient) IsShutdown

func (c *AlphabillClient) IsShutdown() bool

func (*AlphabillClient) SendTransaction

func (*AlphabillClient) Shutdown

func (c *AlphabillClient) Shutdown() error

type AlphabillClientConfig

type AlphabillClientConfig struct {
	Uri              string
	RequestTimeoutMs uint64
	WaitForReady     bool
}

Jump to

Keyboard shortcuts

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