aeternity

package
v1.1.16-0...-5f6d184 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeTx

func NormalizeTx(srcTx *Transaction) (types.Tx, error)

Types

type Client

type Client struct {
	client.Request
}

func (*Client) GetTxs

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

type Platform

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

func Init

func Init(api string) *Platform

func (*Platform) Coin

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

func (*Platform) GetTxsByAddress

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

type Transaction

type Transaction struct {
	Hash        string `json:"hash"`
	BlockHeight uint64 `json:"block_height"`
	Timestamp   int64  `json:"time"`
	TxValue     Tx     `json:"tx"`
}

type Tx

type Tx struct {
	Sender    string      `json:"sender_id"`
	Recipient string      `json:"recipient_id"`
	Amount    json.Number `json:"amount"`
	Fee       json.Number `json:"fee"`
	Type      string      `json:"type"`
	Payload   string      `json:"payload"`
	Nonce     uint64      `json:"nonce"`
}

Jump to

Keyboard shortcuts

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