Versions in this module Expand all Collapse all v0 v0.3.2 Mar 5, 2020 Changes in this version + const MainnetMagic + const TestnetMagic + var MainNetParams chaincfg.Params + var TestNet3Params chaincfg.Params + func GetChainParams(chain string) *chaincfg.Params + func NewDecredRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error) + type DecodeRawTransactionResult struct + Error Error + Result struct{ ... } + type DecredParser struct + func NewDecredParser(params *chaincfg.Params, c *btc.Configuration) *DecredParser + func (p *DecredParser) DerivationBasePath(xpub string) (string, error) + func (p *DecredParser) DeriveAddressDescriptors(xpub string, change uint32, indexes []uint32) ([]bchain.AddressDescriptor, error) + func (p *DecredParser) DeriveAddressDescriptorsFromTo(xpub string, change uint32, fromIndex uint32, toIndex uint32) ([]bchain.AddressDescriptor, error) + func (p *DecredParser) GetAddrDescForUnknownInput(tx *bchain.Tx, input int) bchain.AddressDescriptor + func (p *DecredParser) GetAddrDescFromAddress(address string) (bchain.AddressDescriptor, error) + func (p *DecredParser) GetAddrDescFromVout(output *bchain.Vout) (bchain.AddressDescriptor, error) + func (p *DecredParser) GetAddressesFromAddrDesc(addrDesc bchain.AddressDescriptor) ([]string, bool, error) + func (p *DecredParser) PackTx(tx *bchain.Tx, height uint32, blockTime int64) ([]byte, error) + func (p *DecredParser) ParseBlock(b []byte) (*bchain.Block, error) + func (p *DecredParser) ParseTxFromJson(jsonTx json.RawMessage) (*bchain.Tx, error) + func (p *DecredParser) UnpackTx(buf []byte) (*bchain.Tx, uint32, error) + type DecredRPC struct + func (d *DecredRPC) Call(req interface{}, res interface{}) error + func (d *DecredRPC) EstimateFee(blocks int) (big.Int, error) + func (d *DecredRPC) EstimateSmartFee(blocks int, conservative bool) (big.Int, error) + func (d *DecredRPC) GetBestBlockHash() (string, error) + func (d *DecredRPC) GetBestBlockHeight() (uint32, error) + func (d *DecredRPC) GetBlock(hash string, height uint32) (*bchain.Block, error) + func (d *DecredRPC) GetBlockHash(height uint32) (string, error) + func (d *DecredRPC) GetBlockHeader(hash string) (*bchain.BlockHeader, error) + func (d *DecredRPC) GetBlockInfo(hash string) (*bchain.BlockInfo, error) + func (d *DecredRPC) GetChainInfo() (*bchain.ChainInfo, error) + func (d *DecredRPC) GetMempoolTransactions() ([]string, error) + func (d *DecredRPC) GetTransaction(txid string) (*bchain.Tx, error) + func (d *DecredRPC) GetTransactionForMempool(txid string) (*bchain.Tx, error) + func (d *DecredRPC) GetTransactionSpecific(tx *bchain.Tx) (json.RawMessage, error) + func (d *DecredRPC) Initialize() error + func (d *DecredRPC) SendRawTransaction(tx string) (string, error) + type Error struct + Code int + Message string + type EstimateFeeResult struct + Error Error + Result json.Number + type EstimateSmartFeeResult struct + Error Error + Result struct{ ... } + type GenericCmd struct + ID int + Method string + Params []interface{} + type GetBestBlockResult struct + Error Error + Result struct{ ... } + type GetBlockChainInfoResult struct + Error Error + Result struct{ ... } + type GetBlockHashResult struct + Error Error + Result string + type GetBlockHeaderResult struct + Error Error + Result struct{ ... } + type GetBlockResult struct + Error Error + Result struct{ ... } + type GetInfoChainResult struct + Error Error + Result struct{ ... } + type GetNetworkInfoResult struct + Error Error + Result struct{ ... } + type GetTransactionResult struct + Error Error + Result struct{ ... } + type MempoolTxsResult struct + Error Error + Result []string + type RawTx struct + BlockIndex uint32 + Blocktime int64 + Confirmations int64 + Expiry uint32 + Hex string + LockTime uint32 + Time int64 + Txid string + Version int32 + Vin []Vin + Vout []Vout + type ScriptPubKeyResult struct + Addresses []string + Asm string + CommitAmt *float64 + Hex string + ReqSigs int32 + Type string + type ScriptSig struct + Asm string + Hex string + type SendRawTransactionResult struct + Error Error + Result string + type TxExtraInfo struct + BlockHash string + BlockHeight uint32 + type Vin struct + AmountIn float64 + BlockHeight uint32 + BlockIndex uint32 + Coinbase string + ScriptSig *ScriptSig + Sequence uint32 + Stakebase string + Tree int8 + Txid string + Vout uint32 + type Vout struct + N uint32 + ScriptPubKey ScriptPubKeyResult + Value float64 + Version uint16