waves

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeTx

func NormalizeTx(srcTx *Transaction) (tx types.Tx, ok bool)

func NormalizeTxs

func NormalizeTxs(srcTxs []Transaction) (txs []types.Tx)

Types

type Block

type Block struct {
	Transactions []Transaction `json:"transactions"`
}

type Client

type Client struct {
	client.Request
}

func (*Client) GetBlockByNumber

func (c *Client) GetBlockByNumber(num int64) (block *Block, err error)

func (*Client) GetCurrentBlock

func (c *Client) GetCurrentBlock() (block *CurrentBlock, err error)

func (*Client) GetTxs

func (c *Client) GetTxs(address string, limit int) ([]Transaction, error)

type CurrentBlock

type CurrentBlock struct {
	Height int64 `json:"height"`
}

type Platform

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

func Init added in v1.1.0

func Init(api string) *Platform

func (*Platform) Coin

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

func (*Platform) CurrentBlockNumber

func (p *Platform) CurrentBlockNumber() (int64, error)

func (*Platform) GetBlockByNumber

func (p *Platform) GetBlockByNumber(num int64) (*types.Block, error)

func (*Platform) GetTxsByAddress

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

type Transaction

type Transaction struct {
	Id         string `json:"id"`
	Sender     string `json:"sender"`
	AssetId    string `json:"assetId"`
	Recipient  string `json:"recipient"`
	Amount     uint64 `json:"amount"`
	FeeAssetId string `json:"feeAssetId"`
	Fee        uint64 `json:"fee"`
	Timestamp  uint64 `json:"timestamp"`
	Attachment string `json:"attachment"`
	Block      uint64 `json:"height"`
	Type       uint64 `json:"type"`
}

Jump to

Keyboard shortcuts

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