Documentation ¶
Overview ¶
定义对外开放的HTTP API
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionResp ¶
type ActionResp struct { ID int `json:"id"` Code int `json:"code"` //0-success -1:失败 1:HOLD Msg string `json:"msg"` }
同步请求时 异步请求
type TransResp ¶
type TransResp struct { Tx string `json:"tx"` ActionResps []ActionResp `json:"actions"` }
type Transaction ¶
type Transaction struct { BaseFee string //基础手续费 暂不支持 Actions []*Action //请求时可以不排序,DAPP处理时按照ACTION ID 排ASC序 }
func (Transaction) Hash ¶
func (p Transaction) Hash() (h ethcmn.Hash)
func (Transaction) Len ¶
func (p Transaction) Len() int
func (Transaction) Less ¶
func (p Transaction) Less(i, j int) bool
func (Transaction) String ¶
func (p Transaction) String() string
func (Transaction) Swap ¶
func (p Transaction) Swap(i, j int)
type ValidatorReq ¶
Click to show internal directories.
Click to hide internal directories.