rpcclient

package
v0.2.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents an RPC connection to a server.

func NewRPCClient

func NewRPCClient(addr string, insecure bool) *Client

NewRPCClient creates a new RPC client.

func (*Client) AddPeer

func (c *Client) AddPeer(args []string) (string, error)

func (*Client) Chain

func (c *Client) Chain() proto.ChainClient

func (*Client) CloseWallet

func (c *Client) CloseWallet() (string, error)

func (*Client) CreateWallet

func (c *Client) CreateWallet(args []string) (string, error)

func (*Client) DecodeRawBlock

func (c *Client) DecodeRawBlock(args []string) (string, error)

func (*Client) DecodeRawTransaction

func (c *Client) DecodeRawTransaction(args []string) (string, error)

func (*Client) DumpWallet

func (c *Client) DumpWallet() (string, error)

func (*Client) ExitValidator

func (c *Client) ExitValidator(args []string) (string, error)

func (*Client) GenKeyPair

func (c *Client) GenKeyPair(args []string, raw bool) (string, error)

func (*Client) GenerateKeys

func (c *Client) GenerateKeys(args []string) (out string, err error)

func (*Client) GetAccount

func (c *Client) GetAccount() (string, error)

func (*Client) GetAccountInfo

func (c *Client) GetAccountInfo(args []string) (string, error)

func (*Client) GetAccountValidators

func (c *Client) GetAccountValidators(args []string) (string, error)

func (*Client) GetBalance

func (c *Client) GetBalance() (string, error)

func (*Client) GetBlock

func (c *Client) GetBlock(args []string) (string, error)

func (*Client) GetBlockHash

func (c *Client) GetBlockHash(args []string) (string, error)

func (*Client) GetChainInfo

func (c *Client) GetChainInfo() (string, error)

func (*Client) GetKey

func (c *Client) GetKey(args []string) (out string, err error)

func (*Client) GetKeys

func (c *Client) GetKeys(args []string) (out string, err error)

func (*Client) GetMnemonic

func (c *Client) GetMnemonic(args []string) (out string, err error)

func (*Client) GetNetworkInfo

func (c *Client) GetNetworkInfo() (string, error)

func (*Client) GetPeersInfo

func (c *Client) GetPeersInfo() (string, error)

func (*Client) GetRawBlock

func (c *Client) GetRawBlock(args []string) (string, error)

func (*Client) GetValidators

func (c *Client) GetValidators() (string, error)

func (*Client) GetValidatorsCount

func (c *Client) GetValidatorsCount() (string, error)

func (*Client) GetValidatorsList

func (c *Client) GetValidatorsList() (string, error)

func (*Client) ImportWallet

func (c *Client) ImportWallet(args []string) (string, error)

func (*Client) ListWallets

func (c *Client) ListWallets() (string, error)

func (*Client) Network

func (c *Client) Network() proto.NetworkClient

func (*Client) OpenWallet

func (c *Client) OpenWallet(args []string) (string, error)

func (*Client) SendTransaction

func (c *Client) SendTransaction(args []string) (string, error)

func (*Client) StartValidator

func (c *Client) StartValidator(args []string) (string, error)

func (*Client) SubmitRawData

func (c *Client) SubmitRawData(args []string) (string, error)

func (*Client) ToggleKeys

func (c *Client) ToggleKeys(args []string) (out string, err error)

func (*Client) Utils

func (c *Client) Utils() proto.UtilsClient

func (*Client) Validators

func (c *Client) Validators() proto.ValidatorsClient

func (*Client) Wallet

func (c *Client) Wallet() proto.WalletClient

Jump to

Keyboard shortcuts

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