Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonResponse ¶
func JsonResponse(ctx *routing.Context, data interface{}) error
Types ¶
type BalanceData ¶
type BalanceData struct {
Balance int64 `json:"balance"`
}
type BalanceResponse ¶
type BalanceResponse struct {
Balance string `json:"balance" example:"0"`
}
type BalancesResponse ¶
type GasLimitResponse ¶
type GasLimitResponse struct {
GasLimit uint64 `json:"gasLimit"`
}
type GasPriceResponse ¶
type GasPriceResponse struct {
GasPrice int64 `json:"gasPrice" example:"0"`
}
type TransactionFeeResponse ¶
type TransactionFeeResponse struct {
Fee float64 `json:"fee" example:"0"`
}
type TransactionResult ¶
type TransactionResult struct {
Hash string `json:"hash"`
}
type UTXO ¶
type UTXO struct { Address string `json:"address"` Txid string `json:"txid"` Vout int `json:"vout"` ScriptPubKey string `json:"scriptPubKey"` Amount string `json:"amount"` Satoshis int `json:"satoshis"` Height int `json:"height"` Confirmations int `json:"confirmations"` LegacyAddress string `json:"legacyAddress,omitempty"` CashAddress string `json:"cashAddress,omitempty"` }
type UTXOResponse ¶
type UTXOResponse struct {
Utxo []UTXO `json:"utxo"`
}
Click to show internal directories.
Click to hide internal directories.