Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Estimation ¶
Estimation interface defines what data an estimation response must include
type Explorer ¶
type Explorer interface { Ping() int GetUnspents(address string) ([]Utxo, error) GetTransaction(hash string) (Transaction, error) GetTransactionHex(hash string) (string, error) Broadcast(tx string) (string, error) EstimateFees() (Estimation, error) }
Explorer interface defines method for a block explorer
type Transaction ¶
type Transaction interface { Hash() string Version() int LockTime() int Size() int Weight() int Confirmed() bool Fees() int Inputs() []TxInput Outputs() []TxOutput }
Transaction interface defines what data a transaction must include
type TxInput ¶
type TxInput interface { Hash() string Index() int ScriptSig() string Sequence() int OutputValue() int Address() string }
TxInput defines what data a tx input must include
Click to show internal directories.
Click to hide internal directories.