Function zcash_client_sqlite::wallet::get_sent_memo [−][src]
pub fn get_sent_memo<P>(
wdb: &WalletDb<P>,
id_note: i64
) -> Result<Memo, SqliteClientError>
Expand description
Returns the memo for a sent note.
The note is identified by its row index in the sent_notes
table within the wdb
database.
Examples
use tempfile::NamedTempFile; use zcash_primitives::consensus::Network; use zcash_client_sqlite::{ NoteId, WalletDb, wallet::get_sent_memo, }; let data_file = NamedTempFile::new().unwrap(); let db = WalletDb::for_path(data_file, Network::TestNetwork).unwrap(); let memo = get_sent_memo(&db, 12);