insight

package
v0.0.0-...-b2d66a9 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InsightAPI

type InsightAPI struct {
	APIEndpoint string
	Proxified   bool
	// contains filtered or unexported fields
}

func GetAnonymizedInsightAPI

func GetAnonymizedInsightAPI() InsightAPI

func GetBlockdozerBitcoinCashInsightAPI

func GetBlockdozerBitcoinCashInsightAPI() InsightAPI

func GetRandomBitcoinInsightAPI

func GetRandomBitcoinInsightAPI() InsightAPI

func NewAPI

func NewAPI(endpoint string, proxified bool, rateLimit int) InsightAPI

func (InsightAPI) EstimateFee

func (api InsightAPI) EstimateFee() (int, error)

func (InsightAPI) GetHTTPGetMethod

func (api InsightAPI) GetHTTPGetMethod() func(string) (string, error)

func (InsightAPI) GetHTTPPostMethod

func (api InsightAPI) GetHTTPPostMethod() func(string, url.Values) (string, error)

func (InsightAPI) GetInsightAddressResponse

func (api InsightAPI) GetInsightAddressResponse(publicKey string) (WalletBalance, error)

func (InsightAPI) GetInsightUnspentTxResponse

func (api InsightAPI) GetInsightUnspentTxResponse(publicKey string) ([]Tx, error)

func (InsightAPI) PushInsightTransacation

func (api InsightAPI) PushInsightTransacation(rawtx string) error

type Tx

type Tx struct {
	PublicKey       string  `json:"address"`
	TxID            string  `json:"txid"`
	Vout            uint64  `json:"vout"`
	Ts              uint64  `json:"ts"`
	ScriptPublicKey string  `json:"scriptPubKey"`
	Amount          float64 `json:"amount"`
	Confirmations   uint64  `json:"confirmations"`
}

type TxOutput

type TxOutput struct {
	PublicKey string `json:"address"`
	Satoshis  int    `json:"satoshis"`
}

type UtxoSet

type UtxoSet struct {
	PrivateKey string `json:"private_key"`
	Utxo       []Tx   `json:"utxo"`
}

type WalletBalance

type WalletBalance struct {
	PublicKey                      string  `json:"address"`
	Balance                        float64 `json:"balance"`
	BalanceTxApperances            int     `json:"txApperances"`
	UnconfirmedBalance             float64 `json:"unconfirmedBalance"`
	UnconfirmedBalanceTxApperances int     `json:"unconfirmedTxApperances"`
}

Jump to

Keyboard shortcuts

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