Documentation ¶
Index ¶
- type Action
- type ActionAct
- type ActionDataTransfer
- type ActionDataTrnsfiopubky
- type ActionTrace
- type Client
- type GetActionsRequest
- type GetActionsResponse
- type GetPubAddressRequest
- type GetPubAddressResponse
- type Platform
- func (p *Platform) CanHandle(name string) bool
- func (p *Platform) Coin() coin.Coin
- func (p *Platform) GetTxsByAddress(address string) (page blockatlas.TxPage, err error)
- func (p *Platform) Lookup(coins []uint64, name string) ([]blockatlas.Resolved, error)
- func (p *Platform) Normalize(action *Action, account string) (blockatlas.Tx, error)
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
ActionTrace
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
Click to show internal directories.
Click to hide internal directories.