# Functions
BuildExplorerBlock takes a block and its height and uses it to construct an explorer block.
BuildExplorerTransaction takes a transaction and the height + id of the block it appears in an uses that to build an explorer transaction.
BuildTransactionSet returns the blocks and transactions that are associated with a set of transaction ids.
DecodeError returns the Error from a API response.
GetTransactionByLongID returns a transaction from the given full transaction id (if one exists).
GetTransactionByShortID returns a transaction from the given short ID (if one exists).
HTTPGet is a utility function for making http get requests to sia with a whitelisted user-agent.
HTTPGETAuthenticated is a utility function for making authenticated http get requests to sia with a whitelisted user-agent and the supplied password.
HTTPPost is a utility function for making post requests to sia with a whitelisted user-agent.
HTTPPostAuthenticated is a utility function for making authenticated http post requests to sia with a whitelisted user-agent and the supplied password.
NewConsensusGetTransactionHandler creates a handler to handle lookups of a transaction based on a short or long ID.
NewConsensusGetUnspentBlockstakeOutputHandler creates a handler to handle lookups of unspent blockstake outputs.
NewConsensusGetUnspentCoinOutputHandler creates a handler to handle lookups of unspent coin outputs.
NewConsensusRootHandler creates a handler to handle the API calls to /consensus.
NewExplorerBlocksHandler creates a handler to handle API calls to /explorer/blocks/:height.
NewExplorerConstantsHandler creates a handler to handle API calls to /explorer/constants.
NewExplorerHashHandler creates a handler to handle GET requests to /explorer/hash/:hash.
NewExplorerHistoryStatsHandler creates a handler to handle API calls to /explorer/stats/history.
NewExplorerRangeStatsHandler creates a handler to handle API calls to /explorer/stats/range.
NewExplorerRootHandler creates a handler to handle API calls to /explorer.
NewGatewayConnectHandler creates a handler to handle the API call to add a peer to the gateway.
NewGatewayDisconnectHandler creates a handler to handle the API call to remove a peer from the gateway.
NewGatewayRootHandler creates a handler to handle the API call asking for the gatway status.
NewTransactionPoolGetTransactionsHandler creates a handler to handle the API call to get the transaction pool transactions, filtered or not.
NewTransactionPoolOptionsTransactionHandler creates a handler to handle OPTIONS calls.
NewTransactionPoolPostTransactionHandler creates a handler to handle the API call to post a complete/valid transaction on /transactionpool/transactions.
NewWalletAddressesHandler creates a handler to handle API calls to /wallet/addresses.
NewWalletAddressHandler creates a handler to handle API calls to /wallet/address.
NewWalletBackupHandler creates a handler to handle API calls to /wallet/backup.
NewWalletBlockStakesHandler creates a handler to handle API calls to /wallet/blockstake.
NewWalletBlockStakeStatsHandler creates a new handler to handle API calls to /wallet/blockstakestat.
NewWalletCoinsHandler creates a handler to handle API calls to /wallet/coins.
NewWalletCreateTransactionHandler creates a handler to handle API calls to POST /wallet/create/transaction.
NewWalletFundCoinsHandler creates a handler to handle the API calls to /wallet/fund/coins?amount=.
NewWalletGetPublicKeyHandler creates a handler to handle API calls to /wallet/publickey.
NewWalletInitHandler creates a handler to handle API calls to /wallet/init.
NewWalletKeyHandler creates a handler to handle API calls to /wallet/key/:unlockhash.
NewWalletListLockedHandler creates a handler to handle API calls to /wallet/locked.
NewWalletListUnlockedHandler creates a handler to handle API calls to /wallet/unlocked.
NewWalletLockHandler creates a handler to handle API calls to /wallet/lock.
NewWalletRootHandler creates a handler to handle API calls to /wallet.
NewWalletSeedHandler creates a handler to handle API calls to /wallet/seed.
NewWalletSeedsHandler creates a handler to handle API calls to /wallet/seeds.
NewWalletSignHandler creates a handler to handle API calls to POST /wallet/sign.
NewWalletTransactionCreateHandler creates a handler to handle API calls to POST /wallet/transaction.
NewWalletTransactionHandler creates a handler to handle API calls to /wallet/transaction/:id.
NewWalletTransactionsAddrHandler creates a handler to handle API calls to /wallet/transactions/:addr.
NewWalletTransactionsHandler creates a handler to handle API calls to /wallet/transactions.
NewWalletUnlockHandler creates a handler to handle API calls to /wallet/unlock.
Non2xx returns true for non-success HTTP status codes.
RegisterConsensusHTTPHandlers registers the default Rivine handlers for all default Rivine Consensus HTTP endpoints.
RegisterExplorerHTTPHandlers registers the default Rivine handlers for all default Rivine Explprer HTTP endpoints.
RegisterGatewayHTTPHandlers registers the default Rivine handlers for all default Rivine Gateway HTTP endpoints.
RegisterTransactionPoolHTTPHandlers registers the default Rivine handlers for all default Rivine TransactionPool HTTP endpoints.
RegisterWalletHTTPHandlers registers the default Rivine handlers for all default Rivine Wallet HTTP endpoints.
RequirePasswordHandler is middleware that requires a request to authenticate with a password using HTTP basic auth.
RequireUserAgentHandler is middleware that requires all requests to set a UserAgent that contains the specified string.
ScanAddress scans a types.UnlockHash from a string.
ScanAmount scans a types.Currency from a string.
ScanHash scans a crypto.Hash from a string.
UnrecognizedCallHandler handles calls to unknown pages (404).
WriteError an error to the API caller.
WriteJSON writes the object to the ResponseWriter.
WriteSuccess writes the HTTP header with status 204 No Content to the ResponseWriter.
# Constants
hash type string constants.
hash type string constants.
hash type string constants.
hash type string constants.
hash type string constants.
# Variables
ErrInvalidIDLength is returned when a supposed id does not have the correct length.
ErrNotFound is returned when a transaction is not found for a (short) id, but the ID itself is otherwise valid.
ErrStatusNotFound is returned when status wasn't found.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Error is a type that is encoded as JSON and returned in an API response in the event of an error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GatewayGET contains the fields returned by a GET call to "/gateway".
HTTPClient is used to communicate with the Rivine-based daemon, using the exposed (local) REST API over HTTP.
HTTPError is return for HTTP Errors by the HTTPClient.
No description provided by the author
No description provided by the author
TransactionSetFilters is used to filter a transaction seto to be build.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
Router represents an http.Handler which can be used to dispatch requests to different handler functions via configurable routes.