Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoTxForAddr = fmt.Errorf("no transaction for the address") ErrNoUnspentTx = fmt.Errorf("no spentable transaction for the address") )
View Source
var (
ErrImportAddress = fmt.Errorf("fail to import address")
)
Functions ¶
This section is empty.
Types ¶
type BlockrAddrData ¶
type BlockrAddrData struct {
Address string `json:"address"`
Balance float64 `json:"balance"`
FirstTx *BlockrTxData `json:"first_tx"`
}
type BlockrAgent ¶
type BlockrAgent struct {
// contains filtered or unexported fields
}
func NewBlockrAgent ¶
func NewBlockrAgent(apiHost string) *BlockrAgent
func (BlockrAgent) GetAddrUnspent ¶
func (b BlockrAgent) GetAddrUnspent(addr string) ([]*tx.UTXO, error)
type BlockrResp ¶
type BlockrResp struct {
Status string `json:"status"`
Data json.RawMessage `json:"data"`
Message string `json:"message"`
Code int `json:"code"`
}
type BlockrTxData ¶
type BlockrUTXO ¶
type BlockrUnspentData ¶
type BlockrUnspentData struct {
Address string `json:"address"`
Unspent []BlockrUTXO `json:"unspent"`
}
type DaemonAgent ¶
type DaemonAgent struct {
// contains filtered or unexported fields
}
func NewDaemonAgent ¶
func NewDaemonAgent(apiUrl, username, password string) *DaemonAgent
func (DaemonAgent) GetAddrUnspent ¶
func (da DaemonAgent) GetAddrUnspent(addr string) ([]*tx.UTXO, error)
type ErrQueryFailure ¶
type ErrQueryFailure struct {
// contains filtered or unexported fields
}
func (ErrQueryFailure) Error ¶
func (e ErrQueryFailure) Error() string
type RPCParam ¶
type RPCParam struct {
Method string `json:"method"`
Params []interface{} `json:"params"`
}
type RPCResponse ¶
type RPCResponse struct {
Result json.RawMessage `json:"result"`
Error *RPCError `json:"error"`
}
type ReceivedAddress ¶
Click to show internal directories.
Click to hide internal directories.