Versions in this module Expand all Collapse all v1 v1.1.3 Apr 7, 2020 v1.1.1 Apr 7, 2020 Changes in this version + type Balance struct + Amount uint64 + type BaseClient struct + func (bk *BaseClient) ReadResponse(resp *resty.Response) ([]byte, error) + type Block struct + func (blk *Block) GetByHash(hash string) (*BlockResponse, error) + func (blk *Block) GetByHeight(height uint32) (*BlockResponse, error) + type BlockResponse struct + Header *Header + Transactions []*crypto.Tx + type Client struct + Block *Block + Tx *Tx + Wallet *Wallet + func NewClient(baseAddress string) *Client + func (cl *Client) NodeInfo() (*response.Node, error) + type ErrorResponse struct + AppCode int64 + ErrorText string + StatusText string + type Header struct + AdviceCount uint32 + Bits uint32 + Hash string + Height uint32 + MerkleRoot string + Nonce uint32 + PrevBlock string + Script string + Seed string + Size uint64 + Timestamp uint32 + TxnCount uint32 + Type uint32 + Version uint32 + type Tx struct + func (tx *Tx) GetByHashList(hashes ...string) ([]TxResponse, error) + func (tx *Tx) GetHashListByAddress(address string) ([]string, error) + func (tx *Tx) GetHashListByHeight(height int) ([]string, error) + func (tx *Tx) Publish(txData crypto.Tx) (*TxPublishResponse, error) + func (tx *Tx) Validate(txData crypto.Tx) error + type TxPublishResponse struct + Result string + type TxResponse struct + Block string + Confirmed uint32 + ConfirmedTimestamp uint32 + Size uint32 + Total int + func (txr *TxResponse) UnmarshalJSON(data []byte) error + type Wallet struct + func (w *Wallet) GetBalance(address string) (uint64, error) + func (w *Wallet) GetUnspent(address string) ([]*crypto.TransactionInputOutpoint, error)