mxt

package
v0.0.0-...-c58ffef Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainnetMagic wire.BitcoinNet = 0x2d3fa2f5
)

Variables

View Source
var (
	MainNetParams chaincfg.Params
)

Functions

func GetChainParams

func GetChainParams(chain string) *chaincfg.Params

func NewMxtRPC

func NewMxtRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)

Types

type MxtParser

type MxtParser struct {
	*btc.BitcoinParser
	// contains filtered or unexported fields
}

func NewMxtParser

func NewMxtParser(params *chaincfg.Params, c *btc.Configuration) *MxtParser

func (*MxtParser) PackTx

func (p *MxtParser) PackTx(tx *bchain.Tx, height uint32, blockTime int64) ([]byte, error)

func (*MxtParser) UnpackTx

func (p *MxtParser) UnpackTx(buf []byte) (*bchain.Tx, uint32, error)

type MxtRPC

type MxtRPC struct {
	*btc.BitcoinRPC
}

func (*MxtRPC) GetBlock

func (b *MxtRPC) GetBlock(hash string, height uint32) (*bchain.Block, error)

func (*MxtRPC) GetTransactionForMempool

func (b *MxtRPC) GetTransactionForMempool(txid string) (*bchain.Tx, error)

func (*MxtRPC) Initialize

func (b *MxtRPC) Initialize() error

Jump to

Keyboard shortcuts

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