# Class BSV::Wallet::CLI::Commands::Import <a id="class-BSV-Wallet-CLI-Commands-Import"></a>

**Inherits:** `BSV::Wallet::CLI::Commands::Base`

+bin/wallet import+ — scan the wallet's root P2PKH address for untracked
on-chain UTXOs and internalise them via self-payment.

Phase 3 sister of +bin/wallet receive+: receive accepts a BEEF or BRC-29
envelope (push); import scans the address (pull). Both ultimately go through
<code>engine.import_utxo</code> per UTXO; the <code>basket:</code> kwarg
threads through to the same basket-routing mechanism HLR #436 added for
pinpoint import.

+--basket=<name>+ routes imported funds into a named basket (excluded from
auto-funding by HLR #435's basket filter). <code>--include-unconfirmed</code>
scans mempool UTXOs too (default: only confirmed). <code>--no-send</code>
keeps the internalising self-payment built-and-signed but unsubmitted.

Broadcast mode: default is <code>:delayed</code> (queue for daemon via OMQ,
batching multi-UTXO scans to avoid an N+1 ARC round-trip per discovered UTXO).
<code>--inline</code> opts into synchronous per-UTXO broadcast (useful for
small wallets wanting immediate confirmation, or e2e tests that need to see
status before the next step). <code>--inline</code> and <code>--no-send</code>
are mutually exclusive — they select different broadcast strategies, not
modifiers.

Phase 3 scans the root P2PKH address only. HD/WBIKD-derived receive addresses
(#28 / future) would extend the scan surface; engine support for that scanning
is downstream.

## Public Instance Methods
### `build_parser()` <a id="method-i-build_parser"></a> <a id="build_parser-instance_method"></a>
Not documented.

### `call(args)` <a id="method-i-call"></a> <a id="call-instance_method"></a>
- **@raise** [UsageError]

### `name()` <a id="method-i-name"></a> <a id="name-instance_method"></a>
Not documented.
