Documentation ¶
Index ¶
- Variables
- func ValidateABCIData(data tmbytes.HexBytes) error
- func ValidateABCIPath(path string) error
- func ValidateABCIQuery(path string, data tmbytes.HexBytes) error
- type Account
- type Block
- type Coins
- type ResultBlock
- type ResultBlockResults
- type ResultCommit
- type ResultStatus
- type ResultTx
- type ResultTxSearch
- type ResultValidators
- type SeeleClient
- func (sc *SeeleClient) ABCIQuery(path string, data tmbytes.HexBytes) ([]byte, error)
- func (c *SeeleClient) QueryAccount(addr string) (acc Account, err error)
- func (c *SeeleClient) QueryAccountBank(addr string) (coins Coins, err error)
- func (c *SeeleClient) QueryBlock(height int64) (pBlock *ResultBlock, err error)
- func (c *SeeleClient) QueryBlockByHash(hashHexStr string) (pBlock *ResultBlock, err error)
- func (c *SeeleClient) QueryBlockResults(height int64) (pBlockResults *ResultBlockResults, err error)
- func (c *SeeleClient) QueryChainID() (string, error)
- func (c *SeeleClient) QueryCommitResult(height int64) (pCommitResult *ResultCommit, err error)
- func (c *SeeleClient) QueryStatus() (pStatus *ResultStatus, err error)
- func (c *SeeleClient) QueryTxResult(hashHexStr string, prove bool) (pResultTx *ResultTx, err error)
- func (c *SeeleClient) QueryValidatorsResult(height int64) (pValsResult *ResultValidators, err error)
Constants ¶
This section is empty.
Variables ¶
var ( ExceedABCIPathLengthError = fmt.Errorf("the abci path exceeds max length %d ", maxABCIPathLength) ExceedABCIDataLengthError = fmt.Errorf("the abci data exceeds max length %d ", maxABCIDataLength) )
Functions ¶
func ValidateABCIData ¶
ValidateABCIData validates an ABCI query's data
func ValidateABCIPath ¶
ValidateABCIPath validates an ABCI query's path
Types ¶
type SeeleClient ¶
type SeeleClient struct {
// contains filtered or unexported fields
}
SeeleClient seele client for Seele blockchain
func NewSeeleClient ¶
func NewSeeleClient(wallet account.Wallet, config gosdktypes.ClientConfig) *SeeleClient
NewSeeleClient create a new SeeleClient
func (*SeeleClient) QueryAccount ¶
func (c *SeeleClient) QueryAccount(addr string) (acc Account, err error)
QueryAccount gets the account associated with an address on Seele
func (*SeeleClient) QueryAccountBank ¶ added in v0.1.3
func (c *SeeleClient) QueryAccountBank(addr string) (coins Coins, err error)
QueryAccount gets the account associated with an address on Seele
func (*SeeleClient) QueryBlock ¶
func (c *SeeleClient) QueryBlock(height int64) (pBlock *ResultBlock, err error)
QueryBlock gets the block info of a specific height query the latest block with height 0 input
func (*SeeleClient) QueryBlockByHash ¶
func (c *SeeleClient) QueryBlockByHash(hashHexStr string) (pBlock *ResultBlock, err error)
QueryBlockByHash get the abci result of the block by hash
func (*SeeleClient) QueryBlockResults ¶
func (c *SeeleClient) QueryBlockResults(height int64) (pBlockResults *ResultBlockResults, err error)
QueryBlockResults gets the abci result of the block on a specific height query the latest block with height 0 input
func (*SeeleClient) QueryChainID ¶
func (c *SeeleClient) QueryChainID() (string, error)
QueryChainID query chain id
func (*SeeleClient) QueryCommitResult ¶
func (c *SeeleClient) QueryCommitResult(height int64) (pCommitResult *ResultCommit, err error)
QueryCommitResult gets the commit info of the block on a specific height query the latest block with height 0 input
func (*SeeleClient) QueryStatus ¶
func (c *SeeleClient) QueryStatus() (pStatus *ResultStatus, err error)
QueryStatus gets the blockchain info
func (*SeeleClient) QueryTxResult ¶
func (c *SeeleClient) QueryTxResult(hashHexStr string, prove bool) (pResultTx *ResultTx, err error)
QueryTxResult gets the detail info of a tx with its tx hash
func (*SeeleClient) QueryValidatorsResult ¶
func (c *SeeleClient) QueryValidatorsResult(height int64) (pValsResult *ResultValidators, err error)
QueryValidatorsResult gets the validators info on a specific height query the latest block with height 0 input