bcoins

package
v0.0.0-...-476d922 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Copyright (c) 2019 Romano (Viacoin developer) Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.

Copyright (c) 2019 Romano (Viacoin developer) Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.

Copyright (c) 2019 Romano (Viacoin developer) Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalUSD

func GetTotalUSD(amount float64, name string) string

Types

type Coin

type Coin struct {
	Symbol     string
	Name       string
	Network    *Network
	Insight    *Insight
	FeePerByte int64
	Binance    bool
}

func GetAllCoins

func GetAllCoins() []Coin

returns all coins in a Coin struct slice

func SelectCoin

func SelectCoin(symbol string) (Coin, error)

select a coin by symbol and return Coin struct and error

type Insight

type Insight struct {
	Explorer string
	Api      string
}

type Network

type Network struct {
	Name   string
	Symbol string
	// contains filtered or unexported fields
}

func (Network) GetNetworkParams

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

type Ticker

type Ticker []struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	Symbol   string `json:"symbol"`
	PriceUSD string `json:"price_usd"`
	// contains filtered or unexported fields
}

func GetTicker

func GetTicker(name string) (*Ticker, error)

type Transaction

type Transaction struct {
	CoinName           string `json:"coin_name"`
	Coinsymbol         string `json:"coinsymbol"`
	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