Documentation ¶
Index ¶
- type Cryptocurrency
- func (t Cryptocurrency) Balance(seed string) (amount float64, err error)
- func (t Cryptocurrency) BalanceUnits(seed string) (units *big.Int, err error)
- func (t Cryptocurrency) GenWallet() (seed, address string, err error)
- func (t Cryptocurrency) Send(seed, dest string, amount float64) (tx string, err error)
- func (t Cryptocurrency) SendAll(seed, dest string) (tx string, err error)
- func (t Cryptocurrency) SendUnits(seed, dest string, units *big.Int) (tx string, err error)
- func (t Cryptocurrency) Testnet(state bool) (err error)
- func (t Cryptocurrency) Validate(address string) (valid bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cryptocurrency ¶
type Cryptocurrency int
const ( Bitcoin Cryptocurrency = iota Ethereum Monero Cardano )
func (Cryptocurrency) Balance ¶
func (t Cryptocurrency) Balance(seed string) (amount float64, err error)
func (Cryptocurrency) BalanceUnits ¶
func (t Cryptocurrency) BalanceUnits(seed string) (units *big.Int, err error)
BalanceUnits returns the balance of the wallet (not address!) in Satoshi/Wei/etc.
func (Cryptocurrency) GenWallet ¶
func (t Cryptocurrency) GenWallet() (seed, address string, err error)
func (Cryptocurrency) Send ¶
func (t Cryptocurrency) Send(seed, dest string, amount float64) (tx string, err error)
func (Cryptocurrency) SendAll ¶
func (t Cryptocurrency) SendAll(seed, dest string) (tx string, err error)
func (Cryptocurrency) SendUnits ¶
SendUnits send units amount of Satoshi/Wei/etc. to the address dest
func (Cryptocurrency) Testnet ¶
func (t Cryptocurrency) Testnet(state bool) (err error)
Click to show internal directories.
Click to hide internal directories.