icon

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 9 Imported by: 0

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

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 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