client

package
v0.0.0-...-dbb82fb Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PascalClient

type PascalClient struct {
	RPCAddress string
	// contains filtered or unexported fields
}

PascalClient represents the rpc client.

func GenerateClient

func GenerateClient(address string) *PascalClient

GenerateClient returns an operative client.

func (*PascalClient) GetAccount

func (client *PascalClient) GetAccount(accountNum int) (account *models.Account, err error)

GetAccount Returns a JSON Object with account information including pending operations not included in blockchain yet, but affecting this account.

func (*PascalClient) NodeStatus

func (client *PascalClient) NodeStatus() (nodeStatus *models.NodeStatus, err error)

NodeStatus Returns information of the Node in a JSON Object.

Jump to

Keyboard shortcuts

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