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 ¶
select a coin by symbol and return Coin struct and error coin symbol to lower case
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 ¶
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"` }
Click to show internal directories.
Click to hide internal directories.