Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FormattedAmount ¶
type FormattedAmount struct { Amount string `json:"amount"` Unit string `json:"unit"` Conversions map[string]string `json:"conversions"` }
FormattedAmount with unit and conversions.
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
Handlers provides a web api to the account.
func NewHandlers ¶
func NewHandlers( handleFunc func(string, func(*http.Request) (interface{}, error)) *mux.Route, log *logrus.Entry) *Handlers
NewHandlers creates a new Handlers instance.
type Transaction ¶
type Transaction struct { ID string `json:"id"` NumConfirmations int `json:"numConfirmations"` Type string `json:"type"` Amount FormattedAmount `json:"amount"` Fee FormattedAmount `json:"fee"` Time *string `json:"time"` Addresses []string `json:"addresses"` // BTC specific fields. VSize int64 `json:"vsize"` Size int64 `json:"size"` Weight int64 `json:"weight"` FeeRatePerKb FormattedAmount `json:"feeRatePerKb"` // ETH specific fields Gas uint64 `json:"gas"` }
Transaction is the info returned per transaction by the /transactions endpoint.
Click to show internal directories.
Click to hide internal directories.