rpc

package
v0.0.0-...-ea634ce Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2018 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetInfoResponse

type GetInfoResponse struct {
	Result struct {
		Version         string  `json:"version"`
		ProtocolVersion int64   `json:"protocolversion"`
		WalletVersion   float64 `json:"walletversion"`
		Balance         float64 `json:"balance"`
		NewMint         float64 `json:"newmint"`
		Stake           float64 `json:"stake"`
		Blocks          int64   `json:"blocks"`
		TimeOffset      int64   `json:"timeoffset"`
		MoneySupply     float64 `json:"moneysupply"`
		Connections     int64   `json:"connections"`
		Proxy           string  `json:"proxy"`
		IP              string  `json:"ip"`
		Difficulty      struct {
			ProofOfWork  float64 `json:"proof-of-work"`
			ProofOfStake float64 `json:"proof-of-stake"`
		} `json:"difficulty"`
		Testnet       bool    `json:"testnet"`
		KeyPoolOldest int64   `json:"keypoololdest"`
		KeyPoolSize   int64   `json:"keypoolsize"`
		PayTxFee      float64 `json:"paytxfee"`
		MinInput      float64 `json:"mininput"`
		UnlockedUntil int64   `json:"unlocked_until"`
		Errors        string  `json:"errors"`
	} `json:"result,omitempty"`
	Error struct {
		Code    int64  `json:"code"`
		Message string `json:"message"`
	} `json:"error,omitempty"`
	ID string `json:"id,omitempty"`
}

GetInfoResponse model.

func GetInfo

func GetInfo() (*GetInfoResponse, error)

GetInfo gets the daemon node info.

type VerifyMessageResponse

type VerifyMessageResponse struct {
	Result bool `json:"result"`
	Error  struct {
		Code    int64  `json:"code"`
		Message string `json:"message"`
	} `json:"error"`
	ID string `json:"id"`
}

VerifyMessageResponse model.

func VerifyMessage

func VerifyMessage(
	addressHash string,
	signature string,
	message string,
) (*VerifyMessageResponse, error)

VerifyMessage gets the daemon node info.

Jump to

Keyboard shortcuts

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