responses

package
v0.0.0-...-480d9bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 3 Imported by: 0

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 BalancesResponse struct {
	Balances map[string]string `json:"balances"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL