zinc-wallet-cli 0.4.0

Agent-first Bitcoin + Ordinals CLI wallet with account-based taproot ordinals + native segwit payment addresses (optional human mode)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::cli::{Cli, TxAction, TxArgs};
use crate::error::AppError;
use crate::load_wallet_session;
use crate::output::CommandOutput;

pub async fn run(cli: &Cli, args: &TxArgs) -> Result<CommandOutput, AppError> {
    match &args.action {
        TxAction::List { limit } => {
            let session = load_wallet_session(cli)?;
            let txs = session.wallet.get_transactions(limit.unwrap_or(20));
            Ok(CommandOutput::TxList { transactions: txs })
        }
    }
}