dogecoin

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SIGHASH_ALL          = 1
	SIGHASH_NONE         = 2
	SIGHASH_SINGLE       = 3
	SIGHASH_ANYONECANPAY = 0x80 // flag
)

Signature hash types/flags from libdogecoin

Variables

This section is empty.

Functions

This section is empty.

Types

type L1Libdogecoin

type L1Libdogecoin struct {
	// contains filtered or unexported fields
}

func NewL1Libdogecoin

func NewL1Libdogecoin(config giga.Config, fallback giga.L1) (L1Libdogecoin, error)

NewL1Libdogecoin returns a giga.L1 implementor that uses libdogecoin Allows (non-implemented) functions to delegate to another L1 implementation.

func (L1Libdogecoin) DecodeTransaction

func (l L1Libdogecoin) DecodeTransaction(txnHex string) (giga.RawTxn, error)

func (L1Libdogecoin) EstimateFee

func (l L1Libdogecoin) EstimateFee(confirmTarget int) (feePerKB giga.CoinAmount, err error)

func (L1Libdogecoin) GetBestBlockHash

func (l L1Libdogecoin) GetBestBlockHash() (blockHash string, err error)

func (L1Libdogecoin) GetBlock

func (l L1Libdogecoin) GetBlock(blockHash string) (txn giga.RpcBlock, err error)

func (L1Libdogecoin) GetBlockCount

func (l L1Libdogecoin) GetBlockCount() (blockCount int64, err error)

func (L1Libdogecoin) GetBlockHash

func (l L1Libdogecoin) GetBlockHash(height int64) (hash string, err error)

func (L1Libdogecoin) GetBlockHeader

func (l L1Libdogecoin) GetBlockHeader(blockHash string) (txn giga.RpcBlockHeader, err error)

func (L1Libdogecoin) GetBlockHex

func (l L1Libdogecoin) GetBlockHex(blockHash string) (hex string, err error)

func (L1Libdogecoin) GetBlockchainInfo added in v1.0.1

func (l L1Libdogecoin) GetBlockchainInfo() (info giga.RpcBlockchainInfo, err error)

func (L1Libdogecoin) GetTransaction

func (l L1Libdogecoin) GetTransaction(txnHash string) (txn giga.RawTxn, err error)

func (L1Libdogecoin) MakeAddress

func (l L1Libdogecoin) MakeAddress(isTestNet bool) (giga.Address, giga.Privkey, error)

func (L1Libdogecoin) MakeChildAddress

func (l L1Libdogecoin) MakeChildAddress(privkey giga.Privkey, keyIndex uint32, isInternal bool) (giga.Address, error)

func (L1Libdogecoin) MakeTransaction

func (l L1Libdogecoin) MakeTransaction(inputs []giga.UTXO, outputs []giga.NewTxOut, fee giga.CoinAmount, change giga.Address, private_key giga.Privkey) (giga.NewTxn, error)

func (L1Libdogecoin) Send

func (l L1Libdogecoin) Send(txnHex string) (txid string, err error)

type L1Mock

type L1Mock struct{}

func NewL1Mock

func NewL1Mock(config giga.Config) (L1Mock, error)

NewL1Mock returns a mocked giga.L1 implementor

func (L1Mock) DecodeTransaction

func (l L1Mock) DecodeTransaction(txnHex string) (giga.RawTxn, error)

func (L1Mock) EstimateFee

func (l L1Mock) EstimateFee(confirmTarget int) (feePerKB giga.CoinAmount, err error)

func (L1Mock) GetBestBlockHash

func (l L1Mock) GetBestBlockHash() (blockHash string, err error)

func (L1Mock) GetBlock

func (l L1Mock) GetBlock(blockHash string) (txn giga.RpcBlock, err error)

func (L1Mock) GetBlockCount

func (l L1Mock) GetBlockCount() (blockCount int64, err error)

func (L1Mock) GetBlockHash

func (l L1Mock) GetBlockHash(height int64) (hash string, err error)

func (L1Mock) GetBlockHeader

func (l L1Mock) GetBlockHeader(blockHash string) (txn giga.RpcBlockHeader, err error)

func (L1Mock) GetBlockHex

func (l L1Mock) GetBlockHex(blockHash string) (hex string, err error)

func (L1Mock) GetBlockchainInfo added in v1.0.1

func (l L1Mock) GetBlockchainInfo() (info giga.RpcBlockchainInfo, err error)

func (L1Mock) GetTransaction

func (l L1Mock) GetTransaction(txnHash string) (txn giga.RawTxn, err error)

func (L1Mock) MakeAddress

func (l L1Mock) MakeAddress(isTestNet bool) (giga.Address, giga.Privkey, error)

func (L1Mock) MakeChildAddress

func (l L1Mock) MakeChildAddress(privkey giga.Privkey, addressIndex uint32, isInternal bool) (giga.Address, error)

func (L1Mock) MakeTransaction

func (l L1Mock) MakeTransaction(inputs []giga.UTXO, outputs []giga.NewTxOut, fee giga.CoinAmount, change giga.Address, private_key giga.Privkey) (giga.NewTxn, error)

func (L1Mock) Send

func (l L1Mock) Send(txnHex string) (txid string, err error)

Jump to

Keyboard shortcuts

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