Versions in this module Expand all Collapse all v1 v1.0.0-beta1 Aug 21, 2020 v0 v0.1.0 Nov 15, 2019 Changes in this version + func NewPaymentID256() string + func NewPaymentID64() string + func XMRToDecimal(xmr uint64) string + func XMRToFloat64(xmr uint64) float64 + type AddressBookEntry struct + Address string + Description string + Index uint64 + PaymentId string + type Addresses struct + Address string + AddressIndex uint + Label string + Used bool + type Client struct + func New(cfg Config) *Client + func (c *Client) AddAddressBook(entry AddressBookEntry) (index uint64, err error) + func (c *Client) CreateAccount() (*CreateAccountResponse, error) + func (c *Client) CreateAddress(req CreateAddressRequest) (*CreateAddressResponse, error) + func (c *Client) CreateWallet(filename, password, language string) error + func (c *Client) DeleteAddressBook(index uint64) error + func (c *Client) ExportKeyImages() (signedkeyimages []SignedKeyImage, err error) + func (c *Client) GetAddress(req GetAddressRequest) (*GetAddressResponse, error) + func (c *Client) GetAddressBook(indexes []uint64) (entries []AddressBookEntry, err error) + func (c *Client) GetAttribute(key string) (value string, err error) + func (c *Client) GetBalance(req GetBalanceRequest) (*GetBalanceResponse, error) + func (c *Client) GetBulkPayments(paymentids []string, minblockheight uint64) ([]Payment, error) + func (c *Client) GetHeight() (uint64, error) + func (c *Client) GetLanguages() (languages []string, err error) + func (c *Client) GetPayments(paymentid string) ([]Payment, error) + func (c *Client) GetTransferByTxID(req GetTransferByTxidRequest) (*GetTransferByTxidResponse, error) + func (c *Client) GetTransfers(req GetTransfersRequest) (*GetTransfersResponse, error) + func (c *Client) GetTxNotes(txids []string) (notes []string, err error) + func (c *Client) ImportKeyImages(signedkeyimages []SignedKeyImage) (resp *ImportKeyImageResponse, err error) + func (c *Client) IncomingTransfers(req GetIncomingTransferRequest) (*GetIncomingTransferResponse, error) + func (c *Client) MakeIntegratedAddress(paymentid string) (integratedaddr string, err error) + func (c *Client) MakeURI(req URIDef) (uri string, err error) + func (c *Client) OpenWallet(filename, password string) error + func (c *Client) ParseURI(uri string) (parsed *URIDef, err error) + func (c *Client) QueryKey(keytype QueryKeyType) (key string, err error) + func (c *Client) RescanBlockchain() error + func (c *Client) RescanSpent() error + func (c *Client) SetAttribute(key string, value string) error + func (c *Client) SetTxNotes(txids, notes []string) error + func (c *Client) Sign(data string) (signature string, err error) + func (c *Client) SplitIntegratedAddress(integratedaddr string) (paymentid, address string, err error) + func (c *Client) StartMining(threads uint, background, ignorebattery bool) error + func (c *Client) StopMining() error + func (c *Client) StopWallet() error + func (c *Client) Store() error + func (c *Client) SweepAll(req SweepAllRequest) (resp *SweepAllResponse, err error) + func (c *Client) SweepDust() (txHashList []string, err error) + func (c *Client) SweepSingle(req SweepSingleRequest) (resp *SweepSingleResponse, err error) + func (c *Client) Transfer(req TransferRequest) (*TransferResponse, error) + func (c *Client) TransferSplit(req TransferRequest) (resp *TransferSplitResponse, err error) + func (c *Client) Verify(data, address, signature string) (good bool, err error) + type Config struct + Address string + CustomHeaders map[string]string + Transport http.RoundTripper + type CreateAccountResponse struct + AccountIndex uint64 + Address string + type CreateAddressRequest struct + AccountIndex uint64 + Label string + type CreateAddressResponse struct + Address string + AddressIndex uint64 + type Destination struct + Address string + Amount uint64 + type ErrorCode int + const ErrDaemonIsBusy + const ErrDenied + const ErrGenericTransferError + const ErrNotOpen + const ErrTransferType + const ErrUnknown + const ErrWrongAddress + const ErrWrongIndex + const ErrWrongKeyImage + const ErrWrongPaymentID + const ErrWrongSignature + const ErrWrongTxID + const ErrWrongURI + type GetAddressRequest struct + AccountIndex uint + AddressIndex []uint + type GetAddressResponse struct + Address string + Addresses []Addresses + type GetBalanceRequest struct + AccountIndex uint + AddressIndices []uint + type GetBalanceResponse struct + Balance uint64 + MultisigImportNeeded bool + PerSubaddress []SubaddressInfo + UnlockedBalance uint64 + type GetIncomingTransferRequest struct + AccountIndex uint + SubaddrIndices SubAddrIndex + TransferType GetTransferType + Verbose bool + type GetIncomingTransferResponse struct + Transfer []IncTransfer + type GetTransferByTxidRequest struct + AccountIndex uint + TxId string + type GetTransferByTxidResponse struct + Transfer Transfer + type GetTransferType string + const TransferAll + const TransferAvailable + const TransferUnavailable + type GetTransfersRequest struct + AccountIndex uint64 + Failed bool + FilterByHeight bool + In bool + MaxHeight uint64 + MinHeight uint64 + Out bool + Pending bool + Pool bool + SubAddrIndex []uint64 + type GetTransfersResponse struct + Failed []Transfer + In []Transfer + Out []Transfer + Pending []Transfer + Pool []Transfer + type H map[string]interface + type ImportKeyImageResponse struct + Height uint64 + Spent uint64 + Unspent uint64 + type IncTransfer struct + Amount uint64 + GlobalIndex uint64 + KeyImage string + Spent bool + SubaddrIndex uint + TxHash string + TxSize uint64 + type Payment struct + Address string + Amount uint64 + BlockHeight uint64 + PaymentId string + SubaddrIndex SubAddrIndex + TxHash string + UnlockTime uint64 + type Priority uint + const PriorityDefault + const PriorityElevated + const PriorityNormal + const PriorityPriority + const PriorityUnimportant + type QueryKeyType string + const QueryKeyMnemonic + const QueryKeySpend + const QueryKeyView + type SignedKeyImage struct + KeyImage string + Signature string + type SubAddrIndex struct + Major uint + Minor uint + type SubaddressInfo struct + Address string + AddressIndex uint64 + Balance uint64 + Label string + NumUnspentOutputs uint64 + UnlockedBalance uint64 + type SweepAllRequest struct + Address string + BelowAmount uint64 + DoNotRelay bool + GetTxHex bool + GetTxKeys bool + Mixin uint64 + PaymentID string + Priority Priority + UnlockTime uint64 + type SweepAllResponse struct + TxBlobList []string + TxHashList []string + TxKeyList []string + type SweepSingleRequest struct + AccountIndex uint64 + Address string + BelowAmount uint64 + DoNotRelay bool + GetTxHex bool + GetTxKeys bool + GetTxMetadata bool + KeyImage string + Mixin uint64 + PaymentId string + Priority Priority + RingSize uint64 + UnlockTime uint64 + type SweepSingleResponse struct + Amount uint64 + Fee uint64 + MultisigTxset string + TxBlob string + TxHash string + TxKey string + TxMetadata string + UnsignedTxset string + type Transfer struct + Address string + Amount uint64 + Confirmations uint64 + DoubleSpendSeen bool + Fee uint64 + Height uint64 + Note string + PaymentId string + SubaddrIndex SubAddrIndex + SuggestedConfirmationsThreshold uint + Timestamp uint64 + TxId string + Type string + UnlockTime uint64 + type TransferRequest struct + AccountIndex uint + Destinations []Destination + DoNotRelay bool + GetTxHex bool + GetTxKey bool + GetTxMetadata bool + Mixin uint64 + PaymentId string + Priority Priority + RingSize uint + SubaddrIndices []uint + UnlockTime uint64 + type TransferResponse struct + Amonut uint64 + Fee uint64 + MultisigTxset string + TxBlob string + TxHash string + TxKey string + TxMetadata string + UnsignedTxset string + type TransferSplitResponse struct + AmountList []uint64 + FeeList []uint64 + TxBlobList []string + TxHashList []string + TxKeyList []string + type URIDef struct + Address string + Amount uint64 + PaymentID string + RecipientName string + TxDescription string + type WalletError struct + Code ErrorCode + Message string + func GetWalletError(err error) (isWalletError bool, werr *WalletError) + func (we *WalletError) Error() string