Monero C++ Library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
monero::monero_wallet_listener Class Reference

#include <monero_wallet.h>

Public Member Functions

virtual void on_sync_progress (uint64_t height, uint64_t start_height, uint64_t end_height, double percent_done, const std::string &message)
 
virtual void on_new_block (uint64_t height)
 
virtual void on_balances_changed (uint64_t new_balance, uint64_t new_unlocked_balance)
 
virtual void on_output_received (const monero_output_wallet &output)
 
virtual void on_output_spent (const monero_output_wallet &output)
 

Detailed Description

Interface to receive wallet notifications.

Member Function Documentation

◆ on_balances_changed()

virtual void monero::monero_wallet_listener::on_balances_changed ( uint64_t new_balance,
uint64_t new_unlocked_balance )
inlinevirtual

Invoked when the wallet's balances change.

Parameters
new_balance- new balance
new_unlocked_balance- new unlocked balance

◆ on_new_block()

virtual void monero::monero_wallet_listener::on_new_block ( uint64_t height)
inlinevirtual

Invoked when a new block is processed.

Parameters
block- the newly processed block

◆ on_output_received()

virtual void monero::monero_wallet_listener::on_output_received ( const monero_output_wallet & output)
inlinevirtual

Invoked when the wallet receives an output.

Parameters
output- the received output

◆ on_output_spent()

virtual void monero::monero_wallet_listener::on_output_spent ( const monero_output_wallet & output)
inlinevirtual

Invoked when the wallet spends an output.

Parameters
output- the spent output

◆ on_sync_progress()

virtual void monero::monero_wallet_listener::on_sync_progress ( uint64_t height,
uint64_t start_height,
uint64_t end_height,
double percent_done,
const std::string & message )
inlinevirtual

Invoked when sync progress is made.

Parameters
height- height of the synced block
start_height- starting height of the sync request
end_height- ending height of the sync request
percent_done- sync progress as a percentage
message- human-readable description of the current progress

The documentation for this class was generated from the following file: