package
0.0.0-20180405193121-18267a13183b
Repository: https://github.com/jackzampolin/addrindex-server.git
Documentation: pkg.go.dev

# Functions

NewAddrServer returns a new AddrServer instance.
NewCurrencyData returns the struct that manages currency data.
NewGetBestBlockHashReturn gets the bytes.
NewGetDifficultyReturn gets the bytes.
NewPostError is a convinence function for returning errors to clients.
NewSyncResponse returns a response for the /sync route.
NewTestAddrServer returns a new AddrServer instance.

# Constants

BlockstackStartBlock represents the point on the bitcoin blockchain where blockstack started.

# Structs

AddressBalance is the balance of an address.
AddressDelta represents a balance change for an address.
AddrMempoolTransaction represents a transaction in the mempool prevtxid and prevout that can be used for marking utxos as spent Instead of height there is timestamp that is the time the transaction entered the mempool.
AddrServer is the struct where all methods are defined.
AddrServerConfig configures the AddrServer.
BestBlockHashReturn handles the return for the /sync?q=getBestBlockHash.
BitcoreRequest represents a request to a bitcore node.
BlockHashReturn handles the return for the /block-index/<int>.
Blocks represents the cached /blocks response.
CurrencyData represents the current BTC price from a couple of providers.
GetAddressBalanceResult is the response struct for GetAddressBalance.
GetAddressDeltasResponse is the response struct for GetAddressDeltas.
GetAddressMempoolResponse is the response struct for GetAddressMempool.
GetAddressTxIDsResponse wraps the return.
GetAddressUTXOsResponse is the response struct for GetAddressUTXOs.
GetBlockHashesResponse is response struct for GetBlockHashes.
GetBlocksResponse formats the response for the GetBlocks route.
GetDifficultyReturn models a response to the /status endpoint.
GetRawTransactionResponse facilitates return.
GetSpentInfoResponse is response struct for GetSpentInfo.
PoolInfo represents the mining pool information.
PostError models an error returned to a client during the post.
ScriptPubKeyIns is the bitcore representation of a ScriptPubKey.
ScriptSig models the scriptSig portion of a vin.
SpentInfo contains data about spent transaction outputs.
SyncResponse models a response to the sync command.
TransactionIns is the response struct for GetRawTransaction.
TxPost models a post request for sending a transaction.
UTXOIns is an insight representation of a UTXO.
UTXOInsOut Output representation.
VerifyPost models a post request for verifying a transaction.
VinIns is the bitcore representation of a Vin.
VoutIns is the bitcore representation of a Vout.

# Type aliases

UTXOInsOuts is a collection with methods defined for sorting.