aeternity

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: 11 Imported by: 1

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 added in v1.1.0

func Init(api string) *Platform

func (*Platform) Coin

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

func (*Platform) GetTxsByAddress

func (p *Platform) GetTxsByAddress(address string) (types.TxPage, 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