model

package
v0.0.0-...-d44ee03 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountHistoryRequest

type AccountHistoryRequest struct {
	BaseRequest
	Account string `json:"account"`
	Count   uint   `json:"count"`
}

type AccountHistoryResponse

type AccountHistoryResponse struct {
	Account string        `json:"account"`
	History []HistoryItem `json:"history"`
}

type BaseRequest

type BaseRequest struct {
	Action string `json:"action"`
}

RPC requests

var AccountHistoryAction BaseRequest = BaseRequest{Action: "account_history"}
var ConfirmationQuorumAction BaseRequest = BaseRequest{Action: "confirmation_quorum"}

confirmation_quorum

var RepresentativesAction BaseRequest = BaseRequest{Action: "representatives"}

representatives

var SendAction BaseRequest = BaseRequest{Action: "send"}

send representatives

type Block

type Block struct {
	Account       string `json:"account"`
	LinkAsAccount string `json:"link_as_account"`
}

type Callback

type Callback struct {
	Hash   string `json:"hash"`
	Block  string `json:"block"`
	IsSend string `json:"is_send"`
	Amount string `json:"amount"`
}

Serializable/Deserializable models related to nano callback

type ConfirmationQuorumRequest

type ConfirmationQuorumRequest struct {
	BaseRequest
}

type ConfirmationQuorumResponse

type ConfirmationQuorumResponse struct {
	OnlineWeightTotal string `json:"online_stake_total"`
}

type HistoryItem

type HistoryItem struct {
	Type           string `json:"type"`
	Account        string `json:"account"`
	Amount         string `json:"amount"`
	LocalTimestamp string `json:"local_timestamp"`
	Hash           string `json:"hash"`
}

RPC responses

type RepresentativeResponse

type RepresentativeResponse struct {
	Representatives map[string]string `json:"representatives"`
}

Representatives

type RepresentativesRequest

type RepresentativesRequest struct {
	BaseRequest
}

type SendRequest

type SendRequest struct {
	BaseRequest
	Wallet      string  `json:"wallet"`
	Source      string  `json:"source"`
	Destination string  `json:"destination"`
	AmountRaw   string  `json:"amount"`
	ID          string  `json:"id"`
	BpowKey     *string `json:"bpow_key,omitempty"`
}

type SendResponse

type SendResponse struct {
	Block string `json:"block"`
}

Send

Jump to

Keyboard shortcuts

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