bcoins

package
v0.0.0-...-772481a Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coin

type Coin struct {
	Name          string
	Unit          string
	Symbol        string
	Network       *Network
	Insight       *Insight
	TxVersion     int32
	MinRelayTxFee float64
	FeePerByte    int
	Dust          int64
}

func SelectCoin

func SelectCoin(symbol string) (Coin, error)

select a coin by symbol and return Coin struct and error coin symbol to lower case

type Insight

type Insight struct {
	Explorer string
	Api      string
}

type Network

type Network struct {
	Name           string
	P2PKH          byte
	P2SH           byte
	PrivateKeyID   byte
	HDCoinType     uint32
	HDPublicKeyID  [4]byte
	HDPrivateKeyID [4]byte
	// contains filtered or unexported fields
}

func (Network) ChainCgfMainNetParams

func (network Network) ChainCgfMainNetParams() *chaincfg.Params

set the chainparams correct for the given Network struct and returns the chaincfg.Params

type Transaction

type Transaction struct {
	AssetName          string `json:"asset_name"`
	AssetSymbol        string `json:"asset_symbol"`
	TxId               string `json:"txid"`
	SourceAddress      string `json:"source_address"`
	DestinationAddress string `json:"destination_address"`
	Amount             int64  `json:"amount"`
	UnsignedTx         string `json:"unsignedtx"`
	SignedTx           string `json:"signedtx"`
}

Jump to

Keyboard shortcuts

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