types

package
v0.0.0-...-e54d674 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transaction

type Transaction struct {
	TxHash        string      `json:"txHash"`
	BlockHeight   int64       `json:"blockHeight"`
	TxType        string      `json:"txType"`
	Timestamp     int64       `json:"timeStamp"`
	TxFee         json.Number `json:"txFee"`
	TxAge         int64       `json:"txAge"`
	Code          int64       `json:"code"`
	Log           string      `json:"log"`
	ConfirmBlocks int         `json:"confirmBlocks"`
	Memo          string      `json:"memo"`
	Source        int64       `json:"source"`
	// for transfers
	FromAddr string      `json:"fromAddr"`
	ToAddr   string      `json:"toAddr"`
	Value    json.Number `json:"value"`
	TxAsset  string      `json:"txAsset"`
	// for multi-send txs
	HasChildren int `json:"hasChildren"`
	// for multi-send child txs, an exception case where the field name is `asset` instead of `txAsset`
	ChildTxAsset string `json:"asset"`
	OutputIndex  int    `json:"-"`
}

Jump to

Keyboard shortcuts

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