bsv-wallet-cli 0.1.24

Self-hosted BSV wallet CLI and BRC-100 server, wire-compatible with MetaNet Client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use anyhow::Result;

use crate::brc29;
use crate::context::WalletContext;

pub async fn run(ctx: &WalletContext) -> Result<()> {
    let address = brc29::deposit_address(&ctx.root_key, ctx.chain)?;

    if ctx.json_output {
        println!("{}", serde_json::json!({ "address": address }));
    } else {
        println!("{}", address);
    }

    Ok(())
}