Documentation
¶
Index ¶
- type ABClient
- type AlphabillClient
- func (c *AlphabillClient) GetBlock(blockNo uint64) (*block.Block, error)
- func (c *AlphabillClient) GetMaxBlockNumber() (uint64, error)
- func (c *AlphabillClient) IsShutdown() bool
- func (c *AlphabillClient) SendTransaction(tx *txsystem.Transaction) (*txsystem.TransactionResponse, error)
- func (c *AlphabillClient) Shutdown() error
- type AlphabillClientConfig
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 ¶
func New(config AlphabillClientConfig) *AlphabillClient
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 (c *AlphabillClient) SendTransaction(tx *txsystem.Transaction) (*txsystem.TransactionResponse, error)
func (*AlphabillClient) Shutdown ¶
func (c *AlphabillClient) Shutdown() error
type AlphabillClientConfig ¶
Click to show internal directories.
Click to hide internal directories.