Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccBlockHeader ¶
type AccountBlock ¶
type AccountBlock struct { }
type BalanceAllQuery ¶
type BalanceQuery ¶
type BalanceQuery struct { Addr types.Address TokenId types.TokenTypeId }
type BlockHeader ¶
type DifficultyQuery ¶
type RequestTxParams ¶
type ResponseTxParams ¶
type RpcClient ¶
type RpcClient interface { SubmitRaw(block api.NormalRequestRawTxParam) error GetLatest(address types.Address) (*BlockHeader, error) GetSnapshotLatest() (*BlockHeader, error) GetFittestSnapshot() (*types.Hash, error) GetSnapshotByHash(hash types.Hash) (*BlockHeader, error) GetSnapshotByHeight(height uint64) (*BlockHeader, error) GetAccBlock(hash types.Hash) (*AccBlockHeader, error) GetOnroad(query OnroadQuery) ([]*AccBlockHeader, error) Balance(query BalanceQuery) (*TokenBalance, error) BalanceAll(query BalanceAllQuery) ([]*TokenBalance, error) GetDifficulty(query DifficultyQuery) (diffculty string, err error) GetRewardByIndex(index uint64) (reward *api.RewardInfo, err error) GetVoteDetailsByIndex(index uint64) (details []*consensus.VoteDetails, err error) GetClient() *rpc.Client }
func NewRpcClient ¶
type TInfo ¶
type TInfo struct { TokenId types.TokenTypeId `json:"tokenId"` TokenName string `json:"tokenName"` TokenSymbol string `json:"tokenSymbol"` }
type TokenBalance ¶
Click to show internal directories.
Click to hide internal directories.