icon

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize(trx *Tx) (tx types.Tx, b bool)

Normalize converts an Icon transaction into the generic model

Types

type Client

type Client struct {
	client.Request
}

func (*Client) GetAddressTransactions

func (c *Client) GetAddressTransactions(address string) ([]Tx, 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 Response

type Response struct {
	Data        []Tx   `json:"data"`
	ListSize    uint64 `json:"listSize"`
	TotalSize   uint64 `json:"totalSize"`
	Result      string `json:"result"`
	Description string `json:"description"`
}

Response describes the ripple transaction response

type Tx

type Tx struct {
	TxHash     string `json:"txHash"`
	Height     uint64 `json:"height"`
	CreateDate string `json:"createDate"`
	FromAddr   string `json:"fromAddr"`
	ToAddr     string `json:"toAddr"`
	TxType     string `json:"txType"`
	DataType   string `json:"dataType"`
	Amount     string `json:"amount"`
	Fee        string `json:"fee"`
	State      uint64 `json:"status"`
}

Tx describes the ripple transaction

Jump to

Keyboard shortcuts

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