# Functions
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.
New creates a new Sia API from the provided modules.
NewClient creates a new api.Client using the provided address and password.
RequirePassword is middleware that requires a request to authenticate with a password using HTTP basic auth.
RequireUserAgent is middleware that requires all requests to set a UserAgent that contains the specified 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.
# Structs
API encapsulates a collection of modules and implements a http.Handler to access their methods.
Client holds fields to make requests to a Sia API.
ConsensusGET contains general information about the consensus set, with tags to support idiomatic json encodings.
ConsensusGetTransaction is the object returned by a GET request to /consensus/transaction/:id.
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
GatewayGET contains the fields returned by a GET call to "/gateway".
No description provided by the author
TransactionPoolPOST is the success response for a POST to /transactionpool/transactions.
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