Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeTx ¶ added in v1.0.0
func NormalizeTx(srcTx *Tx) (tx blockatlas.Tx, ok bool)
NormalizeTx converts an Aion transaction into the generic model
func NormalizeTxs ¶ added in v1.0.0
func NormalizeTxs(srcTxs []Tx) []blockatlas.Tx
NormalizeTxs converts multiple Aion transactions
Types ¶
type Client ¶ added in v1.0.0
type Client struct {
blockatlas.Request
}
type Platform ¶ added in v1.0.0
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) GetTxsByAddress ¶ added in v1.0.0
func (p *Platform) GetTxsByAddress(address string) (blockatlas.TxPage, error)
type Tx ¶ added in v1.0.0
type Tx struct { BlockHash string `json:"blockHash"` ToAddr string `json:"toAddr"` ContractAddr string `json:"contractAddr"` TransactionHash string `json:"transactionHash"` TransactionTimestamp int64 `json:"transactionTimestamp"` NrgConsumed int `json:"nrgConsumed"` BlockNumber uint64 `json:"blockNumber"` BlockTimestamp int64 `json:"blockTimestamp"` FromAddr string `json:"fromAddr"` Value json.Number `json:"value"` }
Click to show internal directories.
Click to hide internal directories.