Documentation
¶
Index ¶
- Variables
- type Balance
- type Monero
- func (m *Monero) GetBalance() (b Balance, err error)
- func (m *Monero) GetBulkPayments(height XMRHeight, ids ...XMRPaymentID) (tl []XMRPayment, err error)
- func (m *Monero) GetHeight() (h XMRHeight, err error)
- func (m *Monero) GetTransfers(sels string) (tl []XMRTransfer, err error)
- func (m *Monero) MakeIntegratedAddress() (a XMRAddress, i XMRPaymentID, h XMRHeight, err error)
- func (m *Monero) MakeURI(amount XMRAtom, desc string) (uri string, id XMRPaymentID, h XMRHeight, err error)
- func (m *Monero) ParseURI(uri string) (uriS XMRURI, err error)
- func (m *Monero) PayURI(uri string) (err error)
- func (m *Monero) PayURIAmount(uri string, amount XMRAtom) (err error)
- func (m *Monero) SearchPayment(l []XMRPayment, id XMRPaymentID) (*XMRPayment, bool)
- func (m *Monero) Transfer(id XMRPaymentID, d []XMRDestination) (err error)
- func (m *Monero) UpdateBlockAge(tl []XMRPayment) (err error)
- type XMR
- type XMRAddress
- type XMRAtom
- type XMRDestination
- type XMRHeight
- type XMRPayment
- type XMRPaymentID
- type XMRTransfer
- type XMRURI
Constants ¶
This section is empty.
Variables ¶
View Source
var TitleXMRPayment string = fmt.Sprintf(
"%-20v %-10v %-12v %-12v",
"PaymentID",
"Amount",
"BlockHeight",
"BlockAge",
)
View Source
var TitleXMRTransfer string = fmt.Sprintf(
"%-8v %-8v %-12v %v",
"Type",
"Locked",
"Amount",
"PaymentID",
)
Functions ¶
This section is empty.
Types ¶
type Balance ¶
type Monero ¶
type Monero struct {
u.RPC
RecipientName string
}
func CreateMonero ¶
func (*Monero) GetBalance ¶
func (*Monero) GetBulkPayments ¶
func (m *Monero) GetBulkPayments(height XMRHeight, ids ...XMRPaymentID) (tl []XMRPayment, err error)
func (*Monero) GetTransfers ¶
func (m *Monero) GetTransfers(sels string) (tl []XMRTransfer, err error)
func (*Monero) MakeIntegratedAddress ¶
func (m *Monero) MakeIntegratedAddress() (a XMRAddress, i XMRPaymentID, h XMRHeight, err error)
func (*Monero) SearchPayment ¶
func (m *Monero) SearchPayment(l []XMRPayment, id XMRPaymentID) (*XMRPayment, bool)
func (*Monero) Transfer ¶
func (m *Monero) Transfer(id XMRPaymentID, d []XMRDestination) (err error)
func (*Monero) UpdateBlockAge ¶
func (m *Monero) UpdateBlockAge(tl []XMRPayment) (err error)
type XMRAddress ¶
type XMRAddress string
func StrXMRAddress ¶
func StrXMRAddress(str string) (t XMRAddress, err error)
type XMRDestination ¶
type XMRDestination struct {
Address XMRAddress `json:"address"`
Amount XMRAtom `json:"amount"`
}
type XMRPayment ¶
type XMRPayment struct {
PaymentID XMRPaymentID `json:"payment_id"`
Amount XMRAtom `json:"amount"`
BlockHeight XMRHeight `json:"block_height"`
BlockAge XMRHeight `json:"-"`
}
func (XMRPayment) String ¶
func (p XMRPayment) String() string
type XMRPaymentID ¶
type XMRPaymentID string
var EmptyXMRPaymentID XMRPaymentID = ""
func StrXMRPaymentID ¶
func StrXMRPaymentID(str string) (t XMRPaymentID, err error)
type XMRTransfer ¶
type XMRTransfer struct {
Address XMRAddress `json:"address"`
Amount XMRAtom `json:"amount"`
Fee XMRAtom `json:"fee"`
Locked bool `json:"locked"`
PaymentID XMRPaymentID `json:"payment_id"`
TxID string `json:"txid"`
Type string `json:"type"`
UnlockTime float64 `json:"unlock_time"`
Destinations []XMRDestination `json:"destinations"`
}
func (XMRTransfer) String ¶
func (t XMRTransfer) String() string
func (*XMRTransfer) TotalAmount ¶
func (t *XMRTransfer) TotalAmount() (r XMRAtom)
Click to show internal directories.
Click to hide internal directories.