Versions in this module Expand all Collapse all v1 v1.0.4 Jan 24, 2023 v1.0.3 Jan 18, 2023 v1.0.2 Nov 23, 2022 Changes in this version + type RequestPrepareMultisig struct + EnableMultiSigExperimental bool v1.0.1 Nov 5, 2022 v1.0.0 Nov 2, 2022 Changes in this version + func Float64ToXMR(xmr float64) uint64 + func NewPaymentID256() string + func NewPaymentID64() string + func StringToXMR(xmr string) (uint64, error) + func XMRToDecimal(xmr uint64) string + func XMRToFloat64(xmr uint64) float64 + type Client interface + AccuMultisig func(req *RequestAccuMultisig) (resp *ResponseAccuMultisig, err error) + AddAddressBook func(*RequestAddAddressBook) (*ResponseAddAddressBook, error) + ChangeWalletPassword func(*RequestChangeWalletPassword) error + CheckReserveProof func(*RequestCheckReserveProof) (*ResponseCheckReserveProof, error) + CheckSpendProof func(*RequestCheckSpendProof) (*ResponseCheckSpendProof, error) + CheckTransaction func(req *RequestCheckTransaction) (resp *ResponseCheckTransaction, err error) + CheckTxKey func(*RequestCheckTxKey) (*ResponseCheckTxKey, error) + CheckTxProof func(*RequestCheckTxProof) (*ResponseCheckTxProof, error) + CloseWallet func() error + CreateAccount func(*RequestCreateAccount) (*ResponseCreateAccount, error) + CreateAddress func(*RequestCreateAddress) (*ResponseCreateAddress, error) + CreateWallet func(*RequestCreateWallet) error + DeleteAddressBook func(*RequestDeleteAddressBook) error + ExchangeMultiSigKeys func(*RequestExchangeMultisigKeys) (*ResponseExchangeMultisig, error) + ExportKeyImages func() (*ResponseExportKeyImages, error) + ExportMultisigInfo func() (*ResponseExportMultisigInfo, error) + ExportOutputs func() (*ResponseExportOutputs, error) + ExportSigPubKey func() (resp *ResponseExportSigPubkey, err error) + FinalizeMultisig func(*RequestFinalizeMultisig) (*ResponseFinalizeMultisig, error) + GetAccountTags func() (*ResponseGetAccountTags, error) + GetAccounts func(*RequestGetAccounts) (*ResponseGetAccounts, error) + GetAddress func(*RequestGetAddress) (*ResponseGetAddress, error) + GetAddressBook func(*RequestGetAddressBook) (*ResponseGetAddressBook, error) + GetAddressIndex func(*RequestGetAddressIndex) (*ResponseGetAddressIndex, error) + GetAttribute func(*RequestGetAttribute) (*ResponseGetAttribute, error) + GetBalance func(*RequestGetBalance) (*ResponseGetBalance, error) + GetBulkPayments func(*RequestGetBulkPayments) (*ResponseGetBulkPayments, error) + GetHeight func() (*ResponseGetHeight, error) + GetLanguages func() (*ResponseGetLanguages, error) + GetPayments func(*RequestGetPayments) (*ResponseGetPayments, error) + GetReserveProof func(*RequestGetReserveProof) (*ResponseGetReserveProof, error) + GetSpendProof func(*RequestGetSpendProof) (*ResponseGetSpendProof, error) + GetTransferByTxID func(*RequestGetTransferByTxID) (*ResponseGetTransferByTxID, error) + GetTransfers func(*RequestGetTransfers) (*ResponseGetTransfers, error) + GetTxKey func(*RequestGetTxKey) (*ResponseGetTxKey, error) + GetTxNotes func(*RequestGetTxNotes) (*ResponseGetTxNotes, error) + GetTxProof func(*RequestGetTxProof) (*ResponseGetTxProof, error) + GetVersion func() (*ResponseGetVersion, error) + ImportKeyImages func(*RequestImportKeyImages) (*ResponseImportKeyImages, error) + ImportMultisigInfo func(*RequestImportMultisigInfo) (*ResponseImportMultisigInfo, error) + ImportOutputs func(*RequestImportOutputs) (*ResponseImportOutputs, error) + IncomingTransfers func(*RequestIncomingTransfers) (*ResponseIncomingTransfers, error) + IsMultisig func() (*ResponseIsMultisig, error) + LabelAccount func(*RequestLabelAccount) error + LabelAddress func(*RequestLabelAddress) error + MakeIntegratedAddress func(*RequestMakeIntegratedAddress) (*ResponseMakeIntegratedAddress, error) + MakeMultisig func(*RequestMakeMultisig) (*ResponseMakeMultisig, error) + MakeURI func(*RequestMakeURI) (*ResponseMakeURI, error) + OpenWallet func(*RequestOpenWallet) error + ParseURI func(*RequestParseURI) (*ResponseParseURI, error) + PrepareMultisig func() (*ResponsePrepareMultisig, error) + QueryKey func(*RequestQueryKey) (*ResponseQueryKey, error) + Refresh func(*RequestRefresh) (*ResponseRefresh, error) + RelayTx func(*RequestRelayTx) (*ResponseRelayTx, error) + RescanBlockchain func() error + RescanSpent func() error + RestoreDeterministicWallet func(*RequestRestoreDeterministicWallet) (*ResponseRestoreDeterministicWallet, error) + SavePoolWallet func(*RequestSavedPoolWallet) (*ResponseSavePoolWallet, error) + SetAccountTagDescription func(*RequestSetAccountTagDescription) error + SetAttribute func(*RequestSetAttribute) error + SetTxNotes func(*RequestSetTxNotes) error + Sign func(*RequestSign) (*ResponseSign, error) + SignMultisig func(*RequestSignMultisig) (*ResponseSignMultisig, error) + SignMultisigParallel func(*RequestSignMultisigParallel) (*ResponseSignMultisigParallel, error) + SignTransfer func(*RequestSignTransfer) (*ResponseSignTransfer, error) + SplitIntegratedAddress func(*RequestSplitIntegratedAddress) (*ResponseSplitIntegratedAddress, error) + StartMining func(*RequestStartMining) error + StopMining func() error + StopWallet func() error + Store func() error + SubmitMultisig func(*RequestSubmitMultisig) (*ResponseSubmitMultisig, error) + SubmitTransfer func(*RequestSubmitTransfer) (*ResponseSubmitTransfer, error) + SweepAll func(*RequestSweepAll) (*ResponseSweepAll, error) + SweepDust func(*RequestSweepDust) (*ResponseSweepDust, error) + SweepSingle func(*RequestSweepSingle) (*ResponseSweepSingle, error) + TagAccounts func(*RequestTagAccounts) error + Transfer func(*RequestTransfer) (*ResponseTransfer, error) + TransferSplit func(*RequestTransferSplit) (*ResponseTransferSplit, error) + UntagAccounts func(*RequestUntagAccounts) error + ValidateAddress func(*RequestValidateAddress) (*ResponseValidateAddress, error) + Verify func(*RequestVerify) (*ResponseVerify, error) + func New(cfg Config) Client + type Config struct + Address string + CustomHeaders map[string]string + Transport http.RoundTripper + 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 GetTransferType string + const TransferAll + const TransferAvailable + const TransferUnavailable + type H map[string]interface + type Priority uint + const PriorityDefault + const PriorityElevated + const PriorityNormal + const PriorityUnimportant + type QueryKeyType string + const QueryKeyMnemonic + const QueryKeySpend + const QueryKeyView + type RequestAccuMultisig struct + TxDataHex []string + type RequestAddAddressBook struct + Address string + Description string + PaymentID string + type RequestChangeWalletPassword struct + NewPassword string + OldPassword string + type RequestCheckReserveProof struct + Address string + Message string + Signature string + type RequestCheckSpendProof struct + Message string + Signature string + TxID string + type RequestCheckTransaction struct + Destinations []*Destination + TxDataHex string + type RequestCheckTxKey struct + Address string + TxID string + TxKey string + type RequestCheckTxProof struct + Address string + Message string + Signature string + TxID string + type RequestCreateAccount struct + Label string + type RequestCreateAddress struct + AccountIndex uint64 + Label string + type RequestCreateWallet struct + Filename string + Language string + Password string + type RequestDeleteAddressBook struct + Index uint64 + type RequestExchangeMultisigKeys struct + MultisigInfo []string + Password string + type RequestFinalizeMultisig struct + MultisigInfo []string + Password string + type RequestGetAccounts struct + Tag string + type RequestGetAddress struct + AccountIndex uint64 + AddressIndex []uint64 + type RequestGetAddressBook struct + Entries []uint64 + type RequestGetAddressIndex struct + Address string + type RequestGetAttribute struct + Key string + type RequestGetBalance struct + AccountIndex uint64 + AddressIndices []uint64 + type RequestGetBulkPayments struct + MinBlockHeight uint64 + PaymentIDs []string + type RequestGetPayments struct + PaymentID string + type RequestGetReserveProof struct + AccountIndex uint64 + All bool + Amount uint64 + Message string + type RequestGetSpendProof struct + Message string + TxID string + type RequestGetTransferByTxID struct + AccountIndex uint64 + TxID string + type RequestGetTransfers struct + AccountIndex uint64 + Failed bool + FilterByHeight bool + In bool + MaxHeight uint64 + MinHeight uint64 + Out bool + Pending bool + Pool bool + SubaddrIndices []uint64 + type RequestGetTxKey struct + TxID string + type RequestGetTxNotes struct + TxIDs []string + type RequestGetTxProof struct + Address string + Message string + TxID string + type RequestImportKeyImages struct + SignedKeyImages []*SignedKeyImage + type RequestImportMultisigInfo struct + Info []string + type RequestImportOutputs struct + OutputsDataHex string + type RequestIncomingTransfers struct + AccountIndex uint64 + SubaddrIndices []uint64 + TransferType string + Verbose bool + type RequestLabelAccount struct + AccountIndex uint64 + Label string + type RequestLabelAddress struct + Index struct{ ... } + Label string + type RequestMakeIntegratedAddress struct + PaymentID string + StandardAddress string + type RequestMakeMultisig struct + MultisigInfo []string + Password string + Threshold uint64 + type RequestMakeURI struct + Address string + Amount uint64 + PaymentID string + RecipientName string + TxDescription string + type RequestOpenWallet struct + Filename string + Password string + type RequestParseURI struct + URI string + type RequestQueryKey struct + KeyType string + type RequestRefresh struct + StartHeight uint64 + type RequestRelayTx struct + Hex string + type RequestRestoreDeterministicWallet struct + AutoSaveCurrent bool + FileName string + Language string + Password string + RestoreHeight int64 + Seed string + SeedOffset string + type RequestSavedPoolWallet struct + OldAddress string + Password string + PoolAddress string + type RequestSetAccountTagDescription struct + Description string + Tag string + type RequestSetAttribute struct + Key string + Value string + type RequestSetTxNotes struct + Notes []string + TxIDs []string + type RequestSign struct + Data string + type RequestSignMultisig struct + TxDataHex string + type RequestSignMultisigParallel struct + PaymentID string + PubKeys []string + TxDataHex string + type RequestSignTransfer struct + ExportRaw bool + UnsighnedxSet string + type RequestSplitIntegratedAddress struct + IntegratedAddress string + type RequestStartMining struct + DoBackgroundMining bool + IgnoreBattery bool + ThreadsCount uint64 + type RequestSubmitMultisig struct + TxDataHex string + type RequestSubmitTransfer struct + TxDataHex string + type RequestSweepAll struct + AccountIndex uint64 + Address string + BelowAmount uint64 + DoNotRelay bool + GetTxHex bool + GetTxKeys bool + GetTxMetadata bool + Mixin uint64 + PaymentID string + Priority Priority + RingSize uint64 + SubaddrIndices []uint64 + SubaddrIndicesAll bool + UnlockTime uint64 + type RequestSweepDust struct + DoNotRelay bool + GetTxHey bool + GetTxKeys bool + GetTxMetadata bool + type RequestSweepSingle struct + AccountIndex uint64 + Address string + BelowAmount uint64 + DoNotRelay bool + GetTxHey bool + GetTxMetadata bool + GetxKeys bool + KeyImage string + Mixin uint64 + PaymentID string + Priority Priority + RingSize uint64 + SubaddrIndices []uint64 + UnlockTime uint64 + type RequestTagAccounts struct + Accounts []uint64 + Tag string + type RequestTransfer struct + AccountIndex uint64 + Destinations []*Destination + DoNotRelay bool + GetTxHex bool + GetTxKey bool + GetTxMetadata bool + Mixing uint64 + PaymentID string + Priority Priority + RingSize uint64 + SubaddrIndices []uint64 + UnlockTime uint64 + type RequestTransferSplit struct + AccountIndex uint64 + Destinations []*Destination + DoNotRelay bool + GetTxHex bool + GetTxMetadata bool + GetxKeys bool + Mixin uint64 + NewAlgorithm bool + PaymendID string + Priority Priority + RingSize uint64 + SubaddrIndices []uint64 + UnlockTime uint64 + type RequestUntagAccounts struct + Accounts []uint64 + type RequestValidateAddress struct + Address string + AllowOpenAlias bool + AnyNetType bool + type RequestVerify struct + Address string + Data string + Signature string + type ResponseAccuMultisig struct + TxDataHex string + TxHashList []string + type ResponseAddAddressBook struct + Index uint64 + type ResponseCheckReserveProof struct + Good bool + type ResponseCheckSpendProof struct + Good bool + type ResponseCheckTransaction struct + CheckResult bool + type ResponseCheckTxKey struct + Confirmations uint64 + InPool bool + Received uint64 + type ResponseCheckTxProof struct + Confirmations uint64 + Good bool + InPool bool + Received uint64 + type ResponseCreateAccount struct + AccountIndex uint64 + Address string + type ResponseCreateAddress struct + Address string + AddressIndex uint64 + type ResponseExchangeMultisig struct + Address string + MultisigInfo string + type ResponseExportKeyImages struct + SignedKeyImages []struct{ ... } + type ResponseExportMultisigInfo struct + Info string + type ResponseExportOutputs struct + OutputsDataHex string + type ResponseExportSigPubkey struct + PubKeys []string + type ResponseFinalizeMultisig struct + Address string + type ResponseGetAccountTags struct + AccountTags []struct{ ... } + type ResponseGetAccounts struct + SubaddressAccounts []struct{ ... } + TotalBalance uint64 + TotalUnlockedBalance uint64 + type ResponseGetAddress struct + Address string + Addresses []struct{ ... } + type ResponseGetAddressBook struct + Entries []struct{ ... } + type ResponseGetAddressIndex struct + Index struct{ ... } + type ResponseGetAttribute struct + Value string + type ResponseGetBalance struct + Balance uint64 + MultisigImportNeeded bool + PerSubaddress []struct{ ... } + UnlockedBalance uint64 + type ResponseGetBulkPayments struct + Payments []struct{ ... } + type ResponseGetHeight struct + Height uint64 + type ResponseGetLanguages struct + Languages []string + type ResponseGetPayments struct + Payments []struct{ ... } + type ResponseGetReserveProof struct + Signature string + type ResponseGetSpendProof struct + Signature string + type ResponseGetTransferByTxID struct + Transfer Transfer + type ResponseGetTransfers struct + Failed []*Transfer + In []*Transfer + Out []*Transfer + Pending []*Transfer + Pool []*Transfer + type ResponseGetTxKey struct + TxKey string + type ResponseGetTxNotes struct + Notes []string + type ResponseGetTxProof struct + Signature string + type ResponseGetVersion struct + Version uint64 + type ResponseImportKeyImages struct + Height uint64 + Spent uint64 + Unspent uint64 + type ResponseImportMultisigInfo struct + NOutputs uint64 + type ResponseImportOutputs struct + NumImported uint64 + type ResponseIncomingTransfers struct + Transfers struct{ ... } + type ResponseIsMultisig struct + Multisig bool + Ready bool + Threshold uint64 + Total uint64 + type ResponseMakeIntegratedAddress struct + IntegratedAddress string + PaymentID string + type ResponseMakeMultisig struct + Address string + MultisigInfo string + type ResponseMakeURI struct + URI string + type ResponseParseURI struct + URI struct{ ... } + type ResponsePrepareMultisig struct + MultisigInfo string + type ResponseQueryKey struct + Key string + type ResponseRefresh struct + BlocksFetched uint64 + ReceivedMoney bool + type ResponseRelayTx struct + TxHash string + type ResponseRestoreDeterministicWallet struct + Address string + Info string + Seed string + WasDeprecated bool + type ResponseSavePoolWallet struct + SavePoolWalletResponse bool + type ResponseSign struct + Signature string + type ResponseSignMultisig struct + TxDataHex string + TxHashList []string + type ResponseSignMultisigParallel struct + TxDataHex string + TxHashList []string + type ResponseSignTransfer struct + SignedTxSet string + TxHashList []string + TxRawList []string + type ResponseSplitIntegratedAddress struct + IsSubaddress bool + PaymentID string + StandardAddress string + type ResponseSubmitMultisig struct + TxHashList []string + type ResponseSubmitTransfer struct + TxHashList []string + type ResponseSweepAll struct + AmountList []uint64 + FeeList []uint64 + MultisigTxSet string + TxBlobList []string + TxHashList []string + TxKeyList []string + TxMetadataList []string + UnsignedTxSet string + type ResponseSweepDust struct + AmountList []uint64 + FeeList []uint64 + MultisigTxSet string + TxBlobList []string + TxHashList []string + TxKeyList []string + TxMetadataList []string + UnsignedTxSet string + type ResponseSweepSingle struct + AmountList []uint64 + FreeList []uint64 + MultisigTxSet string + TxBlobList []string + TxHashList []string + TxKeyList []string + TxMetadataList []string + UnsignedTxSet string + type ResponseTransfer struct + Amount uint64 + Fee uint64 + MultisigTxset string + TxBlob string + TxHash string + TxKey string + TxMetadata string + UnsignedTxSet string + type ResponseTransferSplit struct + AmountList []uint64 + FeeList []uint64 + MultisigTxSet string + TxBlobList []string + TxHashList []string + TxKeyList []string + TxMetadataList []string + UnsignedTxSet string + type ResponseValidateAddress struct + Integrated bool + NetType string + OpenAliasAddress string + Subaddress bool + Valid bool + type ResponseVerify struct + Good bool + type SignedKeyImage struct + KeyImage string + Signature string + type Transfer struct + Address string + Amount uint64 + Confirmations uint64 + Destinations []*Destination + DoubleSpendSeen bool + Fee uint64 + Height uint64 + Note string + PaymentID string + SubaddrIndex struct{ ... } + SuggestedConfirmationsThreshold uint64 + Timestamp uint64 + TxID string + Type string + UnlockTime uint64 + type WalletError struct + Code ErrorCode + Message string + func GetWalletError(err error) (isWalletError bool, werr *WalletError) + func (we *WalletError) Error() string