btcapi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Request

func Request(method, baseURL, subPath string, requestBody io.Reader) ([]byte, error)

Types

type BRC20Context

type BRC20Context struct {
	InscriptionNumber int64
	InscriptionId     string
	Offset            int64
	Moved             bool
	Sequence          int64
}

type BTCAPIClient

type BTCAPIClient interface {
	GetRawTransaction(txHash *chainhash.Hash) (*wire.MsgTx, error)
	BroadcastTx(tx *wire.MsgTx) (*chainhash.Hash, error)
	ListUnspent(address btcutil.Address) ([]*UnspentOutput, error)
}

type UnspentOutput

type UnspentOutput struct {
	Value        int64
	Outpoint     *wire.OutPoint
	Output       *wire.TxOut
	BRC20Context []*BRC20Context
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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