# `async-hwi-cli` ## Install requirements: - `libudev-dev` - `pkg-config` `cargo install async-hwi-cli` ## Usage ```shell $ hwi --help Usage: hwi [OPTIONS] Commands: device psbt wallet xpub help Print this message or the help of the given subcommand(s) Options: --fingerprint default will be the first connected device with the master fingerprint matching --network default will be the Bitcoin mainnet network [default: bitcoin] -h, --help Print help -V, --version Print version ``` ## Examples ```shell $ hwi device list ledger ffd63c8d 2.1.3 ``` ```shell $ hwi xpub get --path "m/48'/0'/0'/1'" xpub6E3wdqR3xPHvUKBWwUik5cpy9pMdrdEYVHBxKx7nbT2ZTnzizbNAWe9uuPX4A4nUsamM2Tn9F6ccK5Fmrt6ResBSRWDnb9J8bpi1WKcD158 ``` ```shell $ hwi wallet register --name "Liana" --policy "wsh(or_d(multi(2,[ffd63c8d/48'/1'/0'/2']tpubDExA3EC3iAsPxPhFn4j6gMiVup6V2eH3qKyk69RcTc9TTNRfFYVPad8bJD5FCHVQxyBT4izKsvr7Btd2R4xmQ1hZkvsqGBaeE82J71uTK4N/<0;1>/*,[de6eb005/48'/1'/0'/2']tpubDFGuYfS2JwiUSEXiQuNGdT3R7WTDhbaE6jbUhgYSSdhmfQcSx7ZntMPPv7nrkvAqjpj3jX9wbhSGMeKVao4qAzhbNyBi7iQmv5xxQk6H6jz/<0;1>/*),and_v(v:pkh([ffd63c8d/48'/1'/0'/2']tpubDExA3EC3iAsPxPhFn4j6gMiVup6V2eH3qKyk69RcTc9TTNRfFYVPad8bJD5FCHVQxyBT4izKsvr7Btd2R4xmQ1hZkvsqGBaeE82J71uTK4N/<2;3>/*),older(3))))#p9ax3xxp" 4e143a98f46ea585fb8d87a6dd3ca14d689dfbf3d2e9ca1f9618b60cf969c232 ``` ```shell $ hwi --network=testnet address display --p2tr="m/86'/1'/0'/0/1 ``` ```shell $ hwi psbt sign \ --wallet-name "Liana" \ --wallet-policy "wsh(or_d(multi(2,[ffd63c8d/48'/1'/0'/2']tpubDExA3EC3iAsPxPhFn4j6gMiVup6V2eH3qKy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