Documentation ¶
Index ¶
- Variables
- type AppContentResult
- type AppParamsResult
- type AuthStatusResponse
- type BatchResponse
- type BlockDetailedInfo
- type BlockHeaderInfo
- type BlockInfoHexResult
- type BlockInfoResult
- type BlockTxInfo
- type BlockTxInfoHex
- type ContentResult
- type EcosystemInfo
- type EcosystemNameResult
- type GetContractResult
- type GetUIDResult
- type HashResult
- type HistoryResult
- type KeyInfoResult
- type ListResult
- type LoginResult
- type MemberInfo
- type MenuResult
- type MultiTxInfoResult
- type NameInfo
- type PageResult
- type ParamResult
- type ParamsResult
- type Response
- type RowResult
- type SendTxResult
- type SnippetResult
- type TableResult
- type TablesResult
- type TokenBalanceResult
- type TxDetailedInfo
- type TxInfo
- type TxInfoResult
- type TxStatusResult
Constants ¶
This section is empty.
Variables ¶
View Source
var NotSupportError = errors.New("not support")
Functions ¶
This section is empty.
Types ¶
type AppContentResult ¶
type AppParamsResult ¶
type AppParamsResult struct { App string `json:"app_id"` List []ParamResult `json:"list"` }
type AuthStatusResponse ¶
type BatchResponse ¶
type BatchResponse []Response
type BlockDetailedInfo ¶
type BlockDetailedInfo struct { Header BlockHeaderInfo `json:"header"` Hash string `json:"hash"` NodePosition int64 `json:"node_position"` KeyID int64 `json:"key_id"` Time int64 `json:"time"` TxCount int32 `json:"tx_count"` Size string `json:"size"` RollbacksHash string `json:"rollbacks_hash"` MerkleRoot string `json:"merkle_root"` BinData string `json:"bin_data"` StopCount int `json:"stop_count"` Transactions []TxDetailedInfo `json:"transactions"` }
type BlockHeaderInfo ¶
type BlockInfoHexResult ¶
type BlockInfoResult ¶
type BlockTxInfo ¶
type BlockTxInfoHex ¶
type ContentResult ¶
type ContentResult struct { Menu string `json:"menu"` MenuTree json.RawMessage `json:"menutree"` Title string `json:"title"` Tree json.RawMessage `json:"tree"` NodesCount int64 `json:"nodesCount"` }
type EcosystemInfo ¶
type EcosystemInfo struct { Id int64 `json:"id"` Name string `json:"name"` Digits int64 `json:"digits"` TokenSymbol string `json:"token_symbol"` TokenName string `json:"token_name"` TotalAmount string `json:"total_amount"` IsWithdraw bool `json:"is_withdraw"` Withdraw string `json:"withdraw"` IsEmission bool `json:"is_emission"` Emission string `json:"emission"` Introduction string `json:"introduction"` Logo int64 `json:"logo"` Creator string `json:"creator"` }
type EcosystemNameResult ¶
type EcosystemNameResult struct {
EcosystemName string `json:"ecosystem_name"`
}
type GetContractResult ¶
type GetContractResult struct { ID uint32 `json:"id"` StateID uint32 `json:"state"` TableID string `json:"tableid"` WalletID string `json:"walletid"` TokenID string `json:"tokenid"` Address string `json:"address"` Fields []contractField `json:"fields"` Name string `json:"name"` AppId uint32 `json:"app_id"` Ecosystem uint32 `json:"ecosystem"` Conditions string `json:"conditions"` }
type GetUIDResult ¶
type GetUIDResult struct { UID string `json:"uid"` Token string `json:"token"` Expire string `json:"expire"` EcosystemID string `json:"ecosystem_id"` KeyID string `json:"key_id"` Address string `json:"address"` NetworkID string `json:"network_id"` Cryptoer string `json:"cryptoer"` Hasher string `json:"hasher"` }
type HashResult ¶
type HashResult struct {
Hash string `json:"hash"`
}
type HistoryResult ¶
type KeyInfoResult ¶
type KeyInfoResult struct { Account string `json:"account"` Ecosystems []*keyEcosystemInfo `json:"ecosystems"` }
type ListResult ¶
type LoginResult ¶
type LoginResult struct { Token string `json:"token"` EcosystemID string `json:"ecosystem_id"` KeyID string `json:"key_id"` Account string `json:"account"` NotifyKey string `json:"notify_key"` IsNode bool `json:"isnode"` IsOwner bool `json:"isowner"` IsCLB bool `json:"clb"` Timestamp string `json:"timestamp"` Roles []rolesResult `json:"roles"` }
type MemberInfo ¶
type MenuResult ¶
type MultiTxInfoResult ¶
type MultiTxInfoResult struct {
Results map[string]*TxInfoResult `json:"results"`
}
type PageResult ¶
type ParamResult ¶
type ParamsResult ¶
type ParamsResult struct {
List []ParamResult `json:"list"`
}
type Response ¶
type Response struct { JSONRPC string `json:"jsonrpc"` ID request.ID `json:"id"` Result json.RawMessage `json:"result,omitempty"` Error *jsonError `json:"error,omitempty"` }
func (Response) MarshalJSON ¶
MarshalJSON implements json.Marshaler and adds the "jsonrpc":"2.0" property.
func (*Response) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type SendTxResult ¶
type SnippetResult ¶
type TableResult ¶
type TableResult struct { Name string `json:"name"` Insert string `json:"insert"` NewColumn string `json:"new_column"` Update string `json:"update"` Read string `json:"read,omitempty"` Filter string `json:"filter,omitempty"` Conditions string `json:"conditions"` AppID string `json:"app_id"` Columns []columnInfo `json:"columns"` }
type TablesResult ¶
type TablesResult struct { Count int64 `json:"count"` List []tableInfo `json:"list"` }
type TokenBalanceResult ¶
type TxDetailedInfo ¶
type TxInfo ¶
type TxInfo struct { BlockId int64 `json:"block_id"` BlockHash string `json:"block_hash"` Address string `json:"address"` Ecosystem int64 `json:"ecosystem"` Hash string `json:"hash"` Expedite string `json:"expedite"` ContractName string `json:"contract_name"` Params map[string]any `json:"params"` CreatedAt int64 `json:"created_at"` Size string `json:"size"` Status int64 `json:"status"` //0:success 1:penalty }
type TxInfoResult ¶
Click to show internal directories.
Click to hide internal directories.