nano

package
v1.0.37 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountHistory

type AccountHistory struct {
	Account string      `json:"account"`
	History interface{} // NANO RPC returns string for address with 0 transactions
}

type AccountHistoryRequest

type AccountHistoryRequest struct {
	Action  string `json:"action"`
	Account string `json:"account"`
	Count   string `json:"count"`
}

type BlockType

type BlockType string
const (
	BlockTypeSend    BlockType = "send"
	BlockTypeReceive BlockType = "receive"
)

type Client

type Client struct {
	blockatlas.Request
}

func (*Client) GetAccountHistory

func (c *Client) GetAccountHistory(address string) (history AccountHistory, err error)

type Platform

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

func (*Platform) Coin

func (p *Platform) Coin() coin.Coin

func (*Platform) GetTxsByAddress

func (p *Platform) GetTxsByAddress(address string) (blockatlas.TxPage, error)

func (*Platform) Init

func (p *Platform) Init() error

func (*Platform) Normalize

func (p *Platform) Normalize(srcTx *Transaction, account string) (tx blockatlas.Tx)

type Transaction

type Transaction struct {
	Type           BlockType `json:"type"`
	Account        string    `json:"account"`
	Amount         string    `json:"amount"`
	LocalTimestamp string    `json:"local_timestamp"`
	Height         string    `json:"height"`
	Hash           string    `json:"hash"`
}

Jump to

Keyboard shortcuts

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