net

package
v0.0.0-...-f47fcab Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartNanoWSClient

func StartNanoWSClient(wsUrl string, account string, callback func(data ConfirmationResponse))

Types

type ConfirmationResponse

type ConfirmationResponse struct {
	Topic   string                 `json:"topic"`
	Time    string                 `json:"time"`
	Message map[string]interface{} `json:"message"`
}

type RPCClient

type RPCClient struct {
	Url string
	// contains filtered or unexported fields
}

func NewRPCClient

func NewRPCClient(url string) *RPCClient

func (RPCClient) MakeAccountHistoryRequest

func (client RPCClient) MakeAccountHistoryRequest(account string, count uint) (*model.AccountHistoryResponse, error)

Nano account_history request

func (RPCClient) MakeConfirmationQuorumRequest

func (client RPCClient) MakeConfirmationQuorumRequest() (*model.ConfirmationQuorumResponse, error)

Nano confirmation_quorum request

func (RPCClient) MakeRepresentativesRequest

func (client RPCClient) MakeRepresentativesRequest() (*model.RepresentativeResponse, error)

representatives

func (RPCClient) MakeSendRequest

func (client RPCClient) MakeSendRequest(source string, destination string, amountRaw string, id string, wallet string) (*model.SendResponse, error)

send

Jump to

Keyboard shortcuts

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