explorer

package module
v0.0.0-...-2b7c8bd Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 0 Imported by: 0

README

Bitcoin Core Explorer is an lightweight interface to Bitcoin core written in Golang

This is mockable and makes blockchain development easier in golang.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRawTxInput

type CreateRawTxInput struct {
	Inputs      RawTxInputs
	Outputs     RawTxOutputs
	Locktime    int32
	Replaceable bool
}

CreateRawTxInput CreateRawTxInput

type Explorer

type Explorer interface {
	GetNewAddress(label string, atype string) string
	SendToAddress(inp SendAddressInput) *SendAddressOutput
	ListUnspent(inp *ListUnspentInput) *[]ListUuspentOutput
	CreateRawTransaction(inp *CreateRawTxInput) string //hex

}

Explorer Explorer

type ListUnspentInput

type ListUnspentInput struct {
	Minconf       int64
	Maxconf       int64
	Addresses     []string
	IncludeUnsafe bool
	QueryOptions  QueryOptions
}

ListUnspentInput ListUnspentInput

type ListUuspentOutput

type ListUuspentOutput struct {
	TxID          string //hex
	Vout          float64
	Address       string
	Label         string
	ScriptPubKey  string
	Amount        float64
	Confirmations int32
	RedeemScript  string //hex
	WitnessScript string
	Spendable     bool
	Solvable      bool
	Reused        bool
	Desc          string
	Safe          bool
}

ListUuspentOutput ListUuspentOutput

type QueryOptions

type QueryOptions struct {
	MinimumAmount    interface{}
	MaximumAmount    interface{}
	MaximumCount     interface{}
	MinimumSumAmount interface{}
}

QueryOptions QueryOptions

type RawTxInputs

type RawTxInputs struct {
	TxID     string //hex
	Vout     float64
	Sequence int32
}

RawTxInputs RawTxInputs

type RawTxOutputs

type RawTxOutputs struct {
	AddressAmount map[string]interface{}
	Data          string //hex
}

RawTxOutputs RawTxOutputs

type SendAddressInput

type SendAddressInput struct {
	Address               string
	Amount                float32
	Comment               string
	CommentTo             string
	SubtractFeeFromAmount bool
	Replaceable           bool
	ConfTarget            int64
	EstimateMode          string
	AvoidReuse            bool
}

SendAddressInput SendAddressInput

type SendAddressOutput

type SendAddressOutput struct {
	TxID      string //hex
	FeeReason string
}

SendAddressOutput SendAddressOutput

Jump to

Keyboard shortcuts

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