Documentation ¶
Index ¶
- Constants
- type L1Libdogecoin
- func (l L1Libdogecoin) DecodeTransaction(txnHex string) (giga.RawTxn, error)
- func (l L1Libdogecoin) EstimateFee(confirmTarget int) (feePerKB giga.CoinAmount, err error)
- func (l L1Libdogecoin) GetBestBlockHash() (blockHash string, err error)
- func (l L1Libdogecoin) GetBlock(blockHash string) (txn giga.RpcBlock, err error)
- func (l L1Libdogecoin) GetBlockCount() (blockCount int64, err error)
- func (l L1Libdogecoin) GetBlockHash(height int64) (hash string, err error)
- func (l L1Libdogecoin) GetBlockHeader(blockHash string) (txn giga.RpcBlockHeader, err error)
- func (l L1Libdogecoin) GetBlockHex(blockHash string) (hex string, err error)
- func (l L1Libdogecoin) GetBlockchainInfo() (info giga.RpcBlockchainInfo, err error)
- func (l L1Libdogecoin) GetTransaction(txnHash string) (txn giga.RawTxn, err error)
- func (l L1Libdogecoin) MakeAddress(isTestNet bool) (giga.Address, giga.Privkey, error)
- func (l L1Libdogecoin) MakeChildAddress(privkey giga.Privkey, keyIndex uint32, isInternal bool) (giga.Address, error)
- func (l L1Libdogecoin) MakeTransaction(inputs []giga.UTXO, outputs []giga.NewTxOut, fee giga.CoinAmount, ...) (giga.NewTxn, error)
- func (l L1Libdogecoin) Send(txnHex string) (txid string, err error)
- type L1Mock
- func (l L1Mock) DecodeTransaction(txnHex string) (giga.RawTxn, error)
- func (l L1Mock) EstimateFee(confirmTarget int) (feePerKB giga.CoinAmount, err error)
- func (l L1Mock) GetBestBlockHash() (blockHash string, err error)
- func (l L1Mock) GetBlock(blockHash string) (txn giga.RpcBlock, err error)
- func (l L1Mock) GetBlockCount() (blockCount int64, err error)
- func (l L1Mock) GetBlockHash(height int64) (hash string, err error)
- func (l L1Mock) GetBlockHeader(blockHash string) (txn giga.RpcBlockHeader, err error)
- func (l L1Mock) GetBlockHex(blockHash string) (hex string, err error)
- func (l L1Mock) GetBlockchainInfo() (info giga.RpcBlockchainInfo, err error)
- func (l L1Mock) GetTransaction(txnHash string) (txn giga.RawTxn, err error)
- func (l L1Mock) MakeAddress(isTestNet bool) (giga.Address, giga.Privkey, error)
- func (l L1Mock) MakeChildAddress(privkey giga.Privkey, addressIndex uint32, isInternal bool) (giga.Address, error)
- func (l L1Mock) MakeTransaction(inputs []giga.UTXO, outputs []giga.NewTxOut, fee giga.CoinAmount, ...) (giga.NewTxn, error)
- func (l L1Mock) Send(txnHex string) (txid string, err error)
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 ¶
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 (L1Libdogecoin) MakeChildAddress ¶
func (L1Libdogecoin) MakeTransaction ¶
type L1Mock ¶
type L1Mock struct{}
func (L1Mock) DecodeTransaction ¶
func (L1Mock) EstimateFee ¶
func (l L1Mock) EstimateFee(confirmTarget int) (feePerKB giga.CoinAmount, err error)
func (L1Mock) GetBestBlockHash ¶
func (L1Mock) GetBlockCount ¶
func (L1Mock) GetBlockHeader ¶
func (l L1Mock) GetBlockHeader(blockHash string) (txn giga.RpcBlockHeader, err error)
func (L1Mock) GetBlockchainInfo ¶ added in v1.0.1
func (l L1Mock) GetBlockchainInfo() (info giga.RpcBlockchainInfo, err error)
func (L1Mock) GetTransaction ¶
func (L1Mock) MakeAddress ¶
func (L1Mock) MakeChildAddress ¶
func (L1Mock) MakeTransaction ¶
Click to show internal directories.
Click to hide internal directories.