wallet

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveWalletState

func SaveWalletState() error

Types

type XMRPayment

type XMRPayment struct {
	Amount  int64  `json:"amount"`
	Address string `json:"address"`
}

type XMRTransferReceipt

type XMRTransferReceipt struct {
	Error *struct {
		Code    int    `json:"code"`
		Message string `json:"message"`
	} `json:"error"`
	Id      string `json:"id"`
	Jsonrpc string `json:"jsonrpc"`
	Result  struct {
		Amount        int64   `json:"amount"`
		Fee           int64   `json:"fee"`
		MultisigTxset *string `json:"multisig_txset"`
		TxBlob        *string `json:"tx_blob"`
		TxHash        string  `json:"tx_hash"`
		TxKey         *string `json:"tx_key"`
		TxMetadata    *string `json:"tx_metadata"`
		UnsignedTxset *string `json:"unsigned_txset"`
	} `json:"result"`
}

func SendXMR

func SendXMR(inXfer XMRWalletTransfer) (XMRTransferReceipt, error)

type XMRWalletTransfer

type XMRWalletTransfer struct {
	Destinations []XMRPayment `json:"destinations"`
	Priority     int          `json:"priority"`
	RingSize     int          `json:"ring_size"`
	GetTxKey     bool         `json:"get_tx_key"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL