var toRoot = '../';</script></head><body><divid="search"><spanid="doc-title"><spanid="doc-version"></span></span><spanclass="close-results"><spanclass="left"><</span> Back</span><divid="textfilter"><spanclass="input"><inputautocapitalize="none"placeholder="Search"id="index-input"type="text"accesskey="/"/><iclass="clear material-icons"></i><iid="search-icon"class="material-icons"></i></span></div></div><divid="search-results"><divid="search-progress"><divid="progress-fill"></div></div><divid="results-content"><divid="entity-results"></div><divid="member-results"></div></div></div><divid="content-scroll-container"style="-webkit-overflow-scrolling: touch;"><divid="content-container"style="-webkit-overflow-scrolling: touch;"><divid="subpackage-spacer"><divid="packages"><h1>Packages</h1><ul><liclass="indented0 "name="_root_.root"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="_root_"class="anchorToMember"></a><aid="root:_root_"class="anchorToMember"></a><spanclass="permalink"><ahref="../index.html"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">package</span></span><spanclass="symbol"><ahref="../index.html"title=""><spanclass="name">root</span></a></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd><ahref="../index.html"name="_root_"id="_root_"class="extype">root</a></dd></dl></div></li><liclass="indented1 "name="_root_.lnrpc"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="lnrpc"class="anchorToMember"></a><aid="lnrpc:lnrpc"class="anchorToMember"></a><spanclass="permalink"><ahref="../lnrpc/index.html"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">package</span></span><spanclass="symbol"><ahref="index.html"title=""><spanclass="name">lnrpc</span></a></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd><ahref="../index.html"name="_root_"id="_root_"class="extype">root</a></dd></dl></div></li><liclass="current-entities indented1"><ahref="AMP$.html"title=""class="object"></a><ahref="AMP.html"title="Details specific to AMP HTLCs."class="class"></a><ahref="AMP.html"title="Details specific to AMP HTLCs.">AMP</a></li><liclass="current-entities indented1"><ahref="AMPInvoiceState$.html"title=""class="object"></a><ahref="AMPInvoiceState.html"title=""class="class"></a><ahref="AMPInvoiceState.html"title="">AMPInvoiceState</a></li><liclass="current-entities indented1"><ahref="AMPRecord$.html"title=""class="object"></a><ahref="AMPRecord.html"title=""class="class"></a><ahref="AMPRecord.html"title="">AMPRecord</a></li><liclass="current-entities indented1"><ahref="AbandonChannelRequest$.html"title=""class="object"></a><ahref="AbandonChannelRequest.html"title=""class="class"></a><ahref="AbandonChannelRequest.html"title="">AbandonChannelRequest</a></li><liclass="current-entities indented1"><ahref="AbandonChannelResponse$.html"title=""class="object"></a><ahref="AbandonChannelResponse.html"title=""class="class"></a><ahref="AbandonChannelResponse.html"title="">AbandonChannelResponse</a></li><liclass="current-entities indented1"><ahref="AddInvoiceResponse$.html"title=""class="object"></a><ahref="AddInvoiceResponse.html"title=""class="class"></a><ahref="AddInvoiceResponse.html"title="">AddInvoiceResponse</a></li><liclass="current-entities indented1"><ahref="AddressType$.html"title=""class="object"></a><ahref="AddressType.html"title="AddressType has to be one of:"class="class"></a><ahref="AddressType.html"title="AddressType has to be one of:">AddressType</a></li><liclass="current-entities indented1"><ahref="AliasMap$.html"title=""class="object"></a><ahref="AliasMap.html"title=""class="class"></a><ahref="AliasMap.html"title="">AliasMap</a></li><liclass="current-entities indented1"><ahref=
</p></div><dlclass="attributes block"><dt>Definition Classes</dt><dd><ahref="WalletUnlocker.html"name="lnrpc.WalletUnlocker"id="lnrpc.WalletUnlocker"class="extype">WalletUnlocker</a></dd></dl></div></li><liclass="indented0 "name="org.apache.pekko.grpc.scaladsl.PekkoGrpcClient#close"group="Ungrouped"fullComment="yes"data-isabs="true"visbl="pub"><aid="close():scala.concurrent.Future[org.apache.pekko.Done]"class="anchorToMember"></a><aid="close():Future[Done]"class="anchorToMember"></a><spanclass="permalink"><ahref="../lnrpc/WalletUnlockerClient.html#close():scala.concurrent.Future[org.apache.pekko.Done]"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">abstract </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">close</span><spanclass="params">()</span><spanclass="result">: <ahref="https://www.scala-lang.org/api/2.13.13/scala/concurrent/Future.html#scala.concurrent.Future"name="scala.concurrent.Future"id="scala.concurrent.Future"class="extype">Future</a>[<ahref="https://pekko.apache.org/api/pekko/1.0.2/org/apache/pekko/Done.html#org.apache.pekko.Done"name="org.apache.pekko.Done"id="org.apache.pekko.Done"class="extype">Done</a>]</span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>PekkoGrpcClient</dd></dl></div></li><liclass="indented0 "name="org.apache.pekko.grpc.scaladsl.PekkoGrpcClient#closed"group="Ungrouped"fullComment="yes"data-isabs="true"visbl="pub"><aid="closed:scala.concurrent.Future[org.apache.pekko.Done]"class="anchorToMember"></a><aid="closed:Future[Done]"class="anchorToMember"></a><spanclass="permalink"><ahref="../lnrpc/WalletUnlockerClient.html#closed:scala.concurrent.Future[org.apache.pekko.Done]"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">abstract </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">closed</span><spanclass="result">: <ahref="https://www.scala-lang.org/api/2.13.13/scala/concurrent/Future.html#scala.concurrent.Future"name="scala.concurrent.Future"id="scala.concurrent.Future"class="extype">Future</a>[<ahref="https://pekko.apache.org/api/pekko/1.0.2/org/apache/pekko/Done.html#org.apache.pekko.Done"name="org.apache.pekko.Done"id="org.apache.pekko.Done"class="extype">Done</a>]</span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>PekkoGrpcClient</dd></dl></div></li><liclass="indented0 "name="lnrpc.WalletUnlocker#genSeed"group="Ungrouped"fullComment="yes"data-isabs="true"visbl="pub"><aid="genSeed(in:lnrpc.GenSeedRequest):scala.concurrent.Future[lnrpc.GenSeedResponse]"class="anchorToMember"></a><aid="genSeed(GenSeedRequest):Future[GenSeedResponse]"class="anchorToMember"></a><spanclass="permalink"><ahref="../lnrpc/WalletUnlockerClient.html#genSeed(in:lnrpc.GenSeedRequest):scala.concurrent.Future[lnrpc.GenSeedResponse]"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">abstract </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">genSeed</span><spanclass="params">(<spanname="in">in: <ahref="GenSeedRequest.html"name="lnrpc.GenSeedRequest"id="lnrpc.GenSeedRequest"class="extype">GenSeedRequest</a></span>)</span><spanclass="result">: <ahref="https://www.scala-lang.org/api/2.13.13/scala/concurrent/Future.html#scala.concurrent.Future"name="scala.concurrent.Future"id="scala.concurrent.Future"class="extype">Future</a>[<ahref="GenSeedResponse.html"name="lnrpc.GenSeedResponse"id="lnrpc.GenSeedResponse"class="extype">GenSeedResponse</a>]</span></span><pclass="shortcomment cmt">GenSeed is the first method that should be used to instantiate a new lnd
</p></div><dlclass="attributes block"><dt>Definition Classes</dt><dd><ahref="WalletUnlocker.html"name="lnrpc.WalletUnlocker"id="lnrpc.WalletUnlocker"class="extype">WalletUnlocker</a></dd></dl></div></li><liclass="indented0 "name="lnrpc.WalletUnlocker#initWallet"group="Ungrouped"fullComment="yes"data-isabs="true"visbl="pub"><aid="initWallet(in:lnrpc.InitWalletRequest):scala.concurrent.Future[lnrpc.InitWalletResponse]"class="anchorToMember"></a><aid="initWallet(InitWalletRequest):Future[InitWalletResponse]"class="anchorToMember"></a><spanclass="permalink"><ahref="../lnrpc/WalletUnlockerClient.html#initWallet(in:lnrpc.InitWalletRequest):scala.concurrent.Future[lnrpc.InitWalletResponse]"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">abstract </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">initWallet</span><spanclass="params">(<spanname="in">in: <ahref="InitWalletRequest.html"name="lnrpc.InitWalletRequest"id="lnrpc.InitWalletRequest"class="extype">InitWalletRequest</a></span>)</span><spanclass="result">: <ahref="https://www.scala-lang.org/api/2.13.13/scala/concurrent/Future.html#scala.concurrent.Future"name="scala.concurrent.Future"id="scala.concurrent.Future"class="extype">Future</a>[<ahref="InitWalletResponse.html"name="lnrpc.InitWalletResponse"id="lnrpc.InitWalletResponse"class="extype">InitWalletResponse</a>]</span></span><pclass="shortcomment cmt">InitWallet is used when lnd is starting up for the first time to fully
initialize the daemon and its internal wallet.</p><divclass="fullcomment"><divclass="comment cmt"><p>InitWallet is used when lnd is starting up for the first time to fully
initialize the daemon and its internal wallet. At the very least a wallet
password must be provided. This will be used to encrypt sensitive material
on disk.
In the case of a recovery scenario, the user can also specify their aezeed
mnemonic and passphrase. If set, then the daemon will use this prior state
to initialize its internal wallet.
Alternatively, this can be used along with the GenSeed RPC to obtain a
seed, then present it to the user. Once it has been verified by the user,
the seed can be fed into this RPC in order to commit the new wallet.