Versions in this module Expand all Collapse all v0 v0.2.7 May 10, 2021 Changes in this version type APIErrorResponse + Error string + ErrorCode int + ErrorMessage string + Success bool v0.2.6 Feb 2, 2021 v0.2.5 Sep 29, 2020 v0.2.4 May 16, 2020 v0.2.3 Apr 24, 2020 v0.2.2 Mar 3, 2020 v0.2.1 Jan 17, 2020 v0.2.0 Dec 28, 2019 Changes in this version + type Options struct + BackOffExponentFactor float64 + BackOffInitialTimeout time.Duration + BackOffMaxTimeout time.Duration + BackOffMaximumJitterInterval time.Duration + DialerKeepAlive time.Duration + DialerTimeout time.Duration + RequestRetryCount int + RequestTimeout time.Duration + TransportExpectContinueTimeout time.Duration + TransportIdleTimeout time.Duration + TransportMaxIdleConnections int + TransportTLSHandshakeTimeout time.Duration + UserAgent string + func ClientDefaultOptions() (clientOptions *Options) + type Parameters struct + Network NetworkType + UserAgent string v0.1.0 Dec 3, 2019 v0.0.4 Nov 23, 2019 v0.0.3 Oct 26, 2019 v0.0.2 Oct 26, 2019 v0.0.1 Oct 26, 2019 Changes in this version + const APIEndpoint + const ConnectionDialerKeepAlive + const ConnectionDialerTimeout + const ConnectionExpectContinueTimeout + const ConnectionExponentFactor + const ConnectionIdleTimeout + const ConnectionInitialTimeout + const ConnectionMaxIdleConnections + const ConnectionMaxTimeout + const ConnectionMaximumJitterInterval + const ConnectionRetryCount + const ConnectionTLSHandshakeTimeout + const ConnectionWithHTTPTimeout + const DefaultUserAgent + const NetworkMain + const NetworkStn + const NetworkTest + var ClientDefaultTransport = &http.Transport + type APIErrorResponse struct + Errors []string + Message nestedErrorMessage + type APIInternalError struct + ErrorMessage string + ErrorName string + Errors []string + type AddressInfo struct + Address string + Balance float64 + BalanceSatoshis int64 + TotalReceived float64 + TotalReceivedSatoshis int64 + TotalSent float64 + TotalSentSatoshis int64 + Transactions []string + TxAppearances int64 + UnconfirmedBalance float64 + UnconfirmedBalanceSatoshis int64 + UnconfirmedTxAppearances int64 + type BlockHashByHeightResponse struct + BlockHash string + type BlockHeaderResponse struct + Bits string + ChainWork string + Confirmations int64 + Difficulty float64 + Hash string + Height int64 + MedianTime int64 + MerkleRoot string + NextBlockHash string + Nonce int64 + PreviousBlockHash string + Time int64 + Version int + VersionHex string + type BlockRawResponse struct + RawBlock string + type BlockResponse struct + Bits string + ChainWork string + Confirmations int64 + Difficulty float64 + Hash string + Height int64 + MedianTime int64 + MerkleRoot string + NextBlockHash string + Nonce int64 + PreviousBlockHash string + Size int64 + Time int64 + Tx []string + Version int + VersionHex string + type ChainBestBlockHashResponse struct + BestBlockHash string + type ChainDifficultyResponse struct + Difficulty float64 + type ChainInfoResponse struct + Info chainInfo + type ChainLastBlockHashResponse struct + LastBlockHash string + SyncTipHash string + type Client struct + HTTPClient heimdall.Client + LastRequest *LastRequest + Parameters *RequestParameters + func NewClient(apiKey string) (c *Client, err error) + func (c *Client) AddMonitoredAddresses(addAddresses *MonitoredAddresses) (addresses MonitoredAddresses, err error) + func (c *Client) AddressInfo(address string) (addressInfo *AddressInfo, err error) + func (c *Client) AddressUnspentTransactions(address string) (transactions UnspentTransactions, err error) + func (c *Client) ChainBestBlockHash() (bestBlockHash *ChainBestBlockHashResponse, err error) + func (c *Client) ChainDifficulty() (difficulty *ChainDifficultyResponse, err error) + func (c *Client) ChainInfo() (chainInfo *ChainInfoResponse, err error) + func (c *Client) ChainLastBlockHash() (lastBlockHash *ChainLastBlockHashResponse, err error) + func (c *Client) GetBlock(hash string) (block *BlockResponse, err error) + func (c *Client) GetBlockHashByHeight(height int64) (blockHash *BlockHashByHeightResponse, err error) + func (c *Client) GetBlockHeader(hash string) (blockHeader *BlockHeaderResponse, err error) + func (c *Client) GetBlockRaw(hash string) (rawBlock *BlockRawResponse, err error) + func (c *Client) GetMonitoredAddresses() (addresses MonitoredAddresses, err error) + func (c *Client) GetTransaction(txID string) (transaction *Transaction, err error) + func (c *Client) GetTransactionRaw(txID string) (rawTx *TransactionRaw, err error) + func (c *Client) GetTransactions(transactionRequest *GetTransactionsRequest) (response *GetTransactionsResponse, err error) + func (c *Client) GetUnspentTransactions(transactionRequest *GetUnspentTransactionsRequest) (transactions UnspentTransactions, err error) + func (c *Client) GetWebhookConfig() (config *WebhookConfigResponse, err error) + func (c *Client) GetXpubAddresses(xPub string, offset, limit int, order, filterByAddress string) (addresses XpubAddresses, err error) + func (c *Client) GetXpubBalance(xPub string) (balance *XpubBalance, err error) + func (c *Client) GetXpubNextAddress(xPub string, reserveTimeSeconds int) (addresses XpubAddresses, err error) + func (c *Client) GetXpubTransactions(xPub string) (transactions XpubAddresses, err error) + func (c *Client) GetXpubUnspentTransactions(xPub, sort string) (transactions UnspentTransactions, err error) + func (c *Client) Request(endpoint string, method string, payload []byte) (response string, err error) + func (c *Client) SendTransaction(rawTx string) (txID *SendTransactionResponse, err error) + func (c *Client) UpdateWebhookConfig(updateConfig *WebhookUpdateConfig) (config *WebhookConfigResponse, err error) + type GetTransactionsRequest struct + Address string + Addresses []string + AfterBlockHash string + AfterHeight string + FromIndex int64 + IncludeAsm bool + IncludeHex bool + ToIndex int64 + type GetTransactionsResponse struct + From int64 + Items []Transaction + To int64 + TotalItems int64 + type GetUnspentTransactionsRequest struct + Address string + Addresses []string + Sort string + type LastRequest struct + Method string + PostData string + StatusCode int + URL string + type MonitoredAddress struct + Address string + type MonitoredAddresses []MonitoredAddress + type NetworkType string + type RequestParameters struct + APIKey string + Network NetworkType + UserAgent string + type SendTransactionResponse struct + TxID string + type Transaction struct + BlockHash string + BlockHeight int64 + BlockTime int64 + Confirmations int64 + Fees float64 + Hash string + LockTime int64 + RawTx string + Size int64 + Time int64 + TxID string + ValueIn float64 + ValueOut float64 + Version int + Vin []vinObject + Vout []voutObject + type TransactionRaw struct + RawTx string + type UnspentTransaction struct + Address string + Amount float64 + Chain int + Confirmations int64 + Height int64 + Num int + OutputIndex int64 + Path string + Satoshis int64 + Script string + ScriptPubKey string + TxID string + Value int64 + Vout int + type UnspentTransactions []UnspentTransaction + type WebhookConfigResponse struct + Enabled bool + ID string + Secret string + URL string + type WebhookUpdateConfig struct + Enabled bool + Secret string + URL string + type XPubAddress struct + Address string + Chain int + Height int64 + Num int + Path string + TxID string + type XpubAddresses []XPubAddress + type XpubBalance struct + Confirmed int64 + UnConfirmed int64