fio

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

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

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

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

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

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

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

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

GetActionsResponse request struct for get_actions

type GetPubAddressRequest

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

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

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.Txs, err error)

func (*Platform) Normalize

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