Documentation
¶
Index ¶
- Variables
- func GenerateWork(hash string) (string, error)
- type AccountInfo
- type HTTPError
- type Key
- type Node
- func (n *Node) AccountInfo(account string) (*AccountInfo, error)
- func (n *Node) BlockCreate(previous, account, representative, balance, link, key, work string) (string, error)
- func (n *Node) DeterministicKey(seed string, index string) (*Key, error)
- func (n *Node) Pending(account string, count int, threshold string) (map[string]PendingBlock, error)
- func (n *Node) Process(block string) (string, error)
- func (n *Node) SetTimeout(d time.Duration)
- type NodeError
- type PendingBlock
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAccountNotFound = errors.New("account not found")
Functions ¶
func GenerateWork ¶
Types ¶
type AccountInfo ¶
type AccountInfo struct { Frontier string `json:"frontier"` OpenBlock string `json:"open_block"` RepresentativeBlock string `json:"representative_block"` Balance string `json:"balance"` ModifiedTimestamp string `json:"modified_timestamp"` BlockCount string `json:"block_count"` Representative string `json:"representative"` }
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) AccountInfo ¶
func (n *Node) AccountInfo(account string) (*AccountInfo, error)
func (*Node) BlockCreate ¶
func (*Node) DeterministicKey ¶
func (*Node) SetTimeout ¶ added in v1.1.5
type PendingBlock ¶
Click to show internal directories.
Click to hide internal directories.