Documentation ¶
Overview ¶
access to payment functions
Index ¶
- func BitcoinFinalise() error
- func BitcoinInitialise(configuration configuration.BitcoinAccess) error
- func CheckPaid(txId transaction.Link) bool
- func MinerAddresses() []block.MinerAddress
- func Pay(currency string, paymentData []byte, count int) (string, error)
- func PaymentAddresses() []block.MinerAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BitcoinFinalise ¶
func BitcoinFinalise() error
finialise - stop all background tasks also calls the internal finalisePayment()
func BitcoinInitialise ¶
func BitcoinInitialise(configuration configuration.BitcoinAccess) error
initialise for bitcoin payments also calls the internal initialisePayment() and register()
Note fee is a string value and is converted to Satoshis to avoid rounding errors
func CheckPaid ¶
func CheckPaid(txId transaction.Link) bool
check if paid and set paid flag
returns true on transition from unpaid to paid
func MinerAddresses ¶
func MinerAddresses() []block.MinerAddress
for miner routines to get this nodes addresses
func PaymentAddresses ¶
func PaymentAddresses() []block.MinerAddress
for RPC to get payment addresses - if any
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.