fio

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action added in v1.1.0

type Action struct {
	ActionSeq   uint64      `json:"account_action_seq"`
	BlockNum    uint64      `json:"block_num"`
	BlockTime   string      `json:"block_time"`
	ActionTrace ActionTrace `json:"action_trace"`
}

Action (from get_actions)

type ActionAct added in v1.1.0

type ActionAct struct {
	Account string      `json:"account"`
	Name    string      `json:"name"`
	Data    interface{} `json:"data"` // Structure of data is action-specific
}

ActionAct (from get_actions)

type ActionDataTransfer added in v1.1.0

type ActionDataTransfer struct {
	From     string `json:"from"`
	To       string `json:"to"`
	Quantity string `json:"quantity"`
	Memo     string `json:"memo"`
}

ActionDataTransfer (from get_actions)

type ActionDataTrnsfiopubky added in v1.1.0

type ActionDataTrnsfiopubky struct {
	PayeePublicKey string `json:"payee_public_key"`
	Amount         int64  `json:"amount"`
	MaxFee         int64  `json:"max_fee"`
	Actor          string `json:"actor"`
	TpID           string `json:"tpid"`
}

ActionDataTrnsfiopubky (from get_actions)

type ActionTrace added in v1.1.0

type ActionTrace struct {
	Act   ActionAct `json:"act"`
	TrxID string    `json:"trx_id"`
}

ActionTrace

type Client

type Client struct {
	client.Request
}

Client for FIO API

type GetActionsRequest added in v1.1.0

type GetActionsRequest struct {
	AccountName string `json:"account_name"`
	Pos         int32  `json:"pos"`
	Offset      int32  `json:"offset"`
	Sort        string `json:"sort"` // desc
}

GetActionsRequest request struct for get_actions see https://github.com/EOSIO/eos/blob/master/plugins/history_plugin/include/eosio/history_plugin/history_plugin.hpp

type GetActionsResponse added in v1.1.0

type GetActionsResponse struct {
	Actions []Action `json:"actions"`
}

GetActionsResponse request struct for get_actions

type GetPubAddressRequest added in v1.1.0

type GetPubAddressRequest struct {
	FioAddress string `json:"fio_address"`
	TokenCode  string `json:"token_code"`
	ChainCode  string `json:"chain_code"`
}

GetPubAddressRequest request struct for get_pub_address

type GetPubAddressResponse added in v1.1.0

type GetPubAddressResponse struct {
	PublicAddress string `json:"public_address"`
	Message       string `json:"message"`
}

GetPubAddressResponse response struct for get_pub_address

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) (page types.TxPage, err error)

func (*Platform) Normalize added in v1.1.0

func (p *Platform) Normalize(action *Action, account string) (types.Tx, error)

Jump to

Keyboard shortcuts

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