View on GitHub
File Changes
          schema: *parametersJoinStakePool
      responses: *responsesJoinStakePool

                      
+
  /stake-pools/*/wallets/{walletId}:
    delete:
      operationId: quitStakePool
      tags: ["Stake Pools"]
        <p align="right">status: <strong>stable</strong></p>

                      
        Stop delegating completely. The wallet's stake will become inactive.
+

                      
+
        > ⚠️  Disclaimer ⚠️
+
        >
+
        > This endpoint historically use to take a stake pool id as a path parameter.
+
        > However, retiring from delegation is ubiquitous and not tight to a particular
+
        > stake pool. For backward-compatibility reasons, sending stake pool ids as path
+
        > parameter will still be accepted by the server but new integrations are
+
        > encouraged to provide a placeholder asterisk `*` instead.
      parameters:
-
        - *parametersStakePoolId
        - *parametersWalletId
        - <<: *parametersBody
          schema: *parametersQuitStakePool
</span><a name="line-131"></a><span class="hs-comment">-- Chain Parameters</span><span>
</span><a name="line-132"></a><span>
</span><a name="line-133"></a><span class="hs-comment">-- | Embed some constants into a network type.</span><span>
-
</span><a name="line-134"></a><span class="hs-keyword">class</span><span> </span><a name="KnownNetwork"><a href="Cardano.Wallet.Byron.Compatibility.html#KnownNetwork"><span class="hs-identifier">KnownNetwork</span></a></a><span> </span><span class="hs-special">(</span><a name="local-6989586621679181024"><a href="#local-6989586621679181024"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">NetworkDiscriminant</span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
+
</span><a name="line-134"></a><span class="hs-keyword">class</span><span> </span><a name="KnownNetwork"><a href="Cardano.Wallet.Byron.Compatibility.html#KnownNetwork"><span class="hs-identifier">KnownNetwork</span></a></a><span> </span><span class="hs-special">(</span><a name="local-6989586621679181088"><a href="#local-6989586621679181088"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">NetworkDiscriminant</span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-135"></a><span>    </span><a name="blockchainParameters"><a href="Cardano.Wallet.Byron.Compatibility.html#blockchainParameters"><span class="hs-identifier">blockchainParameters</span></a></a><span>
</span><a name="line-136"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">W.BlockchainParameters</span><span>
</span><a name="line-137"></a><span>    </span><a name="versionData"><a href="Cardano.Wallet.Byron.Compatibility.html#versionData"><span class="hs-identifier">versionData</span></a></a><span>
</span><a name="line-140"></a><span>           </span><span class="hs-special">)</span><span>
</span><a name="line-141"></a><span>
</span><a name="line-142"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#KnownNetwork"><span class="hs-identifier hs-type">KnownNetwork</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Mainnet</span><span> </span><span class="hs-keyword">where</span><span>
-
</span><a name="line-143"></a><span>    </span><a name="local-8214565720323955905"><a href="Cardano.Wallet.Byron.Compatibility.html#blockchainParameters"><span class="hs-identifier">blockchainParameters</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#mainnetParameters"><span class="hs-identifier hs-var">mainnetParameters</span></a><span>
-
</span><a name="line-144"></a><span>    </span><a name="local-8214565720323955906"><a href="Cardano.Wallet.Byron.Compatibility.html#versionData"><span class="hs-identifier">versionData</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#mainnetVersionData"><span class="hs-identifier hs-var">mainnetVersionData</span></a><span>
+
</span><a name="line-143"></a><span>    </span><a name="local-8214565720323955969"><a href="Cardano.Wallet.Byron.Compatibility.html#blockchainParameters"><span class="hs-identifier">blockchainParameters</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#mainnetParameters"><span class="hs-identifier hs-var">mainnetParameters</span></a><span>
+
</span><a name="line-144"></a><span>    </span><a name="local-8214565720323955970"><a href="Cardano.Wallet.Byron.Compatibility.html#versionData"><span class="hs-identifier">versionData</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#mainnetVersionData"><span class="hs-identifier hs-var">mainnetVersionData</span></a><span>
</span><a name="line-145"></a><span>
</span><a name="line-146"></a><span class="hs-identifier">mainnetParameters</span><span>
</span><a name="line-147"></a><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">W.BlockchainParameters</span><span>
</span><a name="line-209"></a><span class="hs-comment">-- UTxO and a genesis hash. So, we might be able to ajust our abstractions to</span><span>
</span><a name="line-210"></a><span class="hs-comment">-- this.</span><span>
</span><a name="line-211"></a><span class="hs-identifier">genesisBlock</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">ByronHash</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">ByronBlock</span><span>
-
</span><a name="line-212"></a><a name="genesisBlock"><a href="Cardano.Wallet.Byron.Compatibility.html#genesisBlock"><span class="hs-identifier">genesisBlock</span></a></a><span> </span><a name="local-6989586621679181029"><a href="#local-6989586621679181029"><span class="hs-identifier">genesisHash</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">ByronBlock</span><span>
+
</span><a name="line-212"></a><a name="genesisBlock"><a href="Cardano.Wallet.Byron.Compatibility.html#genesisBlock"><span class="hs-identifier">genesisBlock</span></a></a><span> </span><a name="local-6989586621679181093"><a href="#local-6989586621679181093"><span class="hs-identifier">genesisHash</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">ByronBlock</span><span>
</span><a name="line-213"></a><span>    </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">byronBlockRaw</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">ABOBBoundary</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">ABoundaryBlock</span><span>
</span><a name="line-214"></a><span>        </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">boundaryBlockLength</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">0</span><span>
</span><a name="line-215"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">boundaryHeader</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">UnsafeABoundaryHeader</span><span>
-
</span><a name="line-216"></a><span>          </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">boundaryPrevHash</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">Left</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">Genesis.GenesisHash</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">coerce</span><span> </span><a href="#local-6989586621679181029"><span class="hs-identifier hs-var">genesisHash</span></a><span class="hs-special">)</span><span class="hs-special">)</span><span>
+
</span><a name="line-216"></a><span>          </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">boundaryPrevHash</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">Left</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">Genesis.GenesisHash</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">coerce</span><span> </span><a href="#local-6989586621679181093"><span class="hs-identifier hs-var">genesisHash</span></a><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><a name="line-217"></a><span>          </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">boundaryEpoch</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">0</span><span>
</span><a name="line-218"></a><span>          </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">boundaryDifficulty</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">ChainDifficulty</span><span> </span><span class="hs-number">0</span><span>
</span><a name="line-219"></a><span>          </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">boundaryHeaderAnnotation</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">mempty</span><span>
</span><a name="line-222"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">boundaryAnnotation</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">mempty</span><span>
</span><a name="line-223"></a><span>        </span><span class="hs-special">}</span><span>
</span><a name="line-224"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">byronBlockSlotNo</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">genesisSlotNo</span><span>
-
</span><a name="line-225"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">byronBlockHash</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679181029"><span class="hs-identifier hs-var">genesisHash</span></a><span>
+
</span><a name="line-225"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">byronBlockHash</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679181093"><span class="hs-identifier hs-var">genesisHash</span></a><span>
</span><a name="line-226"></a><span>    </span><span class="hs-special">}</span><span>
</span><a name="line-227"></a><span>
</span><a name="line-228"></a><span class="hs-comment">--------------------------------------------------------------------------------</span><span>
</span><a name="line-250"></a><span class="hs-comment">-- Type Conversions</span><span>
</span><a name="line-251"></a><span>
</span><a name="line-252"></a><span class="hs-identifier">toByronHash</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">W.Hash</span><span> </span><span class="hs-string">&quot;BlockHeader&quot;</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">ByronHash</span><span>
-
</span><a name="line-253"></a><a name="toByronHash"><a href="Cardano.Wallet.Byron.Compatibility.html#toByronHash"><span class="hs-identifier">toByronHash</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">W.Hash</span><span> </span><a name="local-6989586621679181696"><a href="#local-6989586621679181696"><span class="hs-identifier">bytes</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-254"></a><span>    </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier hs-var">Crypto.digestFromByteString</span><span> </span><a href="#local-6989586621679181696"><span class="hs-identifier hs-var">bytes</span></a><span> </span><span class="hs-keyword">of</span><span>
-
</span><a name="line-255"></a><span>        </span><span class="hs-identifier hs-var">Just</span><span> </span><a name="local-6989586621679181697"><a href="#local-6989586621679181697"><span class="hs-identifier">digest</span></a></a><span> </span><span class="hs-glyph">-&gt;</span><span>
-
</span><a name="line-256"></a><span>            </span><span class="hs-identifier hs-var">ByronHash</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">AbstractHash</span><span> </span><a href="#local-6989586621679181697"><span class="hs-identifier hs-var">digest</span></a><span>
+
</span><a name="line-253"></a><a name="toByronHash"><a href="Cardano.Wallet.Byron.Compatibility.html#toByronHash"><span class="hs-identifier">toByronHash</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">W.Hash</span><span> </span><a name="local-6989586621679181760"><a href="#local-6989586621679181760"><span class="hs-identifier">bytes</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-254"></a><span>    </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier hs-var">Crypto.digestFromByteString</span><span> </span><a href="#local-6989586621679181760"><span class="hs-identifier hs-var">bytes</span></a><span> </span><span class="hs-keyword">of</span><span>
+
</span><a name="line-255"></a><span>        </span><span class="hs-identifier hs-var">Just</span><span> </span><a name="local-6989586621679181761"><a href="#local-6989586621679181761"><span class="hs-identifier">digest</span></a></a><span> </span><span class="hs-glyph">-&gt;</span><span>
+
</span><a name="line-256"></a><span>            </span><span class="hs-identifier hs-var">ByronHash</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">AbstractHash</span><span> </span><a href="#local-6989586621679181761"><span class="hs-identifier hs-var">digest</span></a><span>
</span><a name="line-257"></a><span>        </span><span class="hs-identifier hs-var">Nothing</span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><a name="line-258"></a><span>            </span><span class="hs-identifier hs-var">error</span><span> </span><span class="hs-string">&quot;unsafeHash: failed to convert bytes to hash?&quot;</span><span>
</span><a name="line-259"></a><span>
</span><a name="line-262"></a><span>    </span><span class="hs-identifier hs-var">EpochSlots</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier">W.unEpochLength</span><span>
</span><a name="line-263"></a><span>
</span><a name="line-264"></a><span class="hs-identifier">toPoint</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">W.BlockHeader</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Point</span><span> </span><span class="hs-identifier hs-type">ByronBlock</span><span>
-
</span><a name="line-265"></a><a name="toPoint"><a href="Cardano.Wallet.Byron.Compatibility.html#toPoint"><span class="hs-identifier">toPoint</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">W.BlockHeader</span><span> </span><a name="local-6989586621679182206"><a href="#local-6989586621679182206"><span class="hs-identifier">sid</span></a></a><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679182207"><a href="#local-6989586621679182207"><span class="hs-identifier">h</span></a></a><span> </span><span class="hs-identifier">_</span><span class="hs-special">)</span><span>
-
</span><a name="line-266"></a><span>    </span><span class="hs-glyph">|</span><span> </span><a href="#local-6989586621679182206"><span class="hs-identifier hs-var">sid</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-identifier hs-var">W.SlotId</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">genesisPoint</span><span>
-
</span><a name="line-267"></a><span>    </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier hs-var">otherwise</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">O.Point</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">Point.block</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Compatibility.html#toSlotNo"><span class="hs-identifier hs-var">toSlotNo</span></a><span> </span><a href="#local-6989586621679182206"><span class="hs-identifier hs-var">sid</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Compatibility.html#toByronHash"><span class="hs-identifier hs-var">toByronHash</span></a><span> </span><a href="#local-6989586621679182207"><span class="hs-identifier hs-var">h</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-265"></a><a name="toPoint"><a href="Cardano.Wallet.Byron.Compatibility.html#toPoint"><span class="hs-identifier">toPoint</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">W.BlockHeader</span><span> </span><a name="local-6989586621679182270"><a href="#local-6989586621679182270"><span class="hs-identifier">sid</span></a></a><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679182271"><a href="#local-6989586621679182271"><span class="hs-identifier">h</span></a></a><span> </span><span class="hs-identifier">_</span><span class="hs-special">)</span><span>
+
</span><a name="line-266"></a><span>    </span><span class="hs-glyph">|</span><span> </span><a href="#local-6989586621679182270"><span class="hs-identifier hs-var">sid</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-identifier hs-var">W.SlotId</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">genesisPoint</span><span>
+
</span><a name="line-267"></a><span>    </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier hs-var">otherwise</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">O.Point</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">Point.block</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Compatibility.html#toSlotNo"><span class="hs-identifier hs-var">toSlotNo</span></a><span> </span><a href="#local-6989586621679182270"><span class="hs-identifier hs-var">sid</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Compatibility.html#toByronHash"><span class="hs-identifier hs-var">toByronHash</span></a><span> </span><a href="#local-6989586621679182271"><span class="hs-identifier hs-var">h</span></a><span class="hs-special">)</span><span>
</span><a name="line-268"></a><span>
</span><a name="line-269"></a><span class="hs-identifier">toSlotNo</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">W.SlotId</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">SlotNo</span><span>
</span><a name="line-270"></a><a name="toSlotNo"><a href="Cardano.Wallet.Byron.Compatibility.html#toSlotNo"><span class="hs-identifier">toSlotNo</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-277"></a><span>    </span><span class="hs-identifier hs-var">unsafeDeserialiseCbor</span><span> </span><span class="hs-identifier hs-var">decodeByronGenTx</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">BL.fromStrict</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier">W.getSealedTx</span><span>
</span><a name="line-278"></a><span>
</span><a name="line-279"></a><span class="hs-identifier">fromByronBlock</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">W.Hash</span><span> </span><span class="hs-string">&quot;Genesis&quot;</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">ByronBlock</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">W.Block</span><span>
-
</span><a name="line-280"></a><a name="fromByronBlock"><a href="Cardano.Wallet.Byron.Compatibility.html#fromByronBlock"><span class="hs-identifier">fromByronBlock</span></a></a><span> </span><a name="local-6989586621679186022"><a href="#local-6989586621679186022"><span class="hs-identifier">genesisHash</span></a></a><span> </span><a name="local-6989586621679186023"><a href="#local-6989586621679186023"><span class="hs-identifier">byronBlk</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier">byronBlockRaw</span><span> </span><a href="#local-6989586621679186023"><span class="hs-identifier hs-var">byronBlk</span></a><span> </span><span class="hs-keyword">of</span><span>
-
</span><a name="line-281"></a><span>  </span><span class="hs-identifier hs-var">ABOBBlock</span><span> </span><a name="local-6989586621679186039"><a href="#local-6989586621679186039"><span class="hs-identifier">blk</span></a></a><span>  </span><span class="hs-glyph">-&gt;</span><span>
-
</span><a name="line-282"></a><span>    </span><a href="#local-6989586621679186024"><span class="hs-identifier hs-var">mkBlock</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromTxAux"><span class="hs-identifier hs-var">fromTxAux</span></a><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><span class="hs-identifier hs-var">unTxPayload</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">blockTxPayload</span><span> </span><a href="#local-6989586621679186039"><span class="hs-identifier hs-var">blk</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-280"></a><a name="fromByronBlock"><a href="Cardano.Wallet.Byron.Compatibility.html#fromByronBlock"><span class="hs-identifier">fromByronBlock</span></a></a><span> </span><a name="local-6989586621679186086"><a href="#local-6989586621679186086"><span class="hs-identifier">genesisHash</span></a></a><span> </span><a name="local-6989586621679186087"><a href="#local-6989586621679186087"><span class="hs-identifier">byronBlk</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier">byronBlockRaw</span><span> </span><a href="#local-6989586621679186087"><span class="hs-identifier hs-var">byronBlk</span></a><span> </span><span class="hs-keyword">of</span><span>
+
</span><a name="line-281"></a><span>  </span><span class="hs-identifier hs-var">ABOBBlock</span><span> </span><a name="local-6989586621679186103"><a href="#local-6989586621679186103"><span class="hs-identifier">blk</span></a></a><span>  </span><span class="hs-glyph">-&gt;</span><span>
+
</span><a name="line-282"></a><span>    </span><a href="#local-6989586621679186088"><span class="hs-identifier hs-var">mkBlock</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromTxAux"><span class="hs-identifier hs-var">fromTxAux</span></a><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><span class="hs-identifier hs-var">unTxPayload</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">blockTxPayload</span><span> </span><a href="#local-6989586621679186103"><span class="hs-identifier hs-var">blk</span></a><span class="hs-special">)</span><span>
</span><a name="line-283"></a><span>  </span><span class="hs-identifier hs-var">ABOBBoundary</span><span> </span><span class="hs-identifier">_</span><span> </span><span class="hs-glyph">-&gt;</span><span>
-
</span><a name="line-284"></a><span>    </span><a href="#local-6989586621679186024"><span class="hs-identifier hs-var">mkBlock</span></a><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
+
</span><a name="line-284"></a><span>    </span><a href="#local-6989586621679186088"><span class="hs-identifier hs-var">mkBlock</span></a><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><a name="line-285"></a><span>  </span><span class="hs-keyword">where</span><span>
</span><a name="line-286"></a><span>    </span><span class="hs-identifier">mkBlock</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">W.Tx</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">W.Block</span><span>
-
</span><a name="line-287"></a><span>    </span><a name="local-6989586621679186024"><a href="#local-6989586621679186024"><span class="hs-identifier">mkBlock</span></a></a><span> </span><a name="local-6989586621679186025"><a href="#local-6989586621679186025"><span class="hs-identifier">txs</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.Block</span><span>
+
</span><a name="line-287"></a><span>    </span><a name="local-6989586621679186088"><a href="#local-6989586621679186088"><span class="hs-identifier">mkBlock</span></a></a><span> </span><a name="local-6989586621679186089"><a href="#local-6989586621679186089"><span class="hs-identifier">txs</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.Block</span><span>
</span><a name="line-288"></a><span>        </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">header</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.BlockHeader</span><span>
</span><a name="line-289"></a><span>            </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">slotId</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-290"></a><span>                </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromSlotNo"><span class="hs-identifier hs-var">fromSlotNo</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">blockSlot</span><span> </span><a href="#local-6989586621679186023"><span class="hs-identifier hs-var">byronBlk</span></a><span>
+
</span><a name="line-290"></a><span>                </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromSlotNo"><span class="hs-identifier hs-var">fromSlotNo</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">blockSlot</span><span> </span><a href="#local-6989586621679186087"><span class="hs-identifier hs-var">byronBlk</span></a><span>
</span><a name="line-291"></a><span>            </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">blockHeight</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-292"></a><span>                </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromBlockNo"><span class="hs-identifier hs-var">fromBlockNo</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">blockNo</span><span> </span><a href="#local-6989586621679186023"><span class="hs-identifier hs-var">byronBlk</span></a><span>
+
</span><a name="line-292"></a><span>                </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromBlockNo"><span class="hs-identifier hs-var">fromBlockNo</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">blockNo</span><span> </span><a href="#local-6989586621679186087"><span class="hs-identifier hs-var">byronBlk</span></a><span>
</span><a name="line-293"></a><span>            </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">headerHash</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-294"></a><span>                </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromByronHash"><span class="hs-identifier hs-var">fromByronHash</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">blockHash</span><span> </span><a href="#local-6989586621679186023"><span class="hs-identifier hs-var">byronBlk</span></a><span>
+
</span><a name="line-294"></a><span>                </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromByronHash"><span class="hs-identifier hs-var">fromByronHash</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">blockHash</span><span> </span><a href="#local-6989586621679186087"><span class="hs-identifier hs-var">byronBlk</span></a><span>
</span><a name="line-295"></a><span>            </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">parentHeaderHash</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-296"></a><span>                </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromChainHash"><span class="hs-identifier hs-var">fromChainHash</span></a><span> </span><a href="#local-6989586621679186022"><span class="hs-identifier hs-var">genesisHash</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">blockPrevHash</span><span> </span><a href="#local-6989586621679186023"><span class="hs-identifier hs-var">byronBlk</span></a><span>
+
</span><a name="line-296"></a><span>                </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromChainHash"><span class="hs-identifier hs-var">fromChainHash</span></a><span> </span><a href="#local-6989586621679186086"><span class="hs-identifier hs-var">genesisHash</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">blockPrevHash</span><span> </span><a href="#local-6989586621679186087"><span class="hs-identifier hs-var">byronBlk</span></a><span>
</span><a name="line-297"></a><span>            </span><span class="hs-special">}</span><span>
-
</span><a name="line-298"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">transactions</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679186025"><span class="hs-identifier hs-var">txs</span></a><span>
+
</span><a name="line-298"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">transactions</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679186089"><span class="hs-identifier hs-var">txs</span></a><span>
</span><a name="line-299"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">delegations</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><a name="line-300"></a><span>        </span><span class="hs-special">}</span><span>
</span><a name="line-301"></a><span>
</span><a name="line-302"></a><span class="hs-identifier">fromTxAux</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">TxAux</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">W.Tx</span><span>
-
</span><a name="line-303"></a><a name="fromTxAux"><a href="Cardano.Wallet.Byron.Compatibility.html#fromTxAux"><span class="hs-identifier">fromTxAux</span></a></a><span> </span><a name="local-6989586621679186054"><a href="#local-6989586621679186054"><span class="hs-identifier">txAux</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier hs-var">taTx</span><span> </span><a href="#local-6989586621679186054"><span class="hs-identifier hs-var">txAux</span></a><span> </span><span class="hs-keyword">of</span><span>
-
</span><a name="line-304"></a><span>    </span><a name="local-6989586621679186055"><a href="#local-6989586621679186055"><span class="hs-identifier">tx</span></a></a><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="hs-identifier hs-var">UnsafeTx</span><span> </span><a name="local-6989586621679186056"><a href="#local-6989586621679186056"><span class="hs-identifier">inputs</span></a></a><span> </span><a name="local-6989586621679186057"><a href="#local-6989586621679186057"><span class="hs-identifier">outputs</span></a></a><span> </span><a name="local-6989586621679186058"><a href="#local-6989586621679186058"><span class="hs-identifier">_attributes</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-var">W.Tx</span><span>
-
</span><a name="line-305"></a><span>        </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">txId</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.Hash</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">BA.convert</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">hash</span><span> </span><a href="#local-6989586621679186055"><span class="hs-identifier hs-var">tx</span></a><span>
+
</span><a name="line-303"></a><a name="fromTxAux"><a href="Cardano.Wallet.Byron.Compatibility.html#fromTxAux"><span class="hs-identifier">fromTxAux</span></a></a><span> </span><a name="local-6989586621679186118"><a href="#local-6989586621679186118"><span class="hs-identifier">txAux</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier hs-var">taTx</span><span> </span><a href="#local-6989586621679186118"><span class="hs-identifier hs-var">txAux</span></a><span> </span><span class="hs-keyword">of</span><span>
+
</span><a name="line-304"></a><span>    </span><a name="local-6989586621679186119"><a href="#local-6989586621679186119"><span class="hs-identifier">tx</span></a></a><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="hs-identifier hs-var">UnsafeTx</span><span> </span><a name="local-6989586621679186120"><a href="#local-6989586621679186120"><span class="hs-identifier">inputs</span></a></a><span> </span><a name="local-6989586621679186121"><a href="#local-6989586621679186121"><span class="hs-identifier">outputs</span></a></a><span> </span><a name="local-6989586621679186122"><a href="#local-6989586621679186122"><span class="hs-identifier">_attributes</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-var">W.Tx</span><span>
+
</span><a name="line-305"></a><span>        </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">txId</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.Hash</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">BA.convert</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">hash</span><span> </span><a href="#local-6989586621679186119"><span class="hs-identifier hs-var">tx</span></a><span>
</span><a name="line-306"></a><span>
</span><a name="line-307"></a><span>        </span><span class="hs-comment">-- TODO: Review 'W.Tx' to not require resolved inputs but only inputs</span><span>
</span><a name="line-308"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">resolvedInputs</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-309"></a><span>            </span><span class="hs-special">(</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">W.Coin</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromTxIn"><span class="hs-identifier hs-var">fromTxIn</span></a><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><span class="hs-identifier hs-var">NE.toList</span><span> </span><a href="#local-6989586621679186056"><span class="hs-identifier hs-var">inputs</span></a><span>
+
</span><a name="line-309"></a><span>            </span><span class="hs-special">(</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">W.Coin</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromTxIn"><span class="hs-identifier hs-var">fromTxIn</span></a><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><span class="hs-identifier hs-var">NE.toList</span><span> </span><a href="#local-6989586621679186120"><span class="hs-identifier hs-var">inputs</span></a><span>
</span><a name="line-310"></a><span>
</span><a name="line-311"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">outputs</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-312"></a><span>            </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromTxOut"><span class="hs-identifier hs-var">fromTxOut</span></a><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><span class="hs-identifier hs-var">NE.toList</span><span> </span><a href="#local-6989586621679186057"><span class="hs-identifier hs-var">outputs</span></a><span>
+
</span><a name="line-312"></a><span>            </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromTxOut"><span class="hs-identifier hs-var">fromTxOut</span></a><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><span class="hs-identifier hs-var">NE.toList</span><span> </span><a href="#local-6989586621679186121"><span class="hs-identifier hs-var">outputs</span></a><span>
</span><a name="line-313"></a><span>        </span><span class="hs-special">}</span><span>
</span><a name="line-314"></a><span>
</span><a name="line-315"></a><span class="hs-identifier">fromTxIn</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">TxIn</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">W.TxIn</span><span>
-
</span><a name="line-316"></a><a name="fromTxIn"><a href="Cardano.Wallet.Byron.Compatibility.html#fromTxIn"><span class="hs-identifier">fromTxIn</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxInUtxo</span><span> </span><a name="local-6989586621679186283"><a href="#local-6989586621679186283"><span class="hs-identifier">id_</span></a></a><span> </span><a name="local-6989586621679186284"><a href="#local-6989586621679186284"><span class="hs-identifier">ix</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.TxIn</span><span>
-
</span><a name="line-317"></a><span>    </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">inputId</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.Hash</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">BA.convert</span><span> </span><a href="#local-6989586621679186283"><span class="hs-identifier hs-var">id_</span></a><span>
-
</span><a name="line-318"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">inputIx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679186284"><span class="hs-identifier hs-var">ix</span></a><span>
+
</span><a name="line-316"></a><a name="fromTxIn"><a href="Cardano.Wallet.Byron.Compatibility.html#fromTxIn"><span class="hs-identifier">fromTxIn</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxInUtxo</span><span> </span><a name="local-6989586621679186347"><a href="#local-6989586621679186347"><span class="hs-identifier">id_</span></a></a><span> </span><a name="local-6989586621679186348"><a href="#local-6989586621679186348"><span class="hs-identifier">ix</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.TxIn</span><span>
+
</span><a name="line-317"></a><span>    </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">inputId</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.Hash</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">BA.convert</span><span> </span><a href="#local-6989586621679186347"><span class="hs-identifier hs-var">id_</span></a><span>
+
</span><a name="line-318"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">inputIx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679186348"><span class="hs-identifier hs-var">ix</span></a><span>
</span><a name="line-319"></a><span>    </span><span class="hs-special">}</span><span>
</span><a name="line-320"></a><span>
</span><a name="line-321"></a><span class="hs-identifier">fromTxOut</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">TxOut</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">W.TxOut</span><span>
-
</span><a name="line-322"></a><a name="fromTxOut"><a href="Cardano.Wallet.Byron.Compatibility.html#fromTxOut"><span class="hs-identifier">fromTxOut</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxOut</span><span> </span><a name="local-6989586621679186295"><a href="#local-6989586621679186295"><span class="hs-identifier">addr</span></a></a><span> </span><a name="local-6989586621679186296"><a href="#local-6989586621679186296"><span class="hs-identifier">coin</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.TxOut</span><span>
-
</span><a name="line-323"></a><span>    </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">address</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.Address</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">serialize'</span><span> </span><a href="#local-6989586621679186295"><span class="hs-identifier hs-var">addr</span></a><span class="hs-special">)</span><span>
-
</span><a name="line-324"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">coin</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.Coin</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">unsafeGetLovelace</span><span> </span><a href="#local-6989586621679186296"><span class="hs-identifier hs-var">coin</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-322"></a><a name="fromTxOut"><a href="Cardano.Wallet.Byron.Compatibility.html#fromTxOut"><span class="hs-identifier">fromTxOut</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxOut</span><span> </span><a name="local-6989586621679186359"><a href="#local-6989586621679186359"><span class="hs-identifier">addr</span></a></a><span> </span><a name="local-6989586621679186360"><a href="#local-6989586621679186360"><span class="hs-identifier">coin</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.TxOut</span><span>
+
</span><a name="line-323"></a><span>    </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">address</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.Address</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">serialize'</span><span> </span><a href="#local-6989586621679186359"><span class="hs-identifier hs-var">addr</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-324"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">coin</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.Coin</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">unsafeGetLovelace</span><span> </span><a href="#local-6989586621679186360"><span class="hs-identifier hs-var">coin</span></a><span class="hs-special">)</span><span>
</span><a name="line-325"></a><span>    </span><span class="hs-special">}</span><span>
</span><a name="line-326"></a><span>
</span><a name="line-327"></a><span class="hs-identifier">fromByronHash</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">ByronHash</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">W.Hash</span><span> </span><span class="hs-string">&quot;BlockHeader&quot;</span><span>
</span><a name="line-328"></a><a name="fromByronHash"><a href="Cardano.Wallet.Byron.Compatibility.html#fromByronHash"><span class="hs-identifier">fromByronHash</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-329"></a><span>    </span><span class="hs-identifier hs-var">W.Hash</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">BA.convert</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier">unByronHash</span><span>
</span><a name="line-330"></a><span>
</span><a name="line-331"></a><span class="hs-identifier">fromChainHash</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">W.Hash</span><span> </span><span class="hs-string">&quot;Genesis&quot;</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">ChainHash</span><span> </span><span class="hs-identifier hs-type">ByronBlock</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">W.Hash</span><span> </span><span class="hs-string">&quot;BlockHeader&quot;</span><span>
-
</span><a name="line-332"></a><a name="fromChainHash"><a href="Cardano.Wallet.Byron.Compatibility.html#fromChainHash"><span class="hs-identifier">fromChainHash</span></a></a><span> </span><a name="local-6989586621679186341"><a href="#local-6989586621679186341"><span class="hs-identifier">genesisHash</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-glyph">\</span><span class="hs-glyph">case</span><span>
-
</span><a name="line-333"></a><span>    </span><span class="hs-identifier hs-var">GenesisHash</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-var">coerce</span><span> </span><a href="#local-6989586621679186341"><span class="hs-identifier hs-var">genesisHash</span></a><span>
-
</span><a name="line-334"></a><span>    </span><span class="hs-identifier hs-var">BlockHash</span><span> </span><a name="local-6989586621679186342"><a href="#local-6989586621679186342"><span class="hs-identifier">h</span></a></a><span> </span><span class="hs-glyph">-&gt;</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromByronHash"><span class="hs-identifier hs-var">fromByronHash</span></a><span> </span><a href="#local-6989586621679186342"><span class="hs-identifier hs-var">h</span></a><span>
+
</span><a name="line-332"></a><a name="fromChainHash"><a href="Cardano.Wallet.Byron.Compatibility.html#fromChainHash"><span class="hs-identifier">fromChainHash</span></a></a><span> </span><a name="local-6989586621679186405"><a href="#local-6989586621679186405"><span class="hs-identifier">genesisHash</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-glyph">\</span><span class="hs-glyph">case</span><span>
+
</span><a name="line-333"></a><span>    </span><span class="hs-identifier hs-var">GenesisHash</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-var">coerce</span><span> </span><a href="#local-6989586621679186405"><span class="hs-identifier hs-var">genesisHash</span></a><span>
+
</span><a name="line-334"></a><span>    </span><span class="hs-identifier hs-var">BlockHash</span><span> </span><a name="local-6989586621679186406"><a href="#local-6989586621679186406"><span class="hs-identifier">h</span></a></a><span> </span><span class="hs-glyph">-&gt;</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromByronHash"><span class="hs-identifier hs-var">fromByronHash</span></a><span> </span><a href="#local-6989586621679186406"><span class="hs-identifier hs-var">h</span></a><span>
</span><a name="line-335"></a><span>
</span><a name="line-336"></a><span class="hs-identifier">fromSlotNo</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">SlotNo</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">W.SlotId</span><span>
-
</span><a name="line-337"></a><a name="fromSlotNo"><a href="Cardano.Wallet.Byron.Compatibility.html#fromSlotNo"><span class="hs-identifier">fromSlotNo</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">SlotNo</span><span> </span><a name="local-6989586621679186343"><a href="#local-6989586621679186343"><span class="hs-identifier">sl</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-338"></a><span>    </span><span class="hs-identifier hs-var">W.fromFlatSlot</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#byronEpochLength"><span class="hs-identifier hs-var">byronEpochLength</span></a><span> </span><a href="#local-6989586621679186343"><span class="hs-identifier hs-var">sl</span></a><span>
+
</span><a name="line-337"></a><a name="fromSlotNo"><a href="Cardano.Wallet.Byron.Compatibility.html#fromSlotNo"><span class="hs-identifier">fromSlotNo</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">SlotNo</span><span> </span><a name="local-6989586621679186407"><a href="#local-6989586621679186407"><span class="hs-identifier">sl</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-338"></a><span>    </span><span class="hs-identifier hs-var">W.fromFlatSlot</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#byronEpochLength"><span class="hs-identifier hs-var">byronEpochLength</span></a><span> </span><a href="#local-6989586621679186407"><span class="hs-identifier hs-var">sl</span></a><span>
</span><a name="line-339"></a><span>
</span><a name="line-340"></a><span class="hs-comment">-- FIXME unsafe conversion (Word64 -&gt; Word32)</span><span>
</span><a name="line-341"></a><span class="hs-identifier">fromBlockNo</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">BlockNo</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Quantity</span><span> </span><span class="hs-string">&quot;block&quot;</span><span> </span><span class="hs-identifier hs-type">Word32</span><span>
-
</span><a name="line-342"></a><a name="fromBlockNo"><a href="Cardano.Wallet.Byron.Compatibility.html#fromBlockNo"><span class="hs-identifier">fromBlockNo</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">BlockNo</span><span> </span><a name="local-6989586621679186344"><a href="#local-6989586621679186344"><span class="hs-identifier">h</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-343"></a><span>    </span><span class="hs-identifier hs-var">Quantity</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><a href="#local-6989586621679186344"><span class="hs-identifier hs-var">h</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-342"></a><a name="fromBlockNo"><a href="Cardano.Wallet.Byron.Compatibility.html#fromBlockNo"><span class="hs-identifier">fromBlockNo</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">BlockNo</span><span> </span><a name="local-6989586621679186408"><a href="#local-6989586621679186408"><span class="hs-identifier">h</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-343"></a><span>    </span><span class="hs-identifier hs-var">Quantity</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><a href="#local-6989586621679186408"><span class="hs-identifier hs-var">h</span></a><span class="hs-special">)</span><span>
</span><a name="line-344"></a><span>
</span><a name="line-345"></a><span class="hs-identifier">fromTip</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">W.Hash</span><span> </span><span class="hs-string">&quot;Genesis&quot;</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Tip</span><span> </span><span class="hs-identifier hs-type">ByronBlock</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">W.BlockHeader</span><span>
-
</span><a name="line-346"></a><a name="fromTip"><a href="Cardano.Wallet.Byron.Compatibility.html#fromTip"><span class="hs-identifier">fromTip</span></a></a><span> </span><a name="local-6989586621679186345"><a href="#local-6989586621679186345"><span class="hs-identifier">genesisHash</span></a></a><span> </span><a name="local-6989586621679186346"><a href="#local-6989586621679186346"><span class="hs-identifier">tip</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier">getPoint</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">tipPoint</span><span> </span><a href="#local-6989586621679186346"><span class="hs-identifier hs-var">tip</span></a><span class="hs-special">)</span><span> </span><span class="hs-keyword">of</span><span>
+
</span><a name="line-346"></a><a name="fromTip"><a href="Cardano.Wallet.Byron.Compatibility.html#fromTip"><span class="hs-identifier">fromTip</span></a></a><span> </span><a name="local-6989586621679186409"><a href="#local-6989586621679186409"><span class="hs-identifier">genesisHash</span></a></a><span> </span><a name="local-6989586621679186410"><a href="#local-6989586621679186410"><span class="hs-identifier">tip</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier">getPoint</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">tipPoint</span><span> </span><a href="#local-6989586621679186410"><span class="hs-identifier hs-var">tip</span></a><span class="hs-special">)</span><span> </span><span class="hs-keyword">of</span><span>
</span><a name="line-347"></a><span>    </span><span class="hs-identifier hs-var">Origin</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-var">W.BlockHeader</span><span>
</span><a name="line-348"></a><span>        </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">slotId</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.SlotId</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-number">0</span><span>
</span><a name="line-349"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">blockHeight</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">Quantity</span><span> </span><span class="hs-number">0</span><span>
-
</span><a name="line-350"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">headerHash</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">coerce</span><span> </span><a href="#local-6989586621679186345"><span class="hs-identifier hs-var">genesisHash</span></a><span>
+
</span><a name="line-350"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">headerHash</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">coerce</span><span> </span><a href="#local-6989586621679186409"><span class="hs-identifier hs-var">genesisHash</span></a><span>
</span><a name="line-351"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">parentHeaderHash</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">W.Hash</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">BS.replicate</span><span> </span><span class="hs-number">32</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-352"></a><span>        </span><span class="hs-special">}</span><span>
-
</span><a name="line-353"></a><span>    </span><span class="hs-identifier hs-var">At</span><span> </span><a name="local-6989586621679186347"><a href="#local-6989586621679186347"><span class="hs-identifier">blk</span></a></a><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-var">W.BlockHeader</span><span>
-
</span><a name="line-354"></a><span>        </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">slotId</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromSlotNo"><span class="hs-identifier hs-var">fromSlotNo</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier">Point.blockPointSlot</span><span> </span><a href="#local-6989586621679186347"><span class="hs-identifier hs-var">blk</span></a><span>
-
</span><a name="line-355"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">blockHeight</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromBlockNo"><span class="hs-identifier hs-var">fromBlockNo</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier">tipBlockNo</span><span> </span><a href="#local-6989586621679186346"><span class="hs-identifier hs-var">tip</span></a><span>
-
</span><a name="line-356"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">headerHash</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromByronHash"><span class="hs-identifier hs-var">fromByronHash</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier">Point.blockPointHash</span><span> </span><a href="#local-6989586621679186347"><span class="hs-identifier hs-var">blk</span></a><span>
+
</span><a name="line-353"></a><span>    </span><span class="hs-identifier hs-var">At</span><span> </span><a name="local-6989586621679186411"><a href="#local-6989586621679186411"><span class="hs-identifier">blk</span></a></a><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-var">W.BlockHeader</span><span>
+
</span><a name="line-354"></a><span>        </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">slotId</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromSlotNo"><span class="hs-identifier hs-var">fromSlotNo</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier">Point.blockPointSlot</span><span> </span><a href="#local-6989586621679186411"><span class="hs-identifier hs-var">blk</span></a><span>
+
</span><a name="line-355"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">blockHeight</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromBlockNo"><span class="hs-identifier hs-var">fromBlockNo</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier">tipBlockNo</span><span> </span><a href="#local-6989586621679186410"><span class="hs-identifier hs-var">tip</span></a><span>
+
</span><a name="line-356"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">headerHash</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#fromByronHash"><span class="hs-identifier hs-var">fromByronHash</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier">Point.blockPointHash</span><span> </span><a href="#local-6989586621679186411"><span class="hs-identifier hs-var">blk</span></a><span>
</span><a name="line-357"></a><span>        </span><span class="hs-comment">-- TODO</span><span>
</span><a name="line-358"></a><span>        </span><span class="hs-comment">-- We only use the parentHeaderHash in the</span><span>
</span><a name="line-359"></a><span>        </span><span class="hs-comment">-- 'Cardano.Wallet.Network.BlockHeaders' chain follower only required for</span><span>
</span><a name="line-48"></a><span class="hs-comment">--     | ATTRIBUTES (&#216;)       -- 1 byte</span><span>
</span><a name="line-49"></a><span class="hs-comment">--                            == 6 + &#931;sizeOf(i) + &#931;sizeOf(o)</span><span>
</span><a name="line-50"></a><span class="hs-identifier">sizeOfTx</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">TxIn</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
-
</span><a name="line-51"></a><a name="sizeOfTx"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTx"><span class="hs-identifier">sizeOfTx</span></a></a><span> </span><a name="local-6989586621679234772"><a href="#local-6989586621679234772"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679234773"><a href="#local-6989586621679234773"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">6</span><span>
-
</span><a name="line-52"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-identifier hs-var">sum</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">map</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxIn"><span class="hs-identifier hs-var">sizeOfTxIn</span></a><span> </span><a href="#local-6989586621679234772"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">)</span><span>
-
</span><a name="line-53"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-identifier hs-var">sum</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">map</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxOut"><span class="hs-identifier hs-var">sizeOfTxOut</span></a><span> </span><a href="#local-6989586621679234773"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-51"></a><a name="sizeOfTx"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTx"><span class="hs-identifier">sizeOfTx</span></a></a><span> </span><a name="local-6989586621679234843"><a href="#local-6989586621679234843"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679234844"><a href="#local-6989586621679234844"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">6</span><span>
+
</span><a name="line-52"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-identifier hs-var">sum</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">map</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxIn"><span class="hs-identifier hs-var">sizeOfTxIn</span></a><span> </span><a href="#local-6989586621679234843"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-53"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-identifier hs-var">sum</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">map</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxOut"><span class="hs-identifier hs-var">sizeOfTxOut</span></a><span> </span><a href="#local-6989586621679234844"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span>
</span><a name="line-54"></a><span>
</span><a name="line-55"></a><span class="hs-comment">-- SIGNED-TX</span><span>
</span><a name="line-56"></a><span class="hs-comment">--     = CBOR-LIST-LEN (2)    -- 1 byte</span><span>
</span><a name="line-59"></a><span class="hs-comment">--     | *WITNESS             -- n * 139 bytes</span><span>
</span><a name="line-60"></a><span class="hs-comment">--                            == 1 + sizeOf(TX) + 1-2 + n * 139</span><span>
</span><a name="line-61"></a><span class="hs-identifier">sizeOfSignedTx</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">TxIn</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
-
</span><a name="line-62"></a><a name="sizeOfSignedTx"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfSignedTx"><span class="hs-identifier">sizeOfSignedTx</span></a></a><span> </span><a name="local-6989586621679235830"><a href="#local-6989586621679235830"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679235831"><a href="#local-6989586621679235831"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">1</span><span>
-
</span><a name="line-63"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTx"><span class="hs-identifier hs-var">sizeOfTx</span></a><span> </span><a href="#local-6989586621679235830"><span class="hs-identifier hs-var">inps</span></a><span> </span><a href="#local-6989586621679235831"><span class="hs-identifier hs-var">outs</span></a><span>
-
</span><a name="line-64"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOf"><span class="hs-identifier hs-var">sizeOf</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeListLen</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><a href="#local-6989586621679235832"><span class="hs-identifier hs-var">n</span></a><span class="hs-special">)</span><span>
-
</span><a name="line-65"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><a href="#local-6989586621679235832"><span class="hs-identifier hs-var">n</span></a><span> </span><span class="hs-operator hs-var">*</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxWitness"><span class="hs-identifier hs-var">sizeOfTxWitness</span></a><span>
+
</span><a name="line-62"></a><a name="sizeOfSignedTx"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfSignedTx"><span class="hs-identifier">sizeOfSignedTx</span></a></a><span> </span><a name="local-6989586621679235901"><a href="#local-6989586621679235901"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679235902"><a href="#local-6989586621679235902"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">1</span><span>
+
</span><a name="line-63"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTx"><span class="hs-identifier hs-var">sizeOfTx</span></a><span> </span><a href="#local-6989586621679235901"><span class="hs-identifier hs-var">inps</span></a><span> </span><a href="#local-6989586621679235902"><span class="hs-identifier hs-var">outs</span></a><span>
+
</span><a name="line-64"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOf"><span class="hs-identifier hs-var">sizeOf</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeListLen</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><a href="#local-6989586621679235903"><span class="hs-identifier hs-var">n</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-65"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><a href="#local-6989586621679235903"><span class="hs-identifier hs-var">n</span></a><span> </span><span class="hs-operator hs-var">*</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxWitness"><span class="hs-identifier hs-var">sizeOfTxWitness</span></a><span>
</span><a name="line-66"></a><span>  </span><span class="hs-keyword">where</span><span>
-
</span><a name="line-67"></a><span>    </span><a name="local-6989586621679235832"><a href="#local-6989586621679235832"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">length</span><span> </span><a href="#local-6989586621679235830"><span class="hs-identifier hs-var">inps</span></a><span>
+
</span><a name="line-67"></a><span>    </span><a name="local-6989586621679235903"><a href="#local-6989586621679235903"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">length</span><span> </span><a href="#local-6989586621679235901"><span class="hs-identifier hs-var">inps</span></a><span>
</span><a name="line-68"></a><span>
</span><a name="line-69"></a><span class="hs-comment">-- INPUT</span><span>
</span><a name="line-70"></a><span class="hs-comment">--     = CBOR-LIST-LEN (2)    --        1 byte</span><span>
</span><a name="line-82"></a><span class="hs-comment">--         | 32OCTET              --    32 bytes</span><span>
</span><a name="line-83"></a><span class="hs-comment">--         | U32                  --   1-5 bytes</span><span>
</span><a name="line-84"></a><span class="hs-identifier">sizeOfTxIn</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">TxIn</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
-
</span><a name="line-85"></a><a name="sizeOfTxIn"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxIn"><span class="hs-identifier">sizeOfTxIn</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxIn</span><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679235833"><a href="#local-6989586621679235833"><span class="hs-identifier">ix</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-86"></a><span>    </span><span class="hs-number">41</span><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOf"><span class="hs-identifier hs-var">sizeOf</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeWord32</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><a href="#local-6989586621679235833"><span class="hs-identifier hs-var">ix</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-85"></a><a name="sizeOfTxIn"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxIn"><span class="hs-identifier">sizeOfTxIn</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxIn</span><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679235904"><a href="#local-6989586621679235904"><span class="hs-identifier">ix</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-86"></a><span>    </span><span class="hs-number">41</span><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOf"><span class="hs-identifier hs-var">sizeOf</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeWord32</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><a href="#local-6989586621679235904"><span class="hs-identifier hs-var">ix</span></a><span class="hs-special">)</span><span>
</span><a name="line-87"></a><span>
</span><a name="line-88"></a><span class="hs-comment">-- WITNESS</span><span>
</span><a name="line-89"></a><span class="hs-comment">--     = CBOR-LIST-LEN (2)    --   1 byte</span><span>
</span><a name="line-110"></a><span class="hs-comment">--     | U64                  --   1-9 bytes</span><span>
</span><a name="line-111"></a><span class="hs-comment">--                            == 1 + sizeOf(ADDRESS) + 1-9</span><span>
</span><a name="line-112"></a><span class="hs-identifier">sizeOfTxOut</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">TxOut</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
-
</span><a name="line-113"></a><a name="sizeOfTxOut"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxOut"><span class="hs-identifier">sizeOfTxOut</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxOut</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">Address</span><span> </span><a name="local-6989586621679235834"><a href="#local-6989586621679235834"><span class="hs-identifier">bytes</span></a></a><span class="hs-special">)</span><span> </span><a name="local-6989586621679235835"><a href="#local-6989586621679235835"><span class="hs-identifier">c</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-114"></a><span>    </span><span class="hs-number">1</span><span> </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-identifier hs-var">BS.length</span><span> </span><a href="#local-6989586621679235834"><span class="hs-identifier hs-var">bytes</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfCoin"><span class="hs-identifier hs-var">sizeOfCoin</span></a><span> </span><a href="#local-6989586621679235835"><span class="hs-identifier hs-var">c</span></a><span>
+
</span><a name="line-113"></a><a name="sizeOfTxOut"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxOut"><span class="hs-identifier">sizeOfTxOut</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxOut</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">Address</span><span> </span><a name="local-6989586621679235905"><a href="#local-6989586621679235905"><span class="hs-identifier">bytes</span></a></a><span class="hs-special">)</span><span> </span><a name="local-6989586621679235906"><a href="#local-6989586621679235906"><span class="hs-identifier">c</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-114"></a><span>    </span><span class="hs-number">1</span><span> </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-identifier hs-var">BS.length</span><span> </span><a href="#local-6989586621679235905"><span class="hs-identifier hs-var">bytes</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfCoin"><span class="hs-identifier hs-var">sizeOfCoin</span></a><span> </span><a href="#local-6989586621679235906"><span class="hs-identifier hs-var">c</span></a><span>
</span><a name="line-115"></a><span>
</span><a name="line-116"></a><span class="hs-comment">-- Compute the size of a coin</span><span>
</span><a name="line-117"></a><span class="hs-identifier">sizeOfCoin</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Coin</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
</span><a name="line-121"></a><span class="hs-identifier">sizeOf</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">CBOR.Encoding</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
</span><a name="line-122"></a><a name="sizeOf"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOf"><span class="hs-identifier">sizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">BL.length</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">CBOR.toLazyByteString</span><span>
</span><a name="line-123"></a><span>
-
</span><a name="line-124"></a><span class="hs-keyword">class</span><span> </span><a name="WorstSizeOf"><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier">WorstSizeOf</span></a></a><span> </span><span class="hs-special">(</span><a name="local-6989586621679234769"><a href="#local-6989586621679234769"><span class="hs-identifier">t</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-operator">*</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679234770"><a href="#local-6989586621679234770"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">NetworkDiscriminant</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679234771"><a href="#local-6989586621679234771"><span class="hs-identifier">k</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Depth</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-operator">*</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-operator">*</span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
+
</span><a name="line-124"></a><span class="hs-keyword">class</span><span> </span><a name="WorstSizeOf"><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier">WorstSizeOf</span></a></a><span> </span><span class="hs-special">(</span><a name="local-6989586621679234840"><a href="#local-6989586621679234840"><span class="hs-identifier">t</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-operator">*</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679234841"><a href="#local-6989586621679234841"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">NetworkDiscriminant</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679234842"><a href="#local-6989586621679234842"><span class="hs-identifier">k</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Depth</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-operator">*</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-operator">*</span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-125"></a><span>    </span><a name="worstSizeOf"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
</span><a name="line-126"></a><span>
</span><a name="line-127"></a><span class="hs-comment">-- ADDRESS (MainNet, Icarus)</span><span>
</span><a name="line-147"></a><span class="hs-comment">--             | 28OCTET              --    28 bytes</span><span>
</span><a name="line-148"></a><span class="hs-comment">--             | ATTRIBUTES (&#216;)       --     1 byte</span><span>
</span><a name="line-149"></a><span class="hs-comment">--             | U8                   --     1 bytes</span><span>
-
</span><a name="line-150"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Mainnet</span><span> </span><span class="hs-identifier hs-type">IcarusKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009672"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">44</span><span>
+
</span><a name="line-150"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Mainnet</span><span> </span><span class="hs-identifier hs-type">IcarusKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009743"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">44</span><span>
</span><a name="line-151"></a><span>
</span><a name="line-152"></a><span class="hs-comment">-- ADDRESS (TestNet, Icarus)</span><span>
</span><a name="line-153"></a><span class="hs-comment">--     = CBOR-LIST-LEN (2)    --     1 byte</span><span>
</span><a name="line-172"></a><span class="hs-comment">--             | 28OCTET              --    28 bytes</span><span>
</span><a name="line-173"></a><span class="hs-comment">--             | ATTRIBUTES (8)       --     8 bytes</span><span>
</span><a name="line-174"></a><span class="hs-comment">--             | U8                   --     1 bytes</span><span>
-
</span><a name="line-175"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Testnet</span><span> </span><span class="hs-identifier hs-type">IcarusKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009672"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">51</span><span>
+
</span><a name="line-175"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Testnet</span><span> </span><span class="hs-identifier hs-type">IcarusKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009743"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">51</span><span>
</span><a name="line-176"></a><span>
</span><a name="line-177"></a><span class="hs-comment">-- ADDRESS (MainNet, Random)</span><span>
</span><a name="line-178"></a><span class="hs-comment">--     = CBOR-LIST-LEN (2)    --     1 byte</span><span>
</span><a name="line-197"></a><span class="hs-comment">--             | 28OCTET              --    28 bytes</span><span>
</span><a name="line-198"></a><span class="hs-comment">--             | ATTRIBUTES (34)      --    34 bytes</span><span>
</span><a name="line-199"></a><span class="hs-comment">--             | U8                   --     1 bytes</span><span>
-
</span><a name="line-200"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Mainnet</span><span> </span><span class="hs-identifier hs-type">ByronKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009672"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">77</span><span>
+
</span><a name="line-200"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Mainnet</span><span> </span><span class="hs-identifier hs-type">ByronKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009743"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">77</span><span>
</span><a name="line-201"></a><span>
</span><a name="line-202"></a><span class="hs-comment">-- ADDRESS (TestNet, Random)</span><span>
</span><a name="line-203"></a><span class="hs-comment">--     = CBOR-LIST-LEN (2)    --     1 byte</span><span>
</span><a name="line-222"></a><span class="hs-comment">--             | 28OCTET              --    28 bytes</span><span>
</span><a name="line-223"></a><span class="hs-comment">--             | ATTRIBUTES (41)      --    41 bytes</span><span>
</span><a name="line-224"></a><span class="hs-comment">--             | U8                   --     1 bytes</span><span>
-
</span><a name="line-225"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Testnet</span><span> </span><span class="hs-identifier hs-type">ByronKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009672"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">84</span><span>
+
</span><a name="line-225"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Testnet</span><span> </span><span class="hs-identifier hs-type">ByronKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009743"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">84</span><span>
</span><a name="line-226"></a></pre></body></html>
\ No newline at end of file
</span><a name="line-82"></a><span>
</span><a name="line-83"></a><span>
</span><a name="line-84"></a><span class="hs-identifier">newTransactionLayer</span><span>
-
</span><a name="line-85"></a><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679236737"><a href="#local-6989586621679236737"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">NetworkDiscriminant</span><span class="hs-special">)</span><span> </span><a name="local-6989586621679236738"><a href="#local-6989586621679236738"><span class="hs-identifier">k</span></a></a><span> </span><a name="local-6989586621679236739"><a href="#local-6989586621679236739"><span class="hs-identifier">t</span></a></a><span class="hs-operator">.</span><span>
+
</span><a name="line-85"></a><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679236808"><a href="#local-6989586621679236808"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">NetworkDiscriminant</span><span class="hs-special">)</span><span> </span><a name="local-6989586621679236809"><a href="#local-6989586621679236809"><span class="hs-identifier">k</span></a></a><span> </span><a name="local-6989586621679236810"><a href="#local-6989586621679236810"><span class="hs-identifier">t</span></a></a><span class="hs-operator">.</span><span>
</span><a name="line-86"></a><span>        </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-type">t</span><span> </span><span class="hs-glyph">~</span><span> </span><span class="hs-identifier hs-type">IO</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#Byron"><span class="hs-identifier hs-type">Byron</span></a><span>
-
</span><a name="line-87"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">WalletKey</span><span> </span><a href="#local-6989586621679236738"><span class="hs-identifier hs-type">k</span></a><span>
-
</span><a name="line-88"></a><span>        </span><span class="hs-special">,</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><a href="#local-6989586621679236737"><span class="hs-identifier hs-type">n</span></a><span> </span><a href="#local-6989586621679236738"><span class="hs-identifier hs-type">k</span></a><span>
+
</span><a name="line-87"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">WalletKey</span><span> </span><a href="#local-6989586621679236809"><span class="hs-identifier hs-type">k</span></a><span>
+
</span><a name="line-88"></a><span>        </span><span class="hs-special">,</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><a href="#local-6989586621679236808"><span class="hs-identifier hs-type">n</span></a><span> </span><a href="#local-6989586621679236809"><span class="hs-identifier hs-type">k</span></a><span>
</span><a name="line-89"></a><span>        </span><span class="hs-special">)</span><span>
-
</span><a name="line-90"></a><span>    </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-identifier hs-type">TransactionLayer</span><span> </span><a href="#local-6989586621679236739"><span class="hs-identifier hs-type">t</span></a><span> </span><a href="#local-6989586621679236738"><span class="hs-identifier hs-type">k</span></a><span>
+
</span><a name="line-90"></a><span>    </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-identifier hs-type">TransactionLayer</span><span> </span><a href="#local-6989586621679236810"><span class="hs-identifier hs-type">t</span></a><span> </span><a href="#local-6989586621679236809"><span class="hs-identifier hs-type">k</span></a><span>
</span><a name="line-91"></a><a name="newTransactionLayer"><a href="Cardano.Wallet.Byron.Transaction.html#newTransactionLayer"><span class="hs-identifier">newTransactionLayer</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">TransactionLayer</span><span>
-
</span><a name="line-92"></a><span>    </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">mkStdTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236740"><span class="hs-identifier hs-var">_mkStdTx</span></a><span>
-
</span><a name="line-93"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">mkDelegationJoinTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236745"><span class="hs-identifier hs-var">_mkDelegationJoinTx</span></a><span>
-
</span><a name="line-94"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">mkDelegationQuitTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236746"><span class="hs-identifier hs-var">_mkDelegationQuitTx</span></a><span>
-
</span><a name="line-95"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">decodeSignedTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236744"><span class="hs-identifier hs-var">_decodeSignedTx</span></a><span>
-
</span><a name="line-96"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">estimateSize</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236741"><span class="hs-identifier hs-var">_estimateSize</span></a><span>
-
</span><a name="line-97"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">estimateMaxNumberOfInputs</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236742"><span class="hs-identifier hs-var">_estimateMaxNumberOfInputs</span></a><span>
-
</span><a name="line-98"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">validateSelection</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236743"><span class="hs-identifier hs-var">_validateSelection</span></a><span>
+
</span><a name="line-92"></a><span>    </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">mkStdTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236811"><span class="hs-identifier hs-var">_mkStdTx</span></a><span>
+
</span><a name="line-93"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">mkDelegationJoinTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236816"><span class="hs-identifier hs-var">_mkDelegationJoinTx</span></a><span>
+
</span><a name="line-94"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">mkDelegationQuitTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236817"><span class="hs-identifier hs-var">_mkDelegationQuitTx</span></a><span>
+
</span><a name="line-95"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">decodeSignedTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236815"><span class="hs-identifier hs-var">_decodeSignedTx</span></a><span>
+
</span><a name="line-96"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">estimateSize</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236812"><span class="hs-identifier hs-var">_estimateSize</span></a><span>
+
</span><a name="line-97"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">estimateMaxNumberOfInputs</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236813"><span class="hs-identifier hs-var">_estimateMaxNumberOfInputs</span></a><span>
+
</span><a name="line-98"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">validateSelection</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236814"><span class="hs-identifier hs-var">_validateSelection</span></a><span>
</span><a name="line-99"></a><span>    </span><span class="hs-special">}</span><span>
</span><a name="line-100"></a><span>  </span><span class="hs-keyword">where</span><span>
</span><a name="line-101"></a><span>    </span><span class="hs-identifier">_mkStdTx</span><span>
-
</span><a name="line-102"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236738"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
+
</span><a name="line-102"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236809"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><a name="line-103"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="hs-identifier hs-type">TxIn</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">)</span><span class="hs-special">]</span><span>
</span><a name="line-104"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">]</span><span>
</span><a name="line-105"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-identifier hs-type">ErrMkTx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Tx</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">SealedTx</span><span class="hs-special">)</span><span>
-
</span><a name="line-106"></a><span>    </span><a name="local-6989586621679236740"><a href="#local-6989586621679236740"><span class="hs-identifier">_mkStdTx</span></a></a><span> </span><a name="local-6989586621679236747"><a href="#local-6989586621679236747"><span class="hs-identifier">keyFrom</span></a></a><span> </span><a name="local-6989586621679236748"><a href="#local-6989586621679236748"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679236749"><a href="#local-6989586621679236749"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
-
</span><a name="line-107"></a><span>        </span><span class="hs-keyword">let</span><span> </span><a name="local-6989586621679236752"><a href="#local-6989586621679236752"><span class="hs-identifier">tx</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">fst</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679236748"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">,</span><span> </span><a href="#local-6989586621679236749"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span>
-
</span><a name="line-108"></a><span>        </span><span class="hs-keyword">let</span><span> </span><a name="local-6989586621679236768"><a href="#local-6989586621679236768"><span class="hs-identifier">sigData</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#blake2b256"><span class="hs-identifier hs-var">blake2b256</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeTx</span><span> </span><a href="#local-6989586621679236752"><span class="hs-identifier hs-var">tx</span></a><span class="hs-special">)</span><span>
-
</span><a name="line-109"></a><span>        </span><a name="local-6989586621679237162"><a href="#local-6989586621679237162"><span class="hs-identifier">witnesses</span></a></a><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-identifier hs-var">forM</span><span> </span><a href="#local-6989586621679236748"><span class="hs-identifier hs-var">inps</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-glyph">\</span><span class="hs-special">(</span><span class="hs-identifier">_</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">TxOut</span><span> </span><a name="local-6989586621679237161"><a href="#local-6989586621679237161"><span class="hs-identifier">addr</span></a></a><span> </span><span class="hs-identifier">_</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span>
-
</span><a name="line-110"></a><span>            </span><a href="Cardano.Wallet.Byron.Transaction.html#mkWitness"><span class="hs-identifier hs-var">mkWitness</span></a><span> </span><a href="#local-6989586621679236768"><span class="hs-identifier hs-var">sigData</span></a><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679236750"><span class="hs-identifier hs-var">lookupPrivateKey</span></a><span> </span><a href="#local-6989586621679237161"><span class="hs-identifier hs-var">addr</span></a><span>
+
</span><a name="line-106"></a><span>    </span><a name="local-6989586621679236811"><a href="#local-6989586621679236811"><span class="hs-identifier">_mkStdTx</span></a></a><span> </span><a name="local-6989586621679236818"><a href="#local-6989586621679236818"><span class="hs-identifier">keyFrom</span></a></a><span> </span><a name="local-6989586621679236819"><a href="#local-6989586621679236819"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679236820"><a href="#local-6989586621679236820"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
+
</span><a name="line-107"></a><span>        </span><span class="hs-keyword">let</span><span> </span><a name="local-6989586621679236823"><a href="#local-6989586621679236823"><span class="hs-identifier">tx</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">fst</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679236819"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">,</span><span> </span><a href="#local-6989586621679236820"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-108"></a><span>        </span><span class="hs-keyword">let</span><span> </span><a name="local-6989586621679236839"><a href="#local-6989586621679236839"><span class="hs-identifier">sigData</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#blake2b256"><span class="hs-identifier hs-var">blake2b256</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeTx</span><span> </span><a href="#local-6989586621679236823"><span class="hs-identifier hs-var">tx</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-109"></a><span>        </span><a name="local-6989586621679237233"><a href="#local-6989586621679237233"><span class="hs-identifier">witnesses</span></a></a><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-identifier hs-var">forM</span><span> </span><a href="#local-6989586621679236819"><span class="hs-identifier hs-var">inps</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-glyph">\</span><span class="hs-special">(</span><span class="hs-identifier">_</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">TxOut</span><span> </span><a name="local-6989586621679237232"><a href="#local-6989586621679237232"><span class="hs-identifier">addr</span></a></a><span> </span><span class="hs-identifier">_</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span>
+
</span><a name="line-110"></a><span>            </span><a href="Cardano.Wallet.Byron.Transaction.html#mkWitness"><span class="hs-identifier hs-var">mkWitness</span></a><span> </span><a href="#local-6989586621679236839"><span class="hs-identifier hs-var">sigData</span></a><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679236821"><span class="hs-identifier hs-var">lookupPrivateKey</span></a><span> </span><a href="#local-6989586621679237232"><span class="hs-identifier hs-var">addr</span></a><span>
</span><a name="line-111"></a><span>        </span><span class="hs-identifier hs-var">pure</span><span>
-
</span><a name="line-112"></a><span>            </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-var">Tx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">Hash</span><span> </span><a href="#local-6989586621679236768"><span class="hs-identifier hs-var">sigData</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">second</span><span> </span><span class="hs-identifier">coin</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679236748"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">)</span><span> </span><a href="#local-6989586621679236749"><span class="hs-identifier hs-var">outs</span></a><span>
-
</span><a name="line-113"></a><span>            </span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">SealedTx</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.toStrictByteString</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.encodeSignedTx</span><span> </span><a href="#local-6989586621679236752"><span class="hs-identifier hs-var">tx</span></a><span> </span><a href="#local-6989586621679237162"><span class="hs-identifier hs-var">witnesses</span></a><span>
+
</span><a name="line-112"></a><span>            </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-var">Tx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">Hash</span><span> </span><a href="#local-6989586621679236839"><span class="hs-identifier hs-var">sigData</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">second</span><span> </span><span class="hs-identifier">coin</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679236819"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">)</span><span> </span><a href="#local-6989586621679236820"><span class="hs-identifier hs-var">outs</span></a><span>
+
</span><a name="line-113"></a><span>            </span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">SealedTx</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.toStrictByteString</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.encodeSignedTx</span><span> </span><a href="#local-6989586621679236823"><span class="hs-identifier hs-var">tx</span></a><span> </span><a href="#local-6989586621679237233"><span class="hs-identifier hs-var">witnesses</span></a><span>
</span><a name="line-114"></a><span>            </span><span class="hs-special">)</span><span>
</span><a name="line-115"></a><span>      </span><span class="hs-keyword">where</span><span>
</span><a name="line-116"></a><span>        </span><span class="hs-identifier">lookupPrivateKey</span><span>
</span><a name="line-117"></a><span>            </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Address</span><span>
-
</span><a name="line-118"></a><span>            </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-identifier hs-type">ErrMkTx</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236738"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span>
-
</span><a name="line-119"></a><span>        </span><a name="local-6989586621679236750"><a href="#local-6989586621679236750"><span class="hs-identifier">lookupPrivateKey</span></a></a><span> </span><a name="local-6989586621679236751"><a href="#local-6989586621679236751"><span class="hs-identifier">addr</span></a></a><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-120"></a><span>            </span><span class="hs-identifier hs-var">maybeToRight</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">ErrKeyNotFoundForAddress</span><span> </span><a href="#local-6989586621679236751"><span class="hs-identifier hs-var">addr</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236747"><span class="hs-identifier hs-var">keyFrom</span></a><span> </span><a href="#local-6989586621679236751"><span class="hs-identifier hs-var">addr</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-118"></a><span>            </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-identifier hs-type">ErrMkTx</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236809"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span>
+
</span><a name="line-119"></a><span>        </span><a name="local-6989586621679236821"><a href="#local-6989586621679236821"><span class="hs-identifier">lookupPrivateKey</span></a></a><span> </span><a name="local-6989586621679236822"><a href="#local-6989586621679236822"><span class="hs-identifier">addr</span></a></a><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-120"></a><span>            </span><span class="hs-identifier hs-var">maybeToRight</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">ErrKeyNotFoundForAddress</span><span> </span><a href="#local-6989586621679236822"><span class="hs-identifier hs-var">addr</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236818"><span class="hs-identifier hs-var">keyFrom</span></a><span> </span><a href="#local-6989586621679236822"><span class="hs-identifier hs-var">addr</span></a><span class="hs-special">)</span><span>
</span><a name="line-121"></a><span>
</span><a name="line-122"></a><span>    </span><span class="hs-identifier">_estimateSize</span><span>
</span><a name="line-123"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">CoinSelection</span><span>
</span><a name="line-124"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Quantity</span><span> </span><span class="hs-string">&quot;byte&quot;</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
-
</span><a name="line-125"></a><span>    </span><a name="local-6989586621679236741"><a href="#local-6989586621679236741"><span class="hs-identifier">_estimateSize</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CoinSelection</span><span> </span><a name="local-6989586621679237163"><a href="#local-6989586621679237163"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679237164"><a href="#local-6989586621679237164"><span class="hs-identifier">outs</span></a></a><span> </span><a name="local-6989586621679237165"><a href="#local-6989586621679237165"><span class="hs-identifier">chngs</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-126"></a><span>        </span><span class="hs-identifier hs-var">Quantity</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfSignedTx"><span class="hs-identifier hs-var">sizeOfSignedTx</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">fst</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679237163"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679237164"><span class="hs-identifier hs-var">outs</span></a><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><span class="hs-identifier hs-var">map</span><span> </span><a href="#local-6989586621679237166"><span class="hs-identifier hs-var">dummyOutput</span></a><span> </span><a href="#local-6989586621679237165"><span class="hs-identifier hs-var">chngs</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-125"></a><span>    </span><a name="local-6989586621679236812"><a href="#local-6989586621679236812"><span class="hs-identifier">_estimateSize</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CoinSelection</span><span> </span><a name="local-6989586621679237234"><a href="#local-6989586621679237234"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679237235"><a href="#local-6989586621679237235"><span class="hs-identifier">outs</span></a></a><span> </span><a name="local-6989586621679237236"><a href="#local-6989586621679237236"><span class="hs-identifier">chngs</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-126"></a><span>        </span><span class="hs-identifier hs-var">Quantity</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfSignedTx"><span class="hs-identifier hs-var">sizeOfSignedTx</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">fst</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679237234"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679237235"><span class="hs-identifier hs-var">outs</span></a><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><span class="hs-identifier hs-var">map</span><span> </span><a href="#local-6989586621679237237"><span class="hs-identifier hs-var">dummyOutput</span></a><span> </span><a href="#local-6989586621679237236"><span class="hs-identifier hs-var">chngs</span></a><span class="hs-special">)</span><span>
</span><a name="line-127"></a><span>      </span><span class="hs-keyword">where</span><span>
</span><a name="line-128"></a><span>        </span><span class="hs-identifier">dummyOutput</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Coin</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">TxOut</span><span>
-
</span><a name="line-129"></a><span>        </span><a name="local-6989586621679237166"><a href="#local-6989586621679237166"><span class="hs-identifier">dummyOutput</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">TxOut</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Transaction.html#dummyAddress"><span class="hs-identifier hs-var">dummyAddress</span></a><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236737"><span class="hs-identifier hs-type">n</span></a><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236738"><span class="hs-identifier hs-type">k</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-129"></a><span>        </span><a name="local-6989586621679237237"><a href="#local-6989586621679237237"><span class="hs-identifier">dummyOutput</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">TxOut</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Transaction.html#dummyAddress"><span class="hs-identifier hs-var">dummyAddress</span></a><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236808"><span class="hs-identifier hs-type">n</span></a><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236809"><span class="hs-identifier hs-type">k</span></a><span class="hs-special">)</span><span>
</span><a name="line-130"></a><span>
</span><a name="line-131"></a><span>    </span><span class="hs-identifier">_estimateMaxNumberOfInputs</span><span>
</span><a name="line-132"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Quantity</span><span> </span><span class="hs-string">&quot;byte&quot;</span><span> </span><span class="hs-identifier hs-type">Word16</span><span>
</span><a name="line-133"></a><span>        </span><span class="hs-comment">-- ^ Transaction max size in bytes</span><span>
</span><a name="line-134"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Word8</span><span>
</span><a name="line-135"></a><span>        </span><span class="hs-comment">-- ^ Number of outputs in transaction</span><span>
</span><a name="line-136"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Word8</span><span>
-
</span><a name="line-137"></a><span>    </span><a name="local-6989586621679236742"><a href="#local-6989586621679236742"><span class="hs-identifier">_estimateMaxNumberOfInputs</span></a></a><span> </span><span class="hs-identifier">_</span><span> </span><span class="hs-identifier">_</span><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-137"></a><span>    </span><a name="local-6989586621679236813"><a href="#local-6989586621679236813"><span class="hs-identifier">_estimateMaxNumberOfInputs</span></a></a><span> </span><span class="hs-identifier">_</span><span> </span><span class="hs-identifier">_</span><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-138"></a><span>        </span><span class="hs-comment">-- TODO: Compute the actual size or, revise coin selection to not</span><span>
</span><a name="line-139"></a><span>        </span><span class="hs-comment">-- need that. Instead, we could simply compute the size of the</span><span>
</span><a name="line-140"></a><span>        </span><span class="hs-comment">-- transaction at each step and check that it remains under the</span><span>
</span><a name="line-143"></a><span>
</span><a name="line-144"></a><span>    </span><span class="hs-identifier">_validateSelection</span><span>
</span><a name="line-145"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">CoinSelection</span><span>
-
</span><a name="line-146"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">ErrValidateSelection</span><span> </span><a href="#local-6989586621679236739"><span class="hs-identifier hs-type">t</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
-
</span><a name="line-147"></a><span>    </span><a name="local-6989586621679236743"><a href="#local-6989586621679236743"><span class="hs-identifier">_validateSelection</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CoinSelection</span><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679237700"><a href="#local-6989586621679237700"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-identifier">_</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-148"></a><span>        </span><span class="hs-identifier hs-var">when</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">any</span><span> </span><span class="hs-special">(</span><span class="hs-glyph">\</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxOut</span><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679237701"><a href="#local-6989586621679237701"><span class="hs-identifier">c</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><a href="#local-6989586621679237701"><span class="hs-identifier hs-var">c</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-identifier hs-var">Coin</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span> </span><a href="#local-6989586621679237700"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">$</span><span>
+
</span><a name="line-146"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">ErrValidateSelection</span><span> </span><a href="#local-6989586621679236810"><span class="hs-identifier hs-type">t</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
+
</span><a name="line-147"></a><span>    </span><a name="local-6989586621679236814"><a href="#local-6989586621679236814"><span class="hs-identifier">_validateSelection</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CoinSelection</span><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679237771"><a href="#local-6989586621679237771"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-identifier">_</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-148"></a><span>        </span><span class="hs-identifier hs-var">when</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">any</span><span> </span><span class="hs-special">(</span><span class="hs-glyph">\</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxOut</span><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679237772"><a href="#local-6989586621679237772"><span class="hs-identifier">c</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><a href="#local-6989586621679237772"><span class="hs-identifier hs-var">c</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-identifier hs-var">Coin</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span> </span><a href="#local-6989586621679237771"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">$</span><span>
</span><a name="line-149"></a><span>            </span><span class="hs-identifier hs-var">Left</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#ErrInvalidTxOutAmount"><span class="hs-identifier hs-var">ErrInvalidTxOutAmount</span></a><span>
</span><a name="line-150"></a><span>
</span><a name="line-151"></a><span>    </span><span class="hs-identifier">_decodeSignedTx</span><span>
</span><a name="line-152"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">ByteString</span><span>
</span><a name="line-153"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-identifier hs-type">ErrDecodeSignedTx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Tx</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">SealedTx</span><span class="hs-special">)</span><span>
-
</span><a name="line-154"></a><span>    </span><a name="local-6989586621679236744"><a href="#local-6989586621679236744"><span class="hs-identifier">_decodeSignedTx</span></a></a><span> </span><a name="local-6989586621679237702"><a href="#local-6989586621679237702"><span class="hs-identifier">bytes</span></a></a><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-155"></a><span>        </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier hs-var">CBOR.deserialiseFromBytes</span><span> </span><span class="hs-identifier hs-var">CBOR.decodeSignedTx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">BL.fromStrict</span><span> </span><a href="#local-6989586621679237702"><span class="hs-identifier hs-var">bytes</span></a><span class="hs-special">)</span><span> </span><span class="hs-keyword">of</span><span>
-
</span><a name="line-156"></a><span>            </span><span class="hs-identifier hs-var">Left</span><span> </span><a name="local-6989586621679237703"><a href="#local-6989586621679237703"><span class="hs-identifier">e</span></a></a><span> </span><span class="hs-glyph">-&gt;</span><span>
-
</span><a name="line-157"></a><span>                </span><span class="hs-identifier hs-var">Left</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">ErrDecodeSignedTxWrongPayload</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">T.pack</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">show</span><span> </span><a href="#local-6989586621679237703"><span class="hs-identifier hs-var">e</span></a><span>
-
</span><a name="line-158"></a><span>            </span><span class="hs-identifier hs-var">Right</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">_</span><span class="hs-special">,</span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><a name="local-6989586621679237704"><a href="#local-6989586621679237704"><span class="hs-identifier">inps</span></a></a><span class="hs-special">,</span><span> </span><a name="local-6989586621679237705"><a href="#local-6989586621679237705"><span class="hs-identifier">outs</span></a></a><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">_</span><span class="hs-special">)</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-var">Right</span><span>
+
</span><a name="line-154"></a><span>    </span><a name="local-6989586621679236815"><a href="#local-6989586621679236815"><span class="hs-identifier">_decodeSignedTx</span></a></a><span> </span><a name="local-6989586621679237773"><a href="#local-6989586621679237773"><span class="hs-identifier">bytes</span></a></a><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-155"></a><span>        </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier hs-var">CBOR.deserialiseFromBytes</span><span> </span><span class="hs-identifier hs-var">CBOR.decodeSignedTx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">BL.fromStrict</span><span> </span><a href="#local-6989586621679237773"><span class="hs-identifier hs-var">bytes</span></a><span class="hs-special">)</span><span> </span><span class="hs-keyword">of</span><span>
+
</span><a name="line-156"></a><span>            </span><span class="hs-identifier hs-var">Left</span><span> </span><a name="local-6989586621679237774"><a href="#local-6989586621679237774"><span class="hs-identifier">e</span></a></a><span> </span><span class="hs-glyph">-&gt;</span><span>
+
</span><a name="line-157"></a><span>                </span><span class="hs-identifier hs-var">Left</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">ErrDecodeSignedTxWrongPayload</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">T.pack</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">show</span><span> </span><a href="#local-6989586621679237774"><span class="hs-identifier hs-var">e</span></a><span>
+
</span><a name="line-158"></a><span>            </span><span class="hs-identifier hs-var">Right</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">_</span><span class="hs-special">,</span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><a name="local-6989586621679237775"><a href="#local-6989586621679237775"><span class="hs-identifier">inps</span></a></a><span class="hs-special">,</span><span> </span><a name="local-6989586621679237776"><a href="#local-6989586621679237776"><span class="hs-identifier">outs</span></a></a><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">_</span><span class="hs-special">)</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-var">Right</span><span>
</span><a name="line-159"></a><span>                </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-var">Tx</span><span>
-
</span><a name="line-160"></a><span>                    </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">txId</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">Hash</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#blake2b256"><span class="hs-identifier hs-var">blake2b256</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.encodeTx</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679237704"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">,</span><span> </span><a href="#local-6989586621679237705"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-160"></a><span>                    </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">txId</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">Hash</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#blake2b256"><span class="hs-identifier hs-var">blake2b256</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.encodeTx</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679237775"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">,</span><span> </span><a href="#local-6989586621679237776"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span>
</span><a name="line-161"></a><span>                    </span><span class="hs-comment">-- FIXME Do not require Tx to have resolvedInputs</span><span>
-
</span><a name="line-162"></a><span>                    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">resolvedInputs</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-special">,</span><span class="hs-identifier hs-var">Coin</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679237704"><span class="hs-identifier hs-var">inps</span></a><span>
-
</span><a name="line-163"></a><span>                    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">outputs</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679237705"><span class="hs-identifier hs-var">outs</span></a><span>
+
</span><a name="line-162"></a><span>                    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">resolvedInputs</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-special">,</span><span class="hs-identifier hs-var">Coin</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679237775"><span class="hs-identifier hs-var">inps</span></a><span>
+
</span><a name="line-163"></a><span>                    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">outputs</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679237776"><span class="hs-identifier hs-var">outs</span></a><span>
</span><a name="line-164"></a><span>                    </span><span class="hs-special">}</span><span>
-
</span><a name="line-165"></a><span>                </span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">SealedTx</span><span> </span><a href="#local-6989586621679237702"><span class="hs-identifier hs-var">bytes</span></a><span>
+
</span><a name="line-165"></a><span>                </span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">SealedTx</span><span> </span><a href="#local-6989586621679237773"><span class="hs-identifier hs-var">bytes</span></a><span>
</span><a name="line-166"></a><span>                </span><span class="hs-special">)</span><span>
</span><a name="line-167"></a><span>
</span><a name="line-168"></a><span>    </span><span class="hs-identifier">_mkDelegationJoinTx</span><span>
</span><a name="line-169"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">PoolId</span><span>
-
</span><a name="line-170"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236738"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span> </span><span class="hs-comment">-- reward account</span><span>
-
</span><a name="line-171"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236738"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
+
</span><a name="line-170"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236809"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span> </span><span class="hs-comment">-- reward account</span><span>
+
</span><a name="line-171"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236809"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><a name="line-172"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="hs-identifier hs-type">TxIn</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">)</span><span class="hs-special">]</span><span>
</span><a name="line-173"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">]</span><span>
</span><a name="line-174"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-identifier hs-type">ErrMkTx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Tx</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">SealedTx</span><span class="hs-special">)</span><span>
-
</span><a name="line-175"></a><span>    </span><a name="local-6989586621679236745"><a href="#local-6989586621679236745"><span class="hs-identifier">_mkDelegationJoinTx</span></a></a><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-175"></a><span>    </span><a name="local-6989586621679236816"><a href="#local-6989586621679236816"><span class="hs-identifier">_mkDelegationJoinTx</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-176"></a><span>        </span><a href="Cardano.Wallet.Byron.Transaction.html#notImplemented"><span class="hs-identifier hs-var">notImplemented</span></a><span> </span><span class="hs-string">&quot;mkDelegationJoinTx&quot;</span><span>
</span><a name="line-177"></a><span>
</span><a name="line-178"></a><span>    </span><span class="hs-identifier">_mkDelegationQuitTx</span><span>
-
</span><a name="line-179"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236738"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span> </span><span class="hs-comment">-- reward account</span><span>
-
</span><a name="line-180"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236738"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
+
</span><a name="line-179"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236809"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span> </span><span class="hs-comment">-- reward account</span><span>
+
</span><a name="line-180"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236809"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><a name="line-181"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="hs-identifier hs-type">TxIn</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">)</span><span class="hs-special">]</span><span>
</span><a name="line-182"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">]</span><span>
</span><a name="line-183"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-identifier hs-type">ErrMkTx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Tx</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">SealedTx</span><span class="hs-special">)</span><span>
-
</span><a name="line-184"></a><span>    </span><a name="local-6989586621679236746"><a href="#local-6989586621679236746"><span class="hs-identifier">_mkDelegationQuitTx</span></a></a><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-184"></a><span>    </span><a name="local-6989586621679236817"><a href="#local-6989586621679236817"><span class="hs-identifier">_mkDelegationQuitTx</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-185"></a><span>        </span><a href="Cardano.Wallet.Byron.Transaction.html#notImplemented"><span class="hs-identifier hs-var">notImplemented</span></a><span> </span><span class="hs-string">&quot;mkDelegationQuitTx&quot;</span><span>
</span><a name="line-186"></a><span>
</span><a name="line-187"></a><span class="hs-comment">--------------------------------------------------------------------------------</span><span>
</span><a name="line-192"></a><span class="hs-keyword">data</span><span> </span><a name="ErrInvalidTxOutAmount"><a href="Cardano.Wallet.Byron.Transaction.html#ErrInvalidTxOutAmount"><span class="hs-identifier">ErrInvalidTxOutAmount</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a name="ErrInvalidTxOutAmount"><a href="Cardano.Wallet.Byron.Transaction.html#ErrInvalidTxOutAmount"><span class="hs-identifier">ErrInvalidTxOutAmount</span></a></a><span>
</span><a name="line-193"></a><span>
</span><a name="line-194"></a><span class="hs-keyword">instance</span><span> </span><span class="hs-identifier hs-type">Buildable</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#ErrInvalidTxOutAmount"><span class="hs-identifier hs-type">ErrInvalidTxOutAmount</span></a><span> </span><span class="hs-keyword">where</span><span>
-
</span><a name="line-195"></a><span>    </span><a name="local-8214565720324007718"><span class="hs-identifier">build</span></a><span> </span><span class="hs-identifier">_</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-string">&quot;Invalid coin selection: at least one output is null.&quot;</span><span>
+
</span><a name="line-195"></a><span>    </span><a name="local-8214565720324007789"><span class="hs-identifier">build</span></a><span> </span><span class="hs-identifier">_</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-string">&quot;Invalid coin selection: at least one output is null.&quot;</span><span>
</span><a name="line-196"></a><span>
</span><a name="line-197"></a><span class="hs-keyword">type</span><span> </span><span class="hs-keyword">instance</span><span> </span><span class="hs-identifier hs-type">ErrValidateSelection</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">IO</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#Byron"><span class="hs-identifier hs-type">Byron</span></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#ErrInvalidTxOutAmount"><span class="hs-identifier hs-type">ErrInvalidTxOutAmount</span></a><span>
</span><a name="line-198"></a><span>
</span><a name="line-201"></a><span class="hs-comment">--</span><span>
</span><a name="line-202"></a><span>
</span><a name="line-203"></a><span class="hs-identifier">dummyAddress</span><span>
-
</span><a name="line-204"></a><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679236735"><a href="#local-6989586621679236735"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">NetworkDiscriminant</span><span class="hs-special">)</span><span> </span><a name="local-6989586621679236736"><a href="#local-6989586621679236736"><span class="hs-identifier">k</span></a></a><span class="hs-operator">.</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><a href="#local-6989586621679236735"><span class="hs-identifier hs-type">n</span></a><span> </span><a href="#local-6989586621679236736"><span class="hs-identifier hs-type">k</span></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-identifier hs-type">Address</span><span>
+
</span><a name="line-204"></a><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679236806"><a href="#local-6989586621679236806"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">NetworkDiscriminant</span><span class="hs-special">)</span><span> </span><a name="local-6989586621679236807"><a href="#local-6989586621679236807"><span class="hs-identifier">k</span></a></a><span class="hs-operator">.</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><a href="#local-6989586621679236806"><span class="hs-identifier hs-type">n</span></a><span> </span><a href="#local-6989586621679236807"><span class="hs-identifier hs-type">k</span></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-identifier hs-type">Address</span><span>
</span><a name="line-205"></a><a name="dummyAddress"><a href="Cardano.Wallet.Byron.Transaction.html#dummyAddress"><span class="hs-identifier">dummyAddress</span></a></a><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-206"></a><span>    </span><span class="hs-identifier hs-var">Address</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">BS.replicate</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier hs-var">worstSizeOf</span></a><span> </span><span class="hs-glyph">@</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236735"><span class="hs-identifier hs-type">n</span></a><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236736"><span class="hs-identifier hs-type">k</span></a><span class="hs-special">)</span><span> </span><span class="hs-number">0</span><span>
+
</span><a name="line-206"></a><span>    </span><span class="hs-identifier hs-var">Address</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">BS.replicate</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier hs-var">worstSizeOf</span></a><span> </span><span class="hs-glyph">@</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236806"><span class="hs-identifier hs-type">n</span></a><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236807"><span class="hs-identifier hs-type">k</span></a><span class="hs-special">)</span><span> </span><span class="hs-number">0</span><span>
</span><a name="line-207"></a><span>
</span><a name="line-208"></a><span class="hs-identifier">mkWitness</span><span>
-
</span><a name="line-209"></a><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">WalletKey</span><span> </span><a href="#local-6989586621679236734"><span class="hs-identifier hs-type">k</span></a><span>
+
</span><a name="line-209"></a><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">WalletKey</span><span> </span><a href="#local-6989586621679236805"><span class="hs-identifier hs-type">k</span></a><span>
</span><a name="line-210"></a><span>    </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-identifier hs-type">ByteString</span><span>
-
</span><a name="line-211"></a><span>    </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236734"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span>
+
</span><a name="line-211"></a><span>    </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236805"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span>
</span><a name="line-212"></a><span>    </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">ByteString</span><span>
-
</span><a name="line-213"></a><a name="mkWitness"><a href="Cardano.Wallet.Byron.Transaction.html#mkWitness"><span class="hs-identifier">mkWitness</span></a></a><span> </span><a name="local-6989586621679237713"><a href="#local-6989586621679237713"><span class="hs-identifier">sigData</span></a></a><span> </span><span class="hs-special">(</span><a name="local-6989586621679237714"><a href="#local-6989586621679237714"><span class="hs-identifier">xPrv</span></a></a><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">Passphrase</span><span> </span><a name="local-6989586621679237715"><a href="#local-6989586621679237715"><span class="hs-identifier">pwd</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">CBOR.toStrictByteString</span><span>
-
</span><a name="line-214"></a><span>    </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.encodePublicKeyWitness</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">getRawKey</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">publicKey</span><span> </span><a href="#local-6989586621679237714"><span class="hs-identifier hs-var">xPrv</span></a><span class="hs-special">)</span><span>
-
</span><a name="line-215"></a><span>    </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier">CC.unXSignature</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CC.sign</span><span> </span><a href="#local-6989586621679237715"><span class="hs-identifier hs-var">pwd</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">getRawKey</span><span> </span><a href="#local-6989586621679237714"><span class="hs-identifier hs-var">xPrv</span></a><span class="hs-special">)</span><span> </span><a href="#local-6989586621679237716"><span class="hs-identifier hs-var">message</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-213"></a><a name="mkWitness"><a href="Cardano.Wallet.Byron.Transaction.html#mkWitness"><span class="hs-identifier">mkWitness</span></a></a><span> </span><a name="local-6989586621679237784"><a href="#local-6989586621679237784"><span class="hs-identifier">sigData</span></a></a><span> </span><span class="hs-special">(</span><a name="local-6989586621679237785"><a href="#local-6989586621679237785"><span class="hs-identifier">xPrv</span></a></a><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">Passphrase</span><span> </span><a name="local-6989586621679237786"><a href="#local-6989586621679237786"><span class="hs-identifier">pwd</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">CBOR.toStrictByteString</span><span>
+
</span><a name="line-214"></a><span>    </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.encodePublicKeyWitness</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">getRawKey</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">publicKey</span><span> </span><a href="#local-6989586621679237785"><span class="hs-identifier hs-var">xPrv</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-215"></a><span>    </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier">CC.unXSignature</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CC.sign</span><span> </span><a href="#local-6989586621679237786"><span class="hs-identifier hs-var">pwd</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">getRawKey</span><span> </span><a href="#local-6989586621679237785"><span class="hs-identifier hs-var">xPrv</span></a><span class="hs-special">)</span><span> </span><a href="#local-6989586621679237787"><span class="hs-identifier hs-var">message</span></a><span class="hs-special">)</span><span>
</span><a name="line-216"></a><span>  </span><span class="hs-keyword">where</span><span>
-
</span><a name="line-217"></a><span>    </span><a name="local-6989586621679237716"><a href="#local-6989586621679237716"><span class="hs-identifier">message</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-string">&quot;\x01&quot;</span><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><a href="#local-6989586621679237717"><span class="hs-identifier hs-var">pm</span></a><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><span class="hs-identifier hs-var">CBOR.toStrictByteString</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeBytes</span><span> </span><a href="#local-6989586621679237713"><span class="hs-identifier hs-var">sigData</span></a><span class="hs-special">)</span><span>
-
</span><a name="line-218"></a><span>    </span><a name="local-6989586621679237717"><a href="#local-6989586621679237717"><span class="hs-identifier">pm</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#notImplemented"><span class="hs-identifier hs-var">notImplemented</span></a><span> </span><span class="hs-string">&quot;protocolMagic&quot;</span><span>
+
</span><a name="line-217"></a><span>    </span><a name="local-6989586621679237787"><a href="#local-6989586621679237787"><span class="hs-identifier">message</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-string">&quot;\x01&quot;</span><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><a href="#local-6989586621679237788"><span class="hs-identifier hs-var">pm</span></a><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><span class="hs-identifier hs-var">CBOR.toStrictByteString</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeBytes</span><span> </span><a href="#local-6989586621679237784"><span class="hs-identifier hs-var">sigData</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-218"></a><span>    </span><a name="local-6989586621679237788"><a href="#local-6989586621679237788"><span class="hs-identifier">pm</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#notImplemented"><span class="hs-identifier hs-var">notImplemented</span></a><span> </span><span class="hs-string">&quot;protocolMagic&quot;</span><span>
</span><a name="line-219"></a><span>        </span><span class="hs-comment">-- CBOR.toStrictByteString . CBOR.encodeInt32 $ x</span><span>
</span><a name="line-220"></a><span>        </span><span class="hs-comment">-- let ProtocolMagic x = protocolMagic @n in</span><span>
</span><a name="line-221"></a><span>
</span><a name="line-222"></a><span class="hs-identifier">blake2b256</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">CBOR.Encoding</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">ByteString</span><span>
</span><a name="line-223"></a><a name="blake2b256"><a href="Cardano.Wallet.Byron.Transaction.html#blake2b256"><span class="hs-identifier">blake2b256</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-224"></a><span>    </span><span class="hs-identifier hs-var">BA.convert</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">hash</span><span> </span><span class="hs-glyph">@</span><span class="hs-identifier">_</span><span> </span><span class="hs-glyph">@</span><span class="hs-identifier hs-type">Blake2b_256</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">CBOR.toStrictByteString</span><span>
</span><a name="line-225"></a><span>
-
</span><a name="line-226"></a><span class="hs-identifier">notImplemented</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">HasCallStack</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-identifier hs-type">String</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><a href="#local-6989586621679236733"><span class="hs-identifier hs-type">a</span></a><span>
-
</span><a name="line-227"></a><a name="notImplemented"><a href="Cardano.Wallet.Byron.Transaction.html#notImplemented"><span class="hs-identifier">notImplemented</span></a></a><span> </span><a name="local-6989586621679237719"><a href="#local-6989586621679237719"><span class="hs-identifier">what</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">error</span><span> </span><span class="hs-special">(</span><span class="hs-string">&quot;Not implemented: &quot;</span><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><a href="#local-6989586621679237719"><span class="hs-identifier hs-var">what</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-226"></a><span class="hs-identifier">notImplemented</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">HasCallStack</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-identifier hs-type">String</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><a href="#local-6989586621679236804"><span class="hs-identifier hs-type">a</span></a><span>
+
</span><a name="line-227"></a><a name="notImplemented"><a href="Cardano.Wallet.Byron.Transaction.html#notImplemented"><span class="hs-identifier">notImplemented</span></a></a><span> </span><a name="local-6989586621679237790"><a href="#local-6989586621679237790"><span class="hs-identifier">what</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">error</span><span> </span><span class="hs-special">(</span><span class="hs-string">&quot;Not implemented: &quot;</span><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><a href="#local-6989586621679237790"><span class="hs-identifier hs-var">what</span></a><span class="hs-special">)</span><span>
</span><a name="line-228"></a></pre></body></html>
\ No newline at end of file
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Cardano.Wallet.Api.Client</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Cardano.Wallet.Api.Client.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">cardano-wallet-core-2020.1.27: The Wallet Backend for a Cardano node.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>&#169; 2018-2020 IOHK</td></tr><tr><th>License</th><td>Apache-2.0</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Cardano.Wallet.Api.Client</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">API endpoints</a></li><li><a href="#g:2">Helper functions</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module provides a Servant client for the cardano-wallet V2 API.</p><p>The functions in this module can be run with &quot;Servant.Client.runClientM&quot;.</p></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><span class="keyword">data</span> <a href="#t:WalletClient">WalletClient</a> t = <a href="#v:WalletClient">WalletClient</a> {<ul class="subs"><li><a href="#v:listAddresses">listAddresses</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:AddressState" title="Cardano.Wallet.Primitive.Types">AddressState</a>) -&gt; ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiAddress" title="Cardano.Wallet.Api.Types">ApiAddress</a> t]</li><li><a href="#v:deleteWallet">deleteWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; ClientM ()</li><li><a href="#v:getWallet">getWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a></li><li><a href="#v:getWalletUtxoStatistics">getWalletUtxoStatistics</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiUtxoStatistics" title="Cardano.Wallet.Api.Types">ApiUtxoStatistics</a></li><li><a href="#v:listWallets">listWallets</a> :: ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a>]</li><li><a href="#v:postWallet">postWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:WalletPostData" title="Cardano.Wallet.Api.Types">WalletPostData</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a></li><li><a href="#v:putWallet">putWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:WalletPutData" title="Cardano.Wallet.Api.Types">WalletPutData</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a></li><li><a href="#v:putWalletPassphrase">putWalletPassphrase</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:WalletPutPassphraseData" title="Cardano.Wallet.Api.Types">WalletPutPassphraseData</a> -&gt; ClientM NoContent</li><li><a href="#v:forceResyncWallet">forceResyncWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiNetworkTip" title="Cardano.Wallet.Api.Types">ApiNetworkTip</a> -&gt; ClientM NoContent</li><li><a href="#v:listTransactions">listTransactions</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:SortOrder" title="Cardano.Wallet.Primitive.Types">SortOrder</a>) -&gt; ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t]</li><li><a href="#v:postTransaction">postTransaction</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:PostTransactionData" title="Cardano.Wallet.Api.Types">PostTransactionData</a> t -&gt; ClientM (<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t)</li><li><a href="#v:postTransactionFee">postTransactionFee</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:PostTransactionFeeData" title="Cardano.Wallet.Api.Types">PostTransactionFeeData</a> t -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiFee" title="Cardano.Wallet.Api.Types">ApiFee</a></li><li><a href="#v:postExternalTransaction">postExternalTransaction</a> :: <a href="Cardano-Wallet-Api-Types.html#t:PostExternalTransactionData" title="Cardano.Wallet.Api.Types">PostExternalTransactionData</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiTxId" title="Cardano.Wallet.Api.Types">ApiTxId</a></li><li><a href="#v:deleteTransaction">deleteTransaction</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiTxId" title="Cardano.Wallet.Api.Types">ApiTxId</a> -&gt; ClientM NoContent</li><li><a href="#v:listPools">listPools</a> :: ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiStakePool" title="Cardano.Wallet.Api.Types">ApiStakePool</a>]</li><li><a href="#v:joinStakePool">joinStakePool</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:PoolId" title="Cardano.Wallet.Primitive.Types">PoolId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiWalletPassphrase" title="Cardano.Wallet.Api.Types">ApiWalletPassphrase</a> -&gt; ClientM (<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t)</li><li><a href="#v:quitStakePool">quitStakePool</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:PoolId" title="Cardano.Wallet.Primitive.Types">PoolId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiWalletPassphrase" title="Cardano.Wallet.Api.Types">ApiWalletPassphrase</a> -&gt; ClientM (<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t)</li><li><a href="#v:networkInformation">networkInformation</a> :: ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiNetworkInformation" title="Cardano.Wallet.Api.Types">ApiNetworkInformation</a></li><li><a href="#v:networkParameters">networkParameters</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiEpochNumber" title="Cardano.Wallet.Api.Types">ApiEpochNumber</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiNetworkParameters" title="Cardano.Wallet.Api.Types">ApiNetworkParameters</a></li></ul>}</li><li class="src short"><a href="#v:walletClient">walletClient</a> :: <span class="keyword">forall</span> t. (<a href="Cardano-Wallet-Api-Types.html#t:DecodeAddress" title="Cardano.Wallet.Api.Types">DecodeAddress</a> t, <a href="Cardano-Wallet-Api-Types.html#t:EncodeAddress" title="Cardano.Wallet.Api.Types">EncodeAddress</a> t) =&gt; <a href="Cardano-Wallet-Api-Client.html#t:WalletClient" title="Cardano.Wallet.Api.Client">WalletClient</a> t</li><li class="src short"><a href="#v:waitForSync">waitForSync</a> :: <a href="Cardano-Wallet-Api-Client.html#t:WalletClient" title="Cardano.Wallet.Api.Client">WalletClient</a> t -&gt; ClientM ()</li><li class="src short"><a href="#v:waitForRestore">waitForRestore</a> :: <a href="Cardano-Wallet-Api-Client.html#t:WalletClient" title="Cardano.Wallet.Api.Client">WalletClient</a> t -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a></li></ul></details></div><div id="interface"><a href="#g:1" id="g:1"><h1>API endpoints</h1></a><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:WalletClient" class="def">WalletClient</a> t <a href="src/Cardano.Wallet.Api.Client.html#WalletClient" class="link">Source</a> <a href="#t:WalletClient" class="selflink">#</a></p><div class="doc"><p>This data type encapsulates the client functions for all endpoints of the
-
 cardano-wallet V2 API.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:WalletClient" class="def">WalletClient</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:listAddresses" class="def">listAddresses</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:AddressState" title="Cardano.Wallet.Primitive.Types">AddressState</a>) -&gt; ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiAddress" title="Cardano.Wallet.Api.Types">ApiAddress</a> t]</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:deleteWallet" class="def">deleteWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; ClientM ()</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:getWallet" class="def">getWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:getWalletUtxoStatistics" class="def">getWalletUtxoStatistics</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiUtxoStatistics" title="Cardano.Wallet.Api.Types">ApiUtxoStatistics</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:listWallets" class="def">listWallets</a> :: ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a>]</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:postWallet" class="def">postWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:WalletPostData" title="Cardano.Wallet.Api.Types">WalletPostData</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:putWallet" class="def">putWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:WalletPutData" title="Cardano.Wallet.Api.Types">WalletPutData</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:putWalletPassphrase" class="def">putWalletPassphrase</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:WalletPutPassphraseData" title="Cardano.Wallet.Api.Types">WalletPutPassphraseData</a> -&gt; ClientM NoContent</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:forceResyncWallet" class="def">forceResyncWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiNetworkTip" title="Cardano.Wallet.Api.Types">ApiNetworkTip</a> -&gt; ClientM NoContent</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:listTransactions" class="def">listTransactions</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:SortOrder" title="Cardano.Wallet.Primitive.Types">SortOrder</a>) -&gt; ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t]</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:postTransaction" class="def">postTransaction</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:PostTransactionData" title="Cardano.Wallet.Api.Types">PostTransactionData</a> t -&gt; ClientM (<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t)</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:postTransactionFee" class="def">postTransactionFee</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:PostTransactionFeeData" title="Cardano.Wallet.Api.Types">PostTransactionFeeData</a> t -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiFee" title="Cardano.Wallet.Api.Types">ApiFee</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:postExternalTransaction" class="def">postExternalTransaction</a> :: <a href="Cardano-Wallet-Api-Types.html#t:PostExternalTransactionData" title="Cardano.Wallet.Api.Types">PostExternalTransactionData</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiTxId" title="Cardano.Wallet.Api.Types">ApiTxId</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:deleteTransaction" class="def">deleteTransaction</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiTxId" title="Cardano.Wallet.Api.Types">ApiTxId</a> -&gt; ClientM NoContent</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:listPools" class="def">listPools</a> :: ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiStakePool" title="Cardano.Wallet.Api.Types">ApiStakePool</a>]</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:joinStakePool" class="def">joinStakePool</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:PoolId" title="Cardano.Wallet.Primitive.Types">PoolId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiWalletPassphrase" title="Cardano.Wallet.Api.Types">ApiWalletPassphrase</a> -&gt; ClientM (<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t)</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:quitStakePool" class="def">quitStakePool</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:PoolId" title="Cardano.Wallet.Primitive.Types">PoolId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiWalletPassphrase" title="Cardano.Wallet.Api.Types">ApiWalletPassphrase</a> -&gt; ClientM (<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t)</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:networkInformation" class="def">networkInformation</a> :: ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiNetworkInformation" title="Cardano.Wallet.Api.Types">ApiNetworkInformation</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:networkParameters" class="def">networkParameters</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiEpochNumber" title="Cardano.Wallet.Api.Types">ApiEpochNumber</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiNetworkParameters" title="Cardano.Wallet.Api.Types">ApiNetworkParameters</a></dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div></div><div class="top"><p class="src"><a id="v:walletClient" class="def">walletClient</a> :: <span class="keyword">forall</span> t. (<a href="Cardano-Wallet-Api-Types.html#t:DecodeAddress" title="Cardano.Wallet.Api.Types">DecodeAddress</a> t, <a href="Cardano-Wallet-Api-Types.html#t:EncodeAddress" title="Cardano.Wallet.Api.Types">EncodeAddress</a> t) =&gt; <a href="Cardano-Wallet-Api-Client.html#t:WalletClient" title="Cardano.Wallet.Api.Client">WalletClient</a> t <a href="src/Cardano.Wallet.Api.Client.html#walletClient" class="link">Source</a> <a href="#v:walletClient" class="selflink">#</a></p><div class="doc"><p>Produces a <code><a href="Cardano-Wallet-Api-Client.html#t:WalletClient" title="Cardano.Wallet.Api.Client">WalletClient</a></code> for the cardano-wallet V2 API.</p><p>You should apply a
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Cardano.Wallet.Api.Client</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Cardano.Wallet.Api.Client.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">cardano-wallet-core-2020.1.27: The Wallet Backend for a Cardano node.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>&#169; 2018-2020 IOHK</td></tr><tr><th>License</th><td>Apache-2.0</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Cardano.Wallet.Api.Client</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">API endpoints</a></li><li><a href="#g:2">Helper functions</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module provides a Servant client for the cardano-wallet V2 API.</p><p>The functions in this module can be run with &quot;Servant.Client.runClientM&quot;.</p></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><span class="keyword">data</span> <a href="#t:WalletClient">WalletClient</a> t = <a href="#v:WalletClient">WalletClient</a> {<ul class="subs"><li><a href="#v:listAddresses">listAddresses</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:AddressState" title="Cardano.Wallet.Primitive.Types">AddressState</a>) -&gt; ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiAddress" title="Cardano.Wallet.Api.Types">ApiAddress</a> t]</li><li><a href="#v:deleteWallet">deleteWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; ClientM ()</li><li><a href="#v:getWallet">getWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a></li><li><a href="#v:getWalletUtxoStatistics">getWalletUtxoStatistics</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiUtxoStatistics" title="Cardano.Wallet.Api.Types">ApiUtxoStatistics</a></li><li><a href="#v:listWallets">listWallets</a> :: ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a>]</li><li><a href="#v:postWallet">postWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:WalletPostData" title="Cardano.Wallet.Api.Types">WalletPostData</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a></li><li><a href="#v:putWallet">putWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:WalletPutData" title="Cardano.Wallet.Api.Types">WalletPutData</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a></li><li><a href="#v:putWalletPassphrase">putWalletPassphrase</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:WalletPutPassphraseData" title="Cardano.Wallet.Api.Types">WalletPutPassphraseData</a> -&gt; ClientM NoContent</li><li><a href="#v:forceResyncWallet">forceResyncWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiNetworkTip" title="Cardano.Wallet.Api.Types">ApiNetworkTip</a> -&gt; ClientM NoContent</li><li><a href="#v:listTransactions">listTransactions</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:SortOrder" title="Cardano.Wallet.Primitive.Types">SortOrder</a>) -&gt; ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t]</li><li><a href="#v:postTransaction">postTransaction</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:PostTransactionData" title="Cardano.Wallet.Api.Types">PostTransactionData</a> t -&gt; ClientM (<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t)</li><li><a href="#v:postTransactionFee">postTransactionFee</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:PostTransactionFeeData" title="Cardano.Wallet.Api.Types">PostTransactionFeeData</a> t -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiFee" title="Cardano.Wallet.Api.Types">ApiFee</a></li><li><a href="#v:postExternalTransaction">postExternalTransaction</a> :: <a href="Cardano-Wallet-Api-Types.html#t:PostExternalTransactionData" title="Cardano.Wallet.Api.Types">PostExternalTransactionData</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiTxId" title="Cardano.Wallet.Api.Types">ApiTxId</a></li><li><a href="#v:deleteTransaction">deleteTransaction</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiTxId" title="Cardano.Wallet.Api.Types">ApiTxId</a> -&gt; ClientM NoContent</li><li><a href="#v:listPools">listPools</a> :: ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiStakePool" title="Cardano.Wallet.Api.Types">ApiStakePool</a>]</li><li><a href="#v:joinStakePool">joinStakePool</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:PoolId" title="Cardano.Wallet.Primitive.Types">PoolId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiWalletPassphrase" title="Cardano.Wallet.Api.Types">ApiWalletPassphrase</a> -&gt; ClientM (<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t)</li><li><a href="#v:quitStakePool">quitStakePool</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiWalletPassphrase" title="Cardano.Wallet.Api.Types">ApiWalletPassphrase</a> -&gt; ClientM (<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t)</li><li><a href="#v:networkInformation">networkInformation</a> :: ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiNetworkInformation" title="Cardano.Wallet.Api.Types">ApiNetworkInformation</a></li><li><a href="#v:networkParameters">networkParameters</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiEpochNumber" title="Cardano.Wallet.Api.Types">ApiEpochNumber</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiNetworkParameters" title="Cardano.Wallet.Api.Types">ApiNetworkParameters</a></li></ul>}</li><li class="src short"><a href="#v:walletClient">walletClient</a> :: <span class="keyword">forall</span> t. (<a href="Cardano-Wallet-Api-Types.html#t:DecodeAddress" title="Cardano.Wallet.Api.Types">DecodeAddress</a> t, <a href="Cardano-Wallet-Api-Types.html#t:EncodeAddress" title="Cardano.Wallet.Api.Types">EncodeAddress</a> t) =&gt; <a href="Cardano-Wallet-Api-Client.html#t:WalletClient" title="Cardano.Wallet.Api.Client">WalletClient</a> t</li><li class="src short"><a href="#v:waitForSync">waitForSync</a> :: <a href="Cardano-Wallet-Api-Client.html#t:WalletClient" title="Cardano.Wallet.Api.Client">WalletClient</a> t -&gt; ClientM ()</li><li class="src short"><a href="#v:waitForRestore">waitForRestore</a> :: <a href="Cardano-Wallet-Api-Client.html#t:WalletClient" title="Cardano.Wallet.Api.Client">WalletClient</a> t -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a></li></ul></details></div><div id="interface"><a href="#g:1" id="g:1"><h1>API endpoints</h1></a><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:WalletClient" class="def">WalletClient</a> t <a href="src/Cardano.Wallet.Api.Client.html#WalletClient" class="link">Source</a> <a href="#t:WalletClient" class="selflink">#</a></p><div class="doc"><p>This data type encapsulates the client functions for all endpoints of the
+
 cardano-wallet V2 API.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:WalletClient" class="def">WalletClient</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:listAddresses" class="def">listAddresses</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:AddressState" title="Cardano.Wallet.Primitive.Types">AddressState</a>) -&gt; ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiAddress" title="Cardano.Wallet.Api.Types">ApiAddress</a> t]</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:deleteWallet" class="def">deleteWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; ClientM ()</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:getWallet" class="def">getWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:getWalletUtxoStatistics" class="def">getWalletUtxoStatistics</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiUtxoStatistics" title="Cardano.Wallet.Api.Types">ApiUtxoStatistics</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:listWallets" class="def">listWallets</a> :: ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a>]</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:postWallet" class="def">postWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:WalletPostData" title="Cardano.Wallet.Api.Types">WalletPostData</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:putWallet" class="def">putWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:WalletPutData" title="Cardano.Wallet.Api.Types">WalletPutData</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:putWalletPassphrase" class="def">putWalletPassphrase</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:WalletPutPassphraseData" title="Cardano.Wallet.Api.Types">WalletPutPassphraseData</a> -&gt; ClientM NoContent</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:forceResyncWallet" class="def">forceResyncWallet</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiNetworkTip" title="Cardano.Wallet.Api.Types">ApiNetworkTip</a> -&gt; ClientM NoContent</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:listTransactions" class="def">listTransactions</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:SortOrder" title="Cardano.Wallet.Primitive.Types">SortOrder</a>) -&gt; ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t]</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:postTransaction" class="def">postTransaction</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:PostTransactionData" title="Cardano.Wallet.Api.Types">PostTransactionData</a> t -&gt; ClientM (<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t)</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:postTransactionFee" class="def">postTransactionFee</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:PostTransactionFeeData" title="Cardano.Wallet.Api.Types">PostTransactionFeeData</a> t -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiFee" title="Cardano.Wallet.Api.Types">ApiFee</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:postExternalTransaction" class="def">postExternalTransaction</a> :: <a href="Cardano-Wallet-Api-Types.html#t:PostExternalTransactionData" title="Cardano.Wallet.Api.Types">PostExternalTransactionData</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiTxId" title="Cardano.Wallet.Api.Types">ApiTxId</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:deleteTransaction" class="def">deleteTransaction</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiTxId" title="Cardano.Wallet.Api.Types">ApiTxId</a> -&gt; ClientM NoContent</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:listPools" class="def">listPools</a> :: ClientM [<a href="Cardano-Wallet-Api-Types.html#t:ApiStakePool" title="Cardano.Wallet.Api.Types">ApiStakePool</a>]</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:joinStakePool" class="def">joinStakePool</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:PoolId" title="Cardano.Wallet.Primitive.Types">PoolId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiWalletPassphrase" title="Cardano.Wallet.Api.Types">ApiWalletPassphrase</a> -&gt; ClientM (<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t)</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:quitStakePool" class="def">quitStakePool</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiWalletPassphrase" title="Cardano.Wallet.Api.Types">ApiWalletPassphrase</a> -&gt; ClientM (<a href="Cardano-Wallet-Api-Types.html#t:ApiTransaction" title="Cardano.Wallet.Api.Types">ApiTransaction</a> t)</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:networkInformation" class="def">networkInformation</a> :: ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiNetworkInformation" title="Cardano.Wallet.Api.Types">ApiNetworkInformation</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:networkParameters" class="def">networkParameters</a> :: <a href="Cardano-Wallet-Api-Types.html#t:ApiEpochNumber" title="Cardano.Wallet.Api.Types">ApiEpochNumber</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiNetworkParameters" title="Cardano.Wallet.Api.Types">ApiNetworkParameters</a></dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div></div><div class="top"><p class="src"><a id="v:walletClient" class="def">walletClient</a> :: <span class="keyword">forall</span> t. (<a href="Cardano-Wallet-Api-Types.html#t:DecodeAddress" title="Cardano.Wallet.Api.Types">DecodeAddress</a> t, <a href="Cardano-Wallet-Api-Types.html#t:EncodeAddress" title="Cardano.Wallet.Api.Types">EncodeAddress</a> t) =&gt; <a href="Cardano-Wallet-Api-Client.html#t:WalletClient" title="Cardano.Wallet.Api.Client">WalletClient</a> t <a href="src/Cardano.Wallet.Api.Client.html#walletClient" class="link">Source</a> <a href="#v:walletClient" class="selflink">#</a></p><div class="doc"><p>Produces a <code><a href="Cardano-Wallet-Api-Client.html#t:WalletClient" title="Cardano.Wallet.Api.Client">WalletClient</a></code> for the cardano-wallet V2 API.</p><p>You should apply a
 <a href="Cardano-Wallet-Primitive-AddressDerivation-NetworkDiscriminant.html">Cardano.Wallet.Primitive.AddressDerivation.NetworkDiscriminant</a> type
 parameter to this to get a concrete client.</p></div></div><a href="#g:2" id="g:2"><h1>Helper functions</h1></a><div class="top"><p class="src"><a id="v:waitForSync" class="def">waitForSync</a> :: <a href="Cardano-Wallet-Api-Client.html#t:WalletClient" title="Cardano.Wallet.Api.Client">WalletClient</a> t -&gt; ClientM () <a href="src/Cardano.Wallet.Api.Client.html#waitForSync" class="link">Source</a> <a href="#v:waitForSync" class="selflink">#</a></p><div class="doc"><p>Poll the wallet server until it reports that it has synced with the
 network.</p></div></div><div class="top"><p class="src"><a id="v:waitForRestore" class="def">waitForRestore</a> :: <a href="Cardano-Wallet-Api-Client.html#t:WalletClient" title="Cardano.Wallet.Api.Client">WalletClient</a> t -&gt; <a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; ClientM <a href="Cardano-Wallet-Api-Types.html#t:ApiWallet" title="Cardano.Wallet.Api.Types">ApiWallet</a> <a href="src/Cardano.Wallet.Api.Client.html#waitForRestore" class="link">Source</a> <a href="#v:waitForRestore" class="selflink">#</a></p><div class="doc"><p>Poll a wallet by ID until it has restored.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.22.0</p></div></body></html>
\ No newline at end of file
</code></strong>( &quot;DELETE&quot;, &quot;/v2/wallets/2512a00e9653fe49a44a5886202e24d77eeb998f&quot; )
</pre><pre class="screen"><code class="prompt">&gt;&gt;&gt; </code><strong class="userinput"><code>Link.getWallet @('Byron 'Icarus) myWallet
</code></strong>( &quot;GET&quot;, &quot;/v2/byron-wallets/2512a00e9653fe49a44a5886202e24d77eeb998f&quot; )
-
</pre></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><a href="#v:deleteWallet">deleteWallet</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:getWallet">getWallet</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:listWallets">listWallets</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>). <a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style =&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:postWallet">postWallet</a> :: <a href="Cardano-Wallet-Api-Link.html#t:PostWallet" title="Cardano.Wallet.Api.Link">PostWallet</a> k =&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:putWallet">putWallet</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:putWalletPassphrase">putWalletPassphrase</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:getUTxOsStatistics">getUTxOsStatistics</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:getMigrationInfo">getMigrationInfo</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:migrateWallet">migrateWallet</a> :: <span class="keyword">forall</span> from to. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) from, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) to) =&gt; from -&gt; to -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:forceResyncWallet">forceResyncWallet</a> :: <span class="keyword">forall</span> style w. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w, <a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:listAddresses">listAddresses</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:listAddresses-39-">listAddresses'</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Primitive-Types.html#t:AddressState" title="Cardano.Wallet.Primitive.Types">AddressState</a> -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:selectCoins">selectCoins</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:createTransaction">createTransaction</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:listTransactions">listTransactions</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:listTransactions-39-">listTransactions'</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Primitive-Types.html#t:SortOrder" title="Cardano.Wallet.Primitive.Types">SortOrder</a> -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:getTransactionFee">getTransactionFee</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:deleteTransaction">deleteTransaction</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w t. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> (<a href="Cardano-Wallet-Primitive-Types.html#t:Hash" title="Cardano.Wallet.Primitive.Types">Hash</a> &quot;Tx&quot;)) t) =&gt; w -&gt; t -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:listStakePools">listStakePools</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:joinStakePool">joinStakePool</a> :: <span class="keyword">forall</span> s w. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:PoolId" title="Cardano.Wallet.Primitive.Types">PoolId</a>) s, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; s -&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:quitStakePool">quitStakePool</a> :: <span class="keyword">forall</span> s w. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:PoolId" title="Cardano.Wallet.Primitive.Types">PoolId</a>) s, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; s -&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:getDelegationFee">getDelegationFee</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:getNetworkInfo">getNetworkInfo</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:getNetworkParams">getNetworkParams</a> :: <span class="keyword">forall</span> e. HasType <a href="Cardano-Wallet-Api-Types.html#t:ApiEpochNumber" title="Cardano.Wallet.Api.Types">ApiEpochNumber</a> e =&gt; e -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:postExternalTransaction">postExternalTransaction</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><span class="keyword">class</span> <a href="#t:PostWallet">PostWallet</a> k</li><li class="src short"><span class="keyword">class</span> <a href="#t:Discriminate">Discriminate</a> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>)</li></ul></details></div><div id="interface"><a href="#g:1" id="g:1"><h1>Wallets</h1></a><div class="top"><p class="src"><a id="v:deleteWallet" class="def">deleteWallet</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#deleteWallet" class="link">Source</a> <a href="#v:deleteWallet" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:getWallet" class="def">getWallet</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#getWallet" class="link">Source</a> <a href="#v:getWallet" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:listWallets" class="def">listWallets</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>). <a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style =&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#listWallets" class="link">Source</a> <a href="#v:listWallets" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:postWallet" class="def">postWallet</a> :: <a href="Cardano-Wallet-Api-Link.html#t:PostWallet" title="Cardano.Wallet.Api.Link">PostWallet</a> k =&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#postWallet" class="link">Source</a> <a href="#v:postWallet" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:putWallet" class="def">putWallet</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#putWallet" class="link">Source</a> <a href="#v:putWallet" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:putWalletPassphrase" class="def">putWalletPassphrase</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#putWalletPassphrase" class="link">Source</a> <a href="#v:putWalletPassphrase" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:getUTxOsStatistics" class="def">getUTxOsStatistics</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#getUTxOsStatistics" class="link">Source</a> <a href="#v:getUTxOsStatistics" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:getMigrationInfo" class="def">getMigrationInfo</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#getMigrationInfo" class="link">Source</a> <a href="#v:getMigrationInfo" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:migrateWallet" class="def">migrateWallet</a> :: <span class="keyword">forall</span> from to. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) from, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) to) =&gt; from -&gt; to -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#migrateWallet" class="link">Source</a> <a href="#v:migrateWallet" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:forceResyncWallet" class="def">forceResyncWallet</a> :: <span class="keyword">forall</span> style w. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w, <a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#forceResyncWallet" class="link">Source</a> <a href="#v:forceResyncWallet" class="selflink">#</a></p></div><a href="#g:2" id="g:2"><h1>Addresses</h1></a><div class="top"><p class="src"><a id="v:listAddresses" class="def">listAddresses</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#listAddresses" class="link">Source</a> <a href="#v:listAddresses" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:listAddresses-39-" class="def">listAddresses'</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Primitive-Types.html#t:AddressState" title="Cardano.Wallet.Primitive.Types">AddressState</a> -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#listAddresses%27" class="link">Source</a> <a href="#v:listAddresses-39-" class="selflink">#</a></p></div><a href="#g:3" id="g:3"><h1>CoinSelections</h1></a><div class="top"><p class="src"><a id="v:selectCoins" class="def">selectCoins</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#selectCoins" class="link">Source</a> <a href="#v:selectCoins" class="selflink">#</a></p></div><a href="#g:4" id="g:4"><h1>Transactions</h1></a><div class="top"><p class="src"><a id="v:createTransaction" class="def">createTransaction</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#createTransaction" class="link">Source</a> <a href="#v:createTransaction" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:listTransactions" class="def">listTransactions</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#listTransactions" class="link">Source</a> <a href="#v:listTransactions" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:listTransactions-39-" class="def">listTransactions'</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Primitive-Types.html#t:SortOrder" title="Cardano.Wallet.Primitive.Types">SortOrder</a> -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#listTransactions%27" class="link">Source</a> <a href="#v:listTransactions-39-" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:getTransactionFee" class="def">getTransactionFee</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#getTransactionFee" class="link">Source</a> <a href="#v:getTransactionFee" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:deleteTransaction" class="def">deleteTransaction</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w t. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> (<a href="Cardano-Wallet-Primitive-Types.html#t:Hash" title="Cardano.Wallet.Primitive.Types">Hash</a> &quot;Tx&quot;)) t) =&gt; w -&gt; t -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#deleteTransaction" class="link">Source</a> <a href="#v:deleteTransaction" class="selflink">#</a></p></div><a href="#g:5" id="g:5"><h1>StakePools</h1></a><div class="top"><p class="src"><a id="v:listStakePools" class="def">listStakePools</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#listStakePools" class="link">Source</a> <a href="#v:listStakePools" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:joinStakePool" class="def">joinStakePool</a> :: <span class="keyword">forall</span> s w. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:PoolId" title="Cardano.Wallet.Primitive.Types">PoolId</a>) s, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; s -&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#joinStakePool" class="link">Source</a> <a href="#v:joinStakePool" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:quitStakePool" class="def">quitStakePool</a> :: <span class="keyword">forall</span> s w. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:PoolId" title="Cardano.Wallet.Primitive.Types">PoolId</a>) s, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; s -&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#quitStakePool" class="link">Source</a> <a href="#v:quitStakePool" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:getDelegationFee" class="def">getDelegationFee</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#getDelegationFee" class="link">Source</a> <a href="#v:getDelegationFee" class="selflink">#</a></p></div><a href="#g:6" id="g:6"><h1>Network</h1></a><div class="top"><p class="src"><a id="v:getNetworkInfo" class="def">getNetworkInfo</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#getNetworkInfo" class="link">Source</a> <a href="#v:getNetworkInfo" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:getNetworkParams" class="def">getNetworkParams</a> :: <span class="keyword">forall</span> e. HasType <a href="Cardano-Wallet-Api-Types.html#t:ApiEpochNumber" title="Cardano.Wallet.Api.Types">ApiEpochNumber</a> e =&gt; e -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#getNetworkParams" class="link">Source</a> <a href="#v:getNetworkParams" class="selflink">#</a></p></div><a href="#g:7" id="g:7"><h1>Proxy</h1></a><div class="top"><p class="src"><a id="v:postExternalTransaction" class="def">postExternalTransaction</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#postExternalTransaction" class="link">Source</a> <a href="#v:postExternalTransaction" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:PostWallet" class="def">PostWallet</a> k <a href="src/Cardano.Wallet.Api.Link.html#PostWallet" class="link">Source</a> <a href="#t:PostWallet" class="selflink">#</a></p><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Cardano-Wallet-Api-Link.html#v:postWallet" title="Cardano.Wallet.Api.Link">postWallet</a></p></div><div class="subs instances"><details id="i:PostWallet" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:PostWallet:PostWallet:1"></span> <a href="Cardano-Wallet-Api-Link.html#t:PostWallet" title="Cardano.Wallet.Api.Link">PostWallet</a> <a href="Cardano-Wallet-Api-Types.html#v:Random" title="Cardano.Wallet.Api.Types">Random</a></span> <a href="src/Cardano.Wallet.Api.Link.html#line-143" class="link">Source</a> <a href="#t:PostWallet" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:PostWallet:PostWallet:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Link.html">Cardano.Wallet.Api.Link</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:postWallet">postWallet</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#postWallet" class="link">Source</a> <a href="#v:postWallet" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:PostWallet:PostWallet:2"></span> <a href="Cardano-Wallet-Api-Link.html#t:PostWallet" title="Cardano.Wallet.Api.Link">PostWallet</a> <a href="Cardano-Wallet-Api-Types.html#v:Icarus" title="Cardano.Wallet.Api.Types">Icarus</a></span> <a href="src/Cardano.Wallet.Api.Link.html#line-146" class="link">Source</a> <a href="#t:PostWallet" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:PostWallet:PostWallet:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Link.html">Cardano.Wallet.Api.Link</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:postWallet">postWallet</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#postWallet" class="link">Source</a> <a href="#v:postWallet" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:PostWallet:PostWallet:3"></span> <a href="Cardano-Wallet-Api-Link.html#t:PostWallet" title="Cardano.Wallet.Api.Link">PostWallet</a> <a href="Cardano-Wallet-Api-Types.html#v:Trezor" title="Cardano.Wallet.Api.Types">Trezor</a></span> <a href="src/Cardano.Wallet.Api.Link.html#line-149" class="link">Source</a> <a href="#t:PostWallet" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:PostWallet:PostWallet:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Link.html">Cardano.Wallet.Api.Link</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:postWallet">postWallet</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#postWallet" class="link">Source</a> <a href="#v:postWallet" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:PostWallet:PostWallet:4"></span> <a href="Cardano-Wallet-Api-Link.html#t:PostWallet" title="Cardano.Wallet.Api.Link">PostWallet</a> <a href="Cardano-Wallet-Api-Types.html#v:Ledger" title="Cardano.Wallet.Api.Types">Ledger</a></span> <a href="src/Cardano.Wallet.Api.Link.html#line-152" class="link">Source</a> <a href="#t:PostWallet" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:PostWallet:PostWallet:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Link.html">Cardano.Wallet.Api.Link</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:postWallet">postWallet</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#postWallet" class="link">Source</a> <a href="#v:postWallet" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:PostWallet:PostWallet:5"></span> <a href="Cardano-Wallet-Api-Link.html#t:PostWallet" title="Cardano.Wallet.Api.Link">PostWallet</a> <a href="Cardano-Wallet-Api-Types.html#v:Shelley" title="Cardano.Wallet.Api.Types">Shelley</a></span> <a href="src/Cardano.Wallet.Api.Link.html#line-140" class="link">Source</a> <a href="#t:PostWallet" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:PostWallet:PostWallet:5"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Link.html">Cardano.Wallet.Api.Link</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:postWallet">postWallet</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#postWallet" class="link">Source</a> <a href="#v:postWallet" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:Discriminate" class="def">Discriminate</a> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) <a href="src/Cardano.Wallet.Api.Link.html#Discriminate" class="link">Source</a> <a href="#t:Discriminate" class="selflink">#</a></p><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src">discriminate</p></div><div class="subs instances"><details id="i:Discriminate" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:Discriminate:Discriminate:1"></span> <a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> <a href="Cardano-Wallet-Api-Types.html#v:Shelley" title="Cardano.Wallet.Api.Types">Shelley</a></span> <a href="src/Cardano.Wallet.Api.Link.html#line-498" class="link">Source</a> <a href="#t:Discriminate" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Discriminate:Discriminate:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Link.html">Cardano.Wallet.Api.Link</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:discriminate">discriminate</a> :: a -&gt; a -&gt; a</p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:Discriminate:Discriminate:2"></span> <a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> <a href="Cardano-Wallet-Api-Types.html#v:Byron" title="Cardano.Wallet.Api.Types">Byron</a></span> <a href="src/Cardano.Wallet.Api.Link.html#line-501" class="link">Source</a> <a href="#t:Discriminate" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Discriminate:Discriminate:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Link.html">Cardano.Wallet.Api.Link</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:discriminate">discriminate</a> :: a -&gt; a -&gt; a</p></div></details></td></tr></table></details></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.22.0</p></div></body></html>
\ No newline at end of file
+
</pre></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><a href="#v:deleteWallet">deleteWallet</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:getWallet">getWallet</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:listWallets">listWallets</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>). <a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style =&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:postWallet">postWallet</a> :: <a href="Cardano-Wallet-Api-Link.html#t:PostWallet" title="Cardano.Wallet.Api.Link">PostWallet</a> k =&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:putWallet">putWallet</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:putWalletPassphrase">putWalletPassphrase</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:getUTxOsStatistics">getUTxOsStatistics</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:getMigrationInfo">getMigrationInfo</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:migrateWallet">migrateWallet</a> :: <span class="keyword">forall</span> from to. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) from, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) to) =&gt; from -&gt; to -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:forceResyncWallet">forceResyncWallet</a> :: <span class="keyword">forall</span> style w. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w, <a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:listAddresses">listAddresses</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:listAddresses-39-">listAddresses'</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Primitive-Types.html#t:AddressState" title="Cardano.Wallet.Primitive.Types">AddressState</a> -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:selectCoins">selectCoins</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:createTransaction">createTransaction</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:listTransactions">listTransactions</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:listTransactions-39-">listTransactions'</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Primitive-Types.html#t:SortOrder" title="Cardano.Wallet.Primitive.Types">SortOrder</a> -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:getTransactionFee">getTransactionFee</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:deleteTransaction">deleteTransaction</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w t. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> (<a href="Cardano-Wallet-Primitive-Types.html#t:Hash" title="Cardano.Wallet.Primitive.Types">Hash</a> &quot;Tx&quot;)) t) =&gt; w -&gt; t -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:listStakePools">listStakePools</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:joinStakePool">joinStakePool</a> :: <span class="keyword">forall</span> s w. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:PoolId" title="Cardano.Wallet.Primitive.Types">PoolId</a>) s, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; s -&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:quitStakePool">quitStakePool</a> :: <span class="keyword">forall</span> s w. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:PoolId" title="Cardano.Wallet.Primitive.Types">PoolId</a>) s, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; <a href="Cardano-Wallet-Api-Types.html#t:BackwardCompatPlaceholder" title="Cardano.Wallet.Api.Types">BackwardCompatPlaceholder</a> s -&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:getDelegationFee">getDelegationFee</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:getNetworkInfo">getNetworkInfo</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:getNetworkParams">getNetworkParams</a> :: <span class="keyword">forall</span> e. HasType <a href="Cardano-Wallet-Api-Types.html#t:ApiEpochNumber" title="Cardano.Wallet.Api.Types">ApiEpochNumber</a> e =&gt; e -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><a href="#v:postExternalTransaction">postExternalTransaction</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>)</li><li class="src short"><span class="keyword">class</span> <a href="#t:PostWallet">PostWallet</a> k</li><li class="src short"><span class="keyword">class</span> <a href="#t:Discriminate">Discriminate</a> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>)</li></ul></details></div><div id="interface"><a href="#g:1" id="g:1"><h1>Wallets</h1></a><div class="top"><p class="src"><a id="v:deleteWallet" class="def">deleteWallet</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#deleteWallet" class="link">Source</a> <a href="#v:deleteWallet" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:getWallet" class="def">getWallet</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#getWallet" class="link">Source</a> <a href="#v:getWallet" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:listWallets" class="def">listWallets</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>). <a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style =&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#listWallets" class="link">Source</a> <a href="#v:listWallets" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:postWallet" class="def">postWallet</a> :: <a href="Cardano-Wallet-Api-Link.html#t:PostWallet" title="Cardano.Wallet.Api.Link">PostWallet</a> k =&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#postWallet" class="link">Source</a> <a href="#v:postWallet" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:putWallet" class="def">putWallet</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#putWallet" class="link">Source</a> <a href="#v:putWallet" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:putWalletPassphrase" class="def">putWalletPassphrase</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#putWalletPassphrase" class="link">Source</a> <a href="#v:putWalletPassphrase" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:getUTxOsStatistics" class="def">getUTxOsStatistics</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#getUTxOsStatistics" class="link">Source</a> <a href="#v:getUTxOsStatistics" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:getMigrationInfo" class="def">getMigrationInfo</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#getMigrationInfo" class="link">Source</a> <a href="#v:getMigrationInfo" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:migrateWallet" class="def">migrateWallet</a> :: <span class="keyword">forall</span> from to. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) from, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) to) =&gt; from -&gt; to -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#migrateWallet" class="link">Source</a> <a href="#v:migrateWallet" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:forceResyncWallet" class="def">forceResyncWallet</a> :: <span class="keyword">forall</span> style w. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w, <a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#forceResyncWallet" class="link">Source</a> <a href="#v:forceResyncWallet" class="selflink">#</a></p></div><a href="#g:2" id="g:2"><h1>Addresses</h1></a><div class="top"><p class="src"><a id="v:listAddresses" class="def">listAddresses</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#listAddresses" class="link">Source</a> <a href="#v:listAddresses" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:listAddresses-39-" class="def">listAddresses'</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Primitive-Types.html#t:AddressState" title="Cardano.Wallet.Primitive.Types">AddressState</a> -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#listAddresses%27" class="link">Source</a> <a href="#v:listAddresses-39-" class="selflink">#</a></p></div><a href="#g:3" id="g:3"><h1>CoinSelections</h1></a><div class="top"><p class="src"><a id="v:selectCoins" class="def">selectCoins</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#selectCoins" class="link">Source</a> <a href="#v:selectCoins" class="selflink">#</a></p></div><a href="#g:4" id="g:4"><h1>Transactions</h1></a><div class="top"><p class="src"><a id="v:createTransaction" class="def">createTransaction</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#createTransaction" class="link">Source</a> <a href="#v:createTransaction" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:listTransactions" class="def">listTransactions</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#listTransactions" class="link">Source</a> <a href="#v:listTransactions" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:listTransactions-39-" class="def">listTransactions'</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; w -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Api-Types.html#t:Iso8601Time" title="Cardano.Wallet.Api.Types">Iso8601Time</a> -&gt; <a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> <a href="Cardano-Wallet-Primitive-Types.html#t:SortOrder" title="Cardano.Wallet.Primitive.Types">SortOrder</a> -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#listTransactions%27" class="link">Source</a> <a href="#v:listTransactions-39-" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:getTransactionFee" class="def">getTransactionFee</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#getTransactionFee" class="link">Source</a> <a href="#v:getTransactionFee" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:deleteTransaction" class="def">deleteTransaction</a> :: <span class="keyword">forall</span> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) w t. (<a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> style, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> (<a href="Cardano-Wallet-Primitive-Types.html#t:Hash" title="Cardano.Wallet.Primitive.Types">Hash</a> &quot;Tx&quot;)) t) =&gt; w -&gt; t -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#deleteTransaction" class="link">Source</a> <a href="#v:deleteTransaction" class="selflink">#</a></p></div><a href="#g:5" id="g:5"><h1>StakePools</h1></a><div class="top"><p class="src"><a id="v:listStakePools" class="def">listStakePools</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#listStakePools" class="link">Source</a> <a href="#v:listStakePools" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:joinStakePool" class="def">joinStakePool</a> :: <span class="keyword">forall</span> s w. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:PoolId" title="Cardano.Wallet.Primitive.Types">PoolId</a>) s, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; s -&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#joinStakePool" class="link">Source</a> <a href="#v:joinStakePool" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:quitStakePool" class="def">quitStakePool</a> :: <span class="keyword">forall</span> s w. (HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:PoolId" title="Cardano.Wallet.Primitive.Types">PoolId</a>) s, HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w) =&gt; <a href="Cardano-Wallet-Api-Types.html#t:BackwardCompatPlaceholder" title="Cardano.Wallet.Api.Types">BackwardCompatPlaceholder</a> s -&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#quitStakePool" class="link">Source</a> <a href="#v:quitStakePool" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:getDelegationFee" class="def">getDelegationFee</a> :: <span class="keyword">forall</span> w. HasType (<a href="Cardano-Wallet-Api-Types.html#t:ApiT" title="Cardano.Wallet.Api.Types">ApiT</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>) w =&gt; w -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#getDelegationFee" class="link">Source</a> <a href="#v:getDelegationFee" class="selflink">#</a></p></div><a href="#g:6" id="g:6"><h1>Network</h1></a><div class="top"><p class="src"><a id="v:getNetworkInfo" class="def">getNetworkInfo</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#getNetworkInfo" class="link">Source</a> <a href="#v:getNetworkInfo" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:getNetworkParams" class="def">getNetworkParams</a> :: <span class="keyword">forall</span> e. HasType <a href="Cardano-Wallet-Api-Types.html#t:ApiEpochNumber" title="Cardano.Wallet.Api.Types">ApiEpochNumber</a> e =&gt; e -&gt; (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#getNetworkParams" class="link">Source</a> <a href="#v:getNetworkParams" class="selflink">#</a></p></div><a href="#g:7" id="g:7"><h1>Proxy</h1></a><div class="top"><p class="src"><a id="v:postExternalTransaction" class="def">postExternalTransaction</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#postExternalTransaction" class="link">Source</a> <a href="#v:postExternalTransaction" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:PostWallet" class="def">PostWallet</a> k <a href="src/Cardano.Wallet.Api.Link.html#PostWallet" class="link">Source</a> <a href="#t:PostWallet" class="selflink">#</a></p><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Cardano-Wallet-Api-Link.html#v:postWallet" title="Cardano.Wallet.Api.Link">postWallet</a></p></div><div class="subs instances"><details id="i:PostWallet" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:PostWallet:PostWallet:1"></span> <a href="Cardano-Wallet-Api-Link.html#t:PostWallet" title="Cardano.Wallet.Api.Link">PostWallet</a> <a href="Cardano-Wallet-Api-Types.html#v:Random" title="Cardano.Wallet.Api.Types">Random</a></span> <a href="src/Cardano.Wallet.Api.Link.html#line-143" class="link">Source</a> <a href="#t:PostWallet" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:PostWallet:PostWallet:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Link.html">Cardano.Wallet.Api.Link</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:postWallet">postWallet</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#postWallet" class="link">Source</a> <a href="#v:postWallet" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:PostWallet:PostWallet:2"></span> <a href="Cardano-Wallet-Api-Link.html#t:PostWallet" title="Cardano.Wallet.Api.Link">PostWallet</a> <a href="Cardano-Wallet-Api-Types.html#v:Icarus" title="Cardano.Wallet.Api.Types">Icarus</a></span> <a href="src/Cardano.Wallet.Api.Link.html#line-146" class="link">Source</a> <a href="#t:PostWallet" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:PostWallet:PostWallet:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Link.html">Cardano.Wallet.Api.Link</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:postWallet">postWallet</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#postWallet" class="link">Source</a> <a href="#v:postWallet" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:PostWallet:PostWallet:3"></span> <a href="Cardano-Wallet-Api-Link.html#t:PostWallet" title="Cardano.Wallet.Api.Link">PostWallet</a> <a href="Cardano-Wallet-Api-Types.html#v:Trezor" title="Cardano.Wallet.Api.Types">Trezor</a></span> <a href="src/Cardano.Wallet.Api.Link.html#line-149" class="link">Source</a> <a href="#t:PostWallet" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:PostWallet:PostWallet:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Link.html">Cardano.Wallet.Api.Link</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:postWallet">postWallet</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#postWallet" class="link">Source</a> <a href="#v:postWallet" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:PostWallet:PostWallet:4"></span> <a href="Cardano-Wallet-Api-Link.html#t:PostWallet" title="Cardano.Wallet.Api.Link">PostWallet</a> <a href="Cardano-Wallet-Api-Types.html#v:Ledger" title="Cardano.Wallet.Api.Types">Ledger</a></span> <a href="src/Cardano.Wallet.Api.Link.html#line-152" class="link">Source</a> <a href="#t:PostWallet" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:PostWallet:PostWallet:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Link.html">Cardano.Wallet.Api.Link</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:postWallet">postWallet</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#postWallet" class="link">Source</a> <a href="#v:postWallet" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:PostWallet:PostWallet:5"></span> <a href="Cardano-Wallet-Api-Link.html#t:PostWallet" title="Cardano.Wallet.Api.Link">PostWallet</a> <a href="Cardano-Wallet-Api-Types.html#v:Shelley" title="Cardano.Wallet.Api.Types">Shelley</a></span> <a href="src/Cardano.Wallet.Api.Link.html#line-140" class="link">Source</a> <a href="#t:PostWallet" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:PostWallet:PostWallet:5"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Link.html">Cardano.Wallet.Api.Link</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:postWallet">postWallet</a> :: (Method, <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a>) <a href="src/Cardano.Wallet.Api.Link.html#postWallet" class="link">Source</a> <a href="#v:postWallet" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:Discriminate" class="def">Discriminate</a> (style :: <a href="Cardano-Wallet-Api-Types.html#t:WalletStyle" title="Cardano.Wallet.Api.Types">WalletStyle</a>) <a href="src/Cardano.Wallet.Api.Link.html#Discriminate" class="link">Source</a> <a href="#t:Discriminate" class="selflink">#</a></p><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src">discriminate</p></div><div class="subs instances"><details id="i:Discriminate" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:Discriminate:Discriminate:1"></span> <a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> <a href="Cardano-Wallet-Api-Types.html#v:Shelley" title="Cardano.Wallet.Api.Types">Shelley</a></span> <a href="src/Cardano.Wallet.Api.Link.html#line-498" class="link">Source</a> <a href="#t:Discriminate" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Discriminate:Discriminate:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Link.html">Cardano.Wallet.Api.Link</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:discriminate">discriminate</a> :: a -&gt; a -&gt; a</p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:Discriminate:Discriminate:2"></span> <a href="Cardano-Wallet-Api-Link.html#t:Discriminate" title="Cardano.Wallet.Api.Link">Discriminate</a> <a href="Cardano-Wallet-Api-Types.html#v:Byron" title="Cardano.Wallet.Api.Types">Byron</a></span> <a href="src/Cardano.Wallet.Api.Link.html#line-501" class="link">Source</a> <a href="#t:Discriminate" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Discriminate:Discriminate:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Link.html">Cardano.Wallet.Api.Link</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:discriminate">discriminate</a> :: a -&gt; a -&gt; a</p></div></details></td></tr></table></details></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.22.0</p></div></body></html>
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Cardano.Wallet.Api.Server</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Cardano.Wallet.Api.Server.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">cardano-wallet-core-2020.1.27: The Wallet Backend for a Cardano node.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>&#169; 2018-2020 IOHK</td></tr><tr><th>License</th><td>Apache-2.0</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Cardano.Wallet.Api.Server</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>API handlers and server using the underlying wallet layer to provide
-
 endpoints reachable through HTTP.</p></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><span class="keyword">data</span> <a href="#t:Listen">Listen</a><ul class="subs"><li>= <a href="#v:ListenOnPort">ListenOnPort</a> Port</li><li>| <a href="#v:ListenOnRandomPort">ListenOnRandomPort</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:ListenError">ListenError</a><ul class="subs"><li>= <a href="#v:ListenErrorAddressAlreadyInUse">ListenErrorAddressAlreadyInUse</a> (<a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> Port)</li><li>| <a href="#v:ListenErrorOperationNotPermitted">ListenErrorOperationNotPermitted</a></li><li>| <a href="#v:ListenErrorHostDoesNotExist">ListenErrorHostDoesNotExist</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></li><li>| <a href="#v:ListenErrorInvalidAddress">ListenErrorInvalidAddress</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:HostPreference">HostPreference</a></li><li class="src short"><a href="#v:start">start</a> :: Settings -&gt; Tracer <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="Network-Wai-Middleware-Logging.html#t:ApiLog" title="Network.Wai.Middleware.Logging">ApiLog</a> -&gt; Socket -&gt; Application -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ()</li><li class="src short"><a href="#v:serve">serve</a> :: HasServer api ([] :: [<a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a>]) =&gt; <a href="../base-4.12.0.0/Data-Proxy.html#t:Proxy" title="Data.Proxy">Proxy</a> api -&gt; Server api -&gt; Application</li><li class="src short"><a href="#v:server">server</a> :: <span class="keyword">forall</span> t n byron icarus shelley. (byron ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Random.html#t:RndState" title="Cardano.Wallet.Primitive.AddressDiscovery.Random">RndState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Byron.html#t:ByronKey" title="Cardano.Wallet.Primitive.AddressDerivation.Byron">ByronKey</a>, icarus ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Sequential.html#t:SeqState" title="Cardano.Wallet.Primitive.AddressDiscovery.Sequential">SeqState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a> <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a>, shelley ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Sequential.html#t:SeqState" title="Cardano.Wallet.Primitive.AddressDiscovery.Sequential">SeqState</a> n <a href="Cardano-Wallet-Primitive-AddressDerivation-Shelley.html#t:ShelleyKey" title="Cardano.Wallet.Primitive.AddressDerivation.Shelley">ShelleyKey</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Shelley.html#t:ShelleyKey" title="Cardano.Wallet.Primitive.AddressDerivation.Shelley">ShelleyKey</a>, <a href="Cardano-Wallet-Primitive-AddressDerivation.html#t:DelegationAddress" title="Cardano.Wallet.Primitive.AddressDerivation">DelegationAddress</a> n <a href="Cardano-Wallet-Primitive-AddressDerivation-Shelley.html#t:ShelleyKey" title="Cardano.Wallet.Primitive.AddressDerivation.Shelley">ShelleyKey</a>, Buildable (<a href="Cardano-Wallet-Transaction.html#t:ErrValidateSelection" title="Cardano.Wallet.Transaction">ErrValidateSelection</a> t)) =&gt; byron -&gt; icarus -&gt; shelley -&gt; <a href="Cardano-Pool-Metrics.html#t:StakePoolLayer" title="Cardano.Pool.Metrics">StakePoolLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> -&gt; Server (<a href="Cardano-Wallet-Api.html#t:Api" title="Cardano.Wallet.Api">Api</a> n)</li><li class="src short"><a href="#v:byronServer">byronServer</a> :: <span class="keyword">forall</span> t n. <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Random.html#t:RndState" title="Cardano.Wallet.Primitive.AddressDiscovery.Random">RndState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Byron.html#t:ByronKey" title="Cardano.Wallet.Primitive.AddressDerivation.Byron">ByronKey</a> -&gt; <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Sequential.html#t:SeqState" title="Cardano.Wallet.Primitive.AddressDiscovery.Sequential">SeqState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a> <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a> -&gt; Server (<a href="Cardano-Wallet-Api.html#t:Api" title="Cardano.Wallet.Api">Api</a> n)</li><li class="src short"><a href="#v:newApiLayer">newApiLayer</a> :: <span class="keyword">forall</span> ctx s t k. ctx ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k =&gt; Tracer <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> <a href="Cardano-Wallet.html#t:WalletLog" title="Cardano.Wallet">WalletLog</a>) -&gt; (<a href="Cardano-Wallet-Primitive-Types.html#t:Block" title="Cardano.Wallet.Primitive.Types">Block</a>, <a href="Cardano-Wallet-Primitive-Types.html#t:BlockchainParameters" title="Cardano.Wallet.Primitive.Types">BlockchainParameters</a>, <a href="Cardano-Wallet-Primitive-Types.html#t:SyncTolerance" title="Cardano.Wallet.Primitive.Types">SyncTolerance</a>) -&gt; <a href="Cardano-Wallet-Network.html#t:NetworkLayer" title="Cardano.Wallet.Network">NetworkLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> t <a href="Cardano-Wallet-Primitive-Types.html#t:Block" title="Cardano.Wallet.Primitive.Types">Block</a> -&gt; <a href="Cardano-Wallet-Transaction.html#t:TransactionLayer" title="Cardano.Wallet.Transaction">TransactionLayer</a> t k -&gt; <a href="Cardano-Wallet-DB.html#t:DBFactory" title="Cardano.Wallet.DB">DBFactory</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> s k -&gt; [<a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>] -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ctx</li><li class="src short"><a href="#v:withListeningSocket">withListeningSocket</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a> -&gt; (<a href="../base-4.12.0.0/Data-Either.html#t:Either" title="Data.Either">Either</a> <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> (Port, Socket) -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> a) -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> a</li></ul></details></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Listen" class="def">Listen</a> <a href="src/Cardano.Wallet.Api.Server.html#Listen" class="link">Source</a> <a href="#t:Listen" class="selflink">#</a></p><div class="doc"><p>How the server should listen for incoming requests.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ListenOnPort" class="def">ListenOnPort</a> Port</td><td class="doc"><p>Listen on given TCP port</p></td></tr><tr><td class="src"><a id="v:ListenOnRandomPort" class="def">ListenOnRandomPort</a></td><td class="doc"><p>Listen on an unused TCP port, selected at random</p></td></tr></table></div><div class="subs instances"><details id="i:Listen" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Listen:Eq:1"></span> <a href="../base-4.12.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a></span> <a href="src/Cardano.Wallet.Api.Server.html#line-332" class="link">Source</a> <a href="#t:Listen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Listen:Eq:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Server.html">Cardano.Wallet.Api.Server</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Listen:Show:2"></span> <a href="../base-4.12.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a></span> <a href="src/Cardano.Wallet.Api.Server.html#line-332" class="link">Source</a> <a href="#t:Listen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Listen:Show:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Server.html">Cardano.Wallet.Api.Server</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a> -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a> -&gt; <a href="../base-4.12.0.0/Data-String.html#t:String" title="Data.String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a>] -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ListenError" class="def">ListenError</a> <a href="src/Cardano.Wallet.Api.Server.html#ListenError" class="link">Source</a> <a href="#t:ListenError" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ListenErrorAddressAlreadyInUse" class="def">ListenErrorAddressAlreadyInUse</a> (<a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> Port)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:ListenErrorOperationNotPermitted" class="def">ListenErrorOperationNotPermitted</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:ListenErrorHostDoesNotExist" class="def">ListenErrorHostDoesNotExist</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:ListenErrorInvalidAddress" class="def">ListenErrorInvalidAddress</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><details id="i:ListenError" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:ListenError:Eq:1"></span> <a href="../base-4.12.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a></span> <a href="src/Cardano.Wallet.Api.Server.html#line-381" class="link">Source</a> <a href="#t:ListenError" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:ListenError:Eq:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Server.html">Cardano.Wallet.Api.Server</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:ListenError:Show:2"></span> <a href="../base-4.12.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a></span> <a href="src/Cardano.Wallet.Api.Server.html#line-381" class="link">Source</a> <a href="#t:ListenError" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:ListenError:Show:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Server.html">Cardano.Wallet.Api.Server</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> -&gt; <a href="../base-4.12.0.0/Data-String.html#t:String" title="Data.String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a>] -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:HostPreference" class="def">HostPreference</a> <a href="#t:HostPreference" class="selflink">#</a></p><div class="subs instances"><details id="i:HostPreference" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:HostPreference:Eq:1"></span> <a href="../base-4.12.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:HostPreference:Eq:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Streaming-Network-Internal.html">Data.Streaming.Network.Internal</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:HostPreference:Ord:2"></span> <a href="../base-4.12.0.0/Data-Ord.html#t:Ord" title="Data.Ord">Ord</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:HostPreference:Ord:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Streaming-Network-Internal.html">Data.Streaming.Network.Internal</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-Ord.html#t:Ordering" title="Data.Ord">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(&lt;)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(&lt;=)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(&gt;)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(&gt;=)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> <a href="#v:min" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:HostPreference:Read:3"></span> <a href="../base-4.12.0.0/Text-Read.html#t:Read" title="Text.Read">Read</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:HostPreference:Read:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Streaming-Network-Internal.html">Data.Streaming.Network.Internal</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base-4.12.0.0/Text-ParserCombinators-ReadP.html#t:ReadS" title="Text.ParserCombinators.ReadP">ReadS</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="../base-4.12.0.0/Text-ParserCombinators-ReadP.html#t:ReadS" title="Text.ParserCombinators.ReadP">ReadS</a> [<a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a>] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="../base-4.12.0.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec" title="Text.ParserCombinators.ReadPrec">ReadPrec</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="../base-4.12.0.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec" title="Text.ParserCombinators.ReadPrec">ReadPrec</a> [<a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a>] <a href="#v:readListPrec" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:HostPreference:Show:4"></span> <a href="../base-4.12.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:HostPreference:Show:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Streaming-Network-Internal.html">Data.Streaming.Network.Internal</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-String.html#t:String" title="Data.String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a>] -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:HostPreference:IsString:5"></span> <a href="../base-4.12.0.0/Data-String.html#t:IsString" title="Data.String">IsString</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:HostPreference:IsString:5"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Streaming-Network-Internal.html">Data.Streaming.Network.Internal</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromString">fromString</a> :: <a href="../base-4.12.0.0/Data-String.html#t:String" title="Data.String">String</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> <a href="#v:fromString" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><a id="v:start" class="def">start</a> :: Settings -&gt; Tracer <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="Network-Wai-Middleware-Logging.html#t:ApiLog" title="Network.Wai.Middleware.Logging">ApiLog</a> -&gt; Socket -&gt; Application -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> () <a href="src/Cardano.Wallet.Api.Server.html#start" class="link">Source</a> <a href="#v:start" class="selflink">#</a></p><div class="doc"><p>Start the application server, using the given settings and a bound socket.</p></div></div><div class="top"><p class="src"><a id="v:serve" class="def">serve</a> :: HasServer api ([] :: [<a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a>]) =&gt; <a href="../base-4.12.0.0/Data-Proxy.html#t:Proxy" title="Data.Proxy">Proxy</a> api -&gt; Server api -&gt; Application <a href="#v:serve" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:server" class="def">server</a> :: <span class="keyword">forall</span> t n byron icarus shelley. (byron ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Random.html#t:RndState" title="Cardano.Wallet.Primitive.AddressDiscovery.Random">RndState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Byron.html#t:ByronKey" title="Cardano.Wallet.Primitive.AddressDerivation.Byron">ByronKey</a>, icarus ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Sequential.html#t:SeqState" title="Cardano.Wallet.Primitive.AddressDiscovery.Sequential">SeqState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a> <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a>, shelley ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Sequential.html#t:SeqState" title="Cardano.Wallet.Primitive.AddressDiscovery.Sequential">SeqState</a> n <a href="Cardano-Wallet-Primitive-AddressDerivation-Shelley.html#t:ShelleyKey" title="Cardano.Wallet.Primitive.AddressDerivation.Shelley">ShelleyKey</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Shelley.html#t:ShelleyKey" title="Cardano.Wallet.Primitive.AddressDerivation.Shelley">ShelleyKey</a>, <a href="Cardano-Wallet-Primitive-AddressDerivation.html#t:DelegationAddress" title="Cardano.Wallet.Primitive.AddressDerivation">DelegationAddress</a> n <a href="Cardano-Wallet-Primitive-AddressDerivation-Shelley.html#t:ShelleyKey" title="Cardano.Wallet.Primitive.AddressDerivation.Shelley">ShelleyKey</a>, Buildable (<a href="Cardano-Wallet-Transaction.html#t:ErrValidateSelection" title="Cardano.Wallet.Transaction">ErrValidateSelection</a> t)) =&gt; byron -&gt; icarus -&gt; shelley -&gt; <a href="Cardano-Pool-Metrics.html#t:StakePoolLayer" title="Cardano.Pool.Metrics">StakePoolLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> -&gt; Server (<a href="Cardano-Wallet-Api.html#t:Api" title="Cardano.Wallet.Api">Api</a> n) <a href="src/Cardano.Wallet.Api.Server.html#server" class="link">Source</a> <a href="#v:server" class="selflink">#</a></p><div class="doc"><p>A Servant server for our wallet API</p></div></div><div class="top"><p class="src"><a id="v:byronServer" class="def">byronServer</a> :: <span class="keyword">forall</span> t n. <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Random.html#t:RndState" title="Cardano.Wallet.Primitive.AddressDiscovery.Random">RndState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Byron.html#t:ByronKey" title="Cardano.Wallet.Primitive.AddressDerivation.Byron">ByronKey</a> -&gt; <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Sequential.html#t:SeqState" title="Cardano.Wallet.Primitive.AddressDiscovery.Sequential">SeqState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a> <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a> -&gt; Server (<a href="Cardano-Wallet-Api.html#t:Api" title="Cardano.Wallet.Api">Api</a> n) <a href="src/Cardano.Wallet.Api.Server.html#byronServer" class="link">Source</a> <a href="#v:byronServer" class="selflink">#</a></p><div class="doc"><p>A diminished servant server to serve Byron wallets only.</p></div></div><div class="top"><p class="src"><a id="v:newApiLayer" class="def">newApiLayer</a> :: <span class="keyword">forall</span> ctx s t k. ctx ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k =&gt; Tracer <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> <a href="Cardano-Wallet.html#t:WalletLog" title="Cardano.Wallet">WalletLog</a>) -&gt; (<a href="Cardano-Wallet-Primitive-Types.html#t:Block" title="Cardano.Wallet.Primitive.Types">Block</a>, <a href="Cardano-Wallet-Primitive-Types.html#t:BlockchainParameters" title="Cardano.Wallet.Primitive.Types">BlockchainParameters</a>, <a href="Cardano-Wallet-Primitive-Types.html#t:SyncTolerance" title="Cardano.Wallet.Primitive.Types">SyncTolerance</a>) -&gt; <a href="Cardano-Wallet-Network.html#t:NetworkLayer" title="Cardano.Wallet.Network">NetworkLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> t <a href="Cardano-Wallet-Primitive-Types.html#t:Block" title="Cardano.Wallet.Primitive.Types">Block</a> -&gt; <a href="Cardano-Wallet-Transaction.html#t:TransactionLayer" title="Cardano.Wallet.Transaction">TransactionLayer</a> t k -&gt; <a href="Cardano-Wallet-DB.html#t:DBFactory" title="Cardano.Wallet.DB">DBFactory</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> s k -&gt; [<a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>] -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ctx <a href="src/Cardano.Wallet.Api.Server.html#newApiLayer" class="link">Source</a> <a href="#v:newApiLayer" class="selflink">#</a></p><div class="doc"><p>Create a new instance of the wallet layer.</p></div></div><div class="top"><p class="src"><a id="v:withListeningSocket" class="def">withListeningSocket</a> <a href="src/Cardano.Wallet.Api.Server.html#withListeningSocket" class="link">Source</a> <a href="#v:withListeningSocket" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></td><td class="doc"><p>Which host to bind.</p></td></tr><tr><td class="src">-&gt; <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a></td><td class="doc"><p>Whether to listen on a given port, or random port.</p></td></tr><tr><td class="src">-&gt; (<a href="../base-4.12.0.0/Data-Either.html#t:Either" title="Data.Either">Either</a> <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> (Port, Socket) -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> a)</td><td class="doc"><p>Action to run with listening socket.</p></td></tr><tr><td class="src">-&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> a</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Run an action with a TCP socket bound to a port specified by the <code><a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a></code>
+
 endpoints reachable through HTTP.</p></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><span class="keyword">data</span> <a href="#t:Listen">Listen</a><ul class="subs"><li>= <a href="#v:ListenOnPort">ListenOnPort</a> Port</li><li>| <a href="#v:ListenOnRandomPort">ListenOnRandomPort</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:ListenError">ListenError</a><ul class="subs"><li>= <a href="#v:ListenErrorAddressAlreadyInUse">ListenErrorAddressAlreadyInUse</a> (<a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> Port)</li><li>| <a href="#v:ListenErrorOperationNotPermitted">ListenErrorOperationNotPermitted</a></li><li>| <a href="#v:ListenErrorHostDoesNotExist">ListenErrorHostDoesNotExist</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></li><li>| <a href="#v:ListenErrorInvalidAddress">ListenErrorInvalidAddress</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:HostPreference">HostPreference</a></li><li class="src short"><a href="#v:start">start</a> :: Settings -&gt; Tracer <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="Network-Wai-Middleware-Logging.html#t:ApiLog" title="Network.Wai.Middleware.Logging">ApiLog</a> -&gt; Socket -&gt; Application -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ()</li><li class="src short"><a href="#v:serve">serve</a> :: HasServer api ([] :: [<a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a>]) =&gt; <a href="../base-4.12.0.0/Data-Proxy.html#t:Proxy" title="Data.Proxy">Proxy</a> api -&gt; Server api -&gt; Application</li><li class="src short"><a href="#v:server">server</a> :: <span class="keyword">forall</span> t n byron icarus shelley. (byron ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Random.html#t:RndState" title="Cardano.Wallet.Primitive.AddressDiscovery.Random">RndState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Byron.html#t:ByronKey" title="Cardano.Wallet.Primitive.AddressDerivation.Byron">ByronKey</a>, icarus ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Sequential.html#t:SeqState" title="Cardano.Wallet.Primitive.AddressDiscovery.Sequential">SeqState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a> <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a>, shelley ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Sequential.html#t:SeqState" title="Cardano.Wallet.Primitive.AddressDiscovery.Sequential">SeqState</a> n <a href="Cardano-Wallet-Primitive-AddressDerivation-Shelley.html#t:ShelleyKey" title="Cardano.Wallet.Primitive.AddressDerivation.Shelley">ShelleyKey</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Shelley.html#t:ShelleyKey" title="Cardano.Wallet.Primitive.AddressDerivation.Shelley">ShelleyKey</a>, <a href="Cardano-Wallet-Primitive-AddressDerivation.html#t:DelegationAddress" title="Cardano.Wallet.Primitive.AddressDerivation">DelegationAddress</a> n <a href="Cardano-Wallet-Primitive-AddressDerivation-Shelley.html#t:ShelleyKey" title="Cardano.Wallet.Primitive.AddressDerivation.Shelley">ShelleyKey</a>, Buildable (<a href="Cardano-Wallet-Transaction.html#t:ErrValidateSelection" title="Cardano.Wallet.Transaction">ErrValidateSelection</a> t)) =&gt; byron -&gt; icarus -&gt; shelley -&gt; <a href="Cardano-Pool-Metrics.html#t:StakePoolLayer" title="Cardano.Pool.Metrics">StakePoolLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> -&gt; Server (<a href="Cardano-Wallet-Api.html#t:Api" title="Cardano.Wallet.Api">Api</a> n)</li><li class="src short"><a href="#v:byronServer">byronServer</a> :: <span class="keyword">forall</span> t n. <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Random.html#t:RndState" title="Cardano.Wallet.Primitive.AddressDiscovery.Random">RndState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Byron.html#t:ByronKey" title="Cardano.Wallet.Primitive.AddressDerivation.Byron">ByronKey</a> -&gt; <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Sequential.html#t:SeqState" title="Cardano.Wallet.Primitive.AddressDiscovery.Sequential">SeqState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a> <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a> -&gt; Server (<a href="Cardano-Wallet-Api.html#t:Api" title="Cardano.Wallet.Api">Api</a> n)</li><li class="src short"><a href="#v:newApiLayer">newApiLayer</a> :: <span class="keyword">forall</span> ctx s t k. ctx ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k =&gt; Tracer <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> <a href="Cardano-Wallet.html#t:WalletLog" title="Cardano.Wallet">WalletLog</a>) -&gt; (<a href="Cardano-Wallet-Primitive-Types.html#t:Block" title="Cardano.Wallet.Primitive.Types">Block</a>, <a href="Cardano-Wallet-Primitive-Types.html#t:BlockchainParameters" title="Cardano.Wallet.Primitive.Types">BlockchainParameters</a>, <a href="Cardano-Wallet-Primitive-Types.html#t:SyncTolerance" title="Cardano.Wallet.Primitive.Types">SyncTolerance</a>) -&gt; <a href="Cardano-Wallet-Network.html#t:NetworkLayer" title="Cardano.Wallet.Network">NetworkLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> t <a href="Cardano-Wallet-Primitive-Types.html#t:Block" title="Cardano.Wallet.Primitive.Types">Block</a> -&gt; <a href="Cardano-Wallet-Transaction.html#t:TransactionLayer" title="Cardano.Wallet.Transaction">TransactionLayer</a> t k -&gt; <a href="Cardano-Wallet-DB.html#t:DBFactory" title="Cardano.Wallet.DB">DBFactory</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> s k -&gt; [<a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>] -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ctx</li><li class="src short"><a href="#v:withListeningSocket">withListeningSocket</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a> -&gt; (<a href="../base-4.12.0.0/Data-Either.html#t:Either" title="Data.Either">Either</a> <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> (Port, Socket) -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> a) -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> a</li></ul></details></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Listen" class="def">Listen</a> <a href="src/Cardano.Wallet.Api.Server.html#Listen" class="link">Source</a> <a href="#t:Listen" class="selflink">#</a></p><div class="doc"><p>How the server should listen for incoming requests.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ListenOnPort" class="def">ListenOnPort</a> Port</td><td class="doc"><p>Listen on given TCP port</p></td></tr><tr><td class="src"><a id="v:ListenOnRandomPort" class="def">ListenOnRandomPort</a></td><td class="doc"><p>Listen on an unused TCP port, selected at random</p></td></tr></table></div><div class="subs instances"><details id="i:Listen" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Listen:Eq:1"></span> <a href="../base-4.12.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a></span> <a href="src/Cardano.Wallet.Api.Server.html#line-333" class="link">Source</a> <a href="#t:Listen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Listen:Eq:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Server.html">Cardano.Wallet.Api.Server</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Listen:Show:2"></span> <a href="../base-4.12.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a></span> <a href="src/Cardano.Wallet.Api.Server.html#line-333" class="link">Source</a> <a href="#t:Listen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Listen:Show:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Server.html">Cardano.Wallet.Api.Server</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a> -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a> -&gt; <a href="../base-4.12.0.0/Data-String.html#t:String" title="Data.String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a>] -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ListenError" class="def">ListenError</a> <a href="src/Cardano.Wallet.Api.Server.html#ListenError" class="link">Source</a> <a href="#t:ListenError" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ListenErrorAddressAlreadyInUse" class="def">ListenErrorAddressAlreadyInUse</a> (<a href="../base-4.12.0.0/GHC-Maybe.html#t:Maybe" title="GHC.Maybe">Maybe</a> Port)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:ListenErrorOperationNotPermitted" class="def">ListenErrorOperationNotPermitted</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:ListenErrorHostDoesNotExist" class="def">ListenErrorHostDoesNotExist</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:ListenErrorInvalidAddress" class="def">ListenErrorInvalidAddress</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><details id="i:ListenError" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:ListenError:Eq:1"></span> <a href="../base-4.12.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a></span> <a href="src/Cardano.Wallet.Api.Server.html#line-382" class="link">Source</a> <a href="#t:ListenError" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:ListenError:Eq:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Server.html">Cardano.Wallet.Api.Server</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:ListenError:Show:2"></span> <a href="../base-4.12.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a></span> <a href="src/Cardano.Wallet.Api.Server.html#line-382" class="link">Source</a> <a href="#t:ListenError" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:ListenError:Show:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api-Server.html">Cardano.Wallet.Api.Server</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> -&gt; <a href="../base-4.12.0.0/Data-String.html#t:String" title="Data.String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a>] -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:HostPreference" class="def">HostPreference</a> <a href="#t:HostPreference" class="selflink">#</a></p><div class="subs instances"><details id="i:HostPreference" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:HostPreference:Eq:1"></span> <a href="../base-4.12.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:HostPreference:Eq:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Streaming-Network-Internal.html">Data.Streaming.Network.Internal</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:HostPreference:Ord:2"></span> <a href="../base-4.12.0.0/Data-Ord.html#t:Ord" title="Data.Ord">Ord</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:HostPreference:Ord:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Streaming-Network-Internal.html">Data.Streaming.Network.Internal</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-Ord.html#t:Ordering" title="Data.Ord">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(&lt;)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(&lt;=)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(&gt;)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(&gt;=)</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> <a href="#v:min" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:HostPreference:Read:3"></span> <a href="../base-4.12.0.0/Text-Read.html#t:Read" title="Text.Read">Read</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:HostPreference:Read:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Streaming-Network-Internal.html">Data.Streaming.Network.Internal</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base-4.12.0.0/Text-ParserCombinators-ReadP.html#t:ReadS" title="Text.ParserCombinators.ReadP">ReadS</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="../base-4.12.0.0/Text-ParserCombinators-ReadP.html#t:ReadS" title="Text.ParserCombinators.ReadP">ReadS</a> [<a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a>] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="../base-4.12.0.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec" title="Text.ParserCombinators.ReadPrec">ReadPrec</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="../base-4.12.0.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec" title="Text.ParserCombinators.ReadPrec">ReadPrec</a> [<a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a>] <a href="#v:readListPrec" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:HostPreference:Show:4"></span> <a href="../base-4.12.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:HostPreference:Show:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Streaming-Network-Internal.html">Data.Streaming.Network.Internal</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> -&gt; <a href="../base-4.12.0.0/Data-String.html#t:String" title="Data.String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a>] -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:HostPreference:IsString:5"></span> <a href="../base-4.12.0.0/Data-String.html#t:IsString" title="Data.String">IsString</a> <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:HostPreference:IsString:5"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Streaming-Network-Internal.html">Data.Streaming.Network.Internal</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromString">fromString</a> :: <a href="../base-4.12.0.0/Data-String.html#t:String" title="Data.String">String</a> -&gt; <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a> <a href="#v:fromString" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><a id="v:start" class="def">start</a> :: Settings -&gt; Tracer <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="Network-Wai-Middleware-Logging.html#t:ApiLog" title="Network.Wai.Middleware.Logging">ApiLog</a> -&gt; Socket -&gt; Application -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> () <a href="src/Cardano.Wallet.Api.Server.html#start" class="link">Source</a> <a href="#v:start" class="selflink">#</a></p><div class="doc"><p>Start the application server, using the given settings and a bound socket.</p></div></div><div class="top"><p class="src"><a id="v:serve" class="def">serve</a> :: HasServer api ([] :: [<a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a>]) =&gt; <a href="../base-4.12.0.0/Data-Proxy.html#t:Proxy" title="Data.Proxy">Proxy</a> api -&gt; Server api -&gt; Application <a href="#v:serve" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:server" class="def">server</a> :: <span class="keyword">forall</span> t n byron icarus shelley. (byron ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Random.html#t:RndState" title="Cardano.Wallet.Primitive.AddressDiscovery.Random">RndState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Byron.html#t:ByronKey" title="Cardano.Wallet.Primitive.AddressDerivation.Byron">ByronKey</a>, icarus ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Sequential.html#t:SeqState" title="Cardano.Wallet.Primitive.AddressDiscovery.Sequential">SeqState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a> <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a>, shelley ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Sequential.html#t:SeqState" title="Cardano.Wallet.Primitive.AddressDiscovery.Sequential">SeqState</a> n <a href="Cardano-Wallet-Primitive-AddressDerivation-Shelley.html#t:ShelleyKey" title="Cardano.Wallet.Primitive.AddressDerivation.Shelley">ShelleyKey</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Shelley.html#t:ShelleyKey" title="Cardano.Wallet.Primitive.AddressDerivation.Shelley">ShelleyKey</a>, <a href="Cardano-Wallet-Primitive-AddressDerivation.html#t:DelegationAddress" title="Cardano.Wallet.Primitive.AddressDerivation">DelegationAddress</a> n <a href="Cardano-Wallet-Primitive-AddressDerivation-Shelley.html#t:ShelleyKey" title="Cardano.Wallet.Primitive.AddressDerivation.Shelley">ShelleyKey</a>, Buildable (<a href="Cardano-Wallet-Transaction.html#t:ErrValidateSelection" title="Cardano.Wallet.Transaction">ErrValidateSelection</a> t)) =&gt; byron -&gt; icarus -&gt; shelley -&gt; <a href="Cardano-Pool-Metrics.html#t:StakePoolLayer" title="Cardano.Pool.Metrics">StakePoolLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> -&gt; Server (<a href="Cardano-Wallet-Api.html#t:Api" title="Cardano.Wallet.Api">Api</a> n) <a href="src/Cardano.Wallet.Api.Server.html#server" class="link">Source</a> <a href="#v:server" class="selflink">#</a></p><div class="doc"><p>A Servant server for our wallet API</p></div></div><div class="top"><p class="src"><a id="v:byronServer" class="def">byronServer</a> :: <span class="keyword">forall</span> t n. <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Random.html#t:RndState" title="Cardano.Wallet.Primitive.AddressDiscovery.Random">RndState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Byron.html#t:ByronKey" title="Cardano.Wallet.Primitive.AddressDerivation.Byron">ByronKey</a> -&gt; <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> (<a href="Cardano-Wallet-Primitive-AddressDiscovery-Sequential.html#t:SeqState" title="Cardano.Wallet.Primitive.AddressDiscovery.Sequential">SeqState</a> <a href="Cardano-Wallet-Primitive-AddressDerivation.html#v:Mainnet" title="Cardano.Wallet.Primitive.AddressDerivation">Mainnet</a> <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a>) t <a href="Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey" title="Cardano.Wallet.Primitive.AddressDerivation.Icarus">IcarusKey</a> -&gt; Server (<a href="Cardano-Wallet-Api.html#t:Api" title="Cardano.Wallet.Api">Api</a> n) <a href="src/Cardano.Wallet.Api.Server.html#byronServer" class="link">Source</a> <a href="#v:byronServer" class="selflink">#</a></p><div class="doc"><p>A diminished servant server to serve Byron wallets only.</p></div></div><div class="top"><p class="src"><a id="v:newApiLayer" class="def">newApiLayer</a> :: <span class="keyword">forall</span> ctx s t k. ctx ~ <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k =&gt; Tracer <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> <a href="Cardano-Wallet.html#t:WalletLog" title="Cardano.Wallet">WalletLog</a>) -&gt; (<a href="Cardano-Wallet-Primitive-Types.html#t:Block" title="Cardano.Wallet.Primitive.Types">Block</a>, <a href="Cardano-Wallet-Primitive-Types.html#t:BlockchainParameters" title="Cardano.Wallet.Primitive.Types">BlockchainParameters</a>, <a href="Cardano-Wallet-Primitive-Types.html#t:SyncTolerance" title="Cardano.Wallet.Primitive.Types">SyncTolerance</a>) -&gt; <a href="Cardano-Wallet-Network.html#t:NetworkLayer" title="Cardano.Wallet.Network">NetworkLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> t <a href="Cardano-Wallet-Primitive-Types.html#t:Block" title="Cardano.Wallet.Primitive.Types">Block</a> -&gt; <a href="Cardano-Wallet-Transaction.html#t:TransactionLayer" title="Cardano.Wallet.Transaction">TransactionLayer</a> t k -&gt; <a href="Cardano-Wallet-DB.html#t:DBFactory" title="Cardano.Wallet.DB">DBFactory</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> s k -&gt; [<a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a>] -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ctx <a href="src/Cardano.Wallet.Api.Server.html#newApiLayer" class="link">Source</a> <a href="#v:newApiLayer" class="selflink">#</a></p><div class="doc"><p>Create a new instance of the wallet layer.</p></div></div><div class="top"><p class="src"><a id="v:withListeningSocket" class="def">withListeningSocket</a> <a href="src/Cardano.Wallet.Api.Server.html#withListeningSocket" class="link">Source</a> <a href="#v:withListeningSocket" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Cardano-Wallet-Api-Server.html#t:HostPreference" title="Cardano.Wallet.Api.Server">HostPreference</a></td><td class="doc"><p>Which host to bind.</p></td></tr><tr><td class="src">-&gt; <a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a></td><td class="doc"><p>Whether to listen on a given port, or random port.</p></td></tr><tr><td class="src">-&gt; (<a href="../base-4.12.0.0/Data-Either.html#t:Either" title="Data.Either">Either</a> <a href="Cardano-Wallet-Api-Server.html#t:ListenError" title="Cardano.Wallet.Api.Server">ListenError</a> (Port, Socket) -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> a)</td><td class="doc"><p>Action to run with listening socket.</p></td></tr><tr><td class="src">-&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> a</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Run an action with a TCP socket bound to a port specified by the <code><a href="Cardano-Wallet-Api-Server.html#t:Listen" title="Cardano.Wallet.Api.Server">Listen</a></code>
 parameter.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.22.0</p></div></body></html>
\ No newline at end of file
 hash.</p></div></li><li><dfn class="src"><a id="v:rollbackTo" class="def">rollbackTo</a> :: <a href="Cardano-Wallet-DB.html#t:PrimaryKey" title="Cardano.Wallet.DB">PrimaryKey</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="Cardano-Wallet-Primitive-Types.html#t:SlotId" title="Cardano.Wallet.Primitive.Types">SlotId</a> -&gt; <a href="../mtl-2.2.2/Control-Monad-Except.html#t:ExceptT" title="Control.Monad.Except">ExceptT</a> <a href="Cardano-Wallet-DB.html#t:ErrNoSuchWallet" title="Cardano.Wallet.DB">ErrNoSuchWallet</a> stm <a href="Cardano-Wallet-Primitive-Types.html#t:SlotId" title="Cardano.Wallet.Primitive.Types">SlotId</a></dfn><div class="doc"><p>Drops all checkpoints and transaction data after the given slot.</p><p>Returns the actual slot to which the database has rolled back. This
 slot is guaranteed to be earlier than (or identical to) the given
 point of rollback but can't be guaranteed to be exactly the same
-
 because the database may only keep sparse checkpoints.</p></div></li><li><dfn class="src"><a id="v:prune" class="def">prune</a> :: <a href="Cardano-Wallet-DB.html#t:PrimaryKey" title="Cardano.Wallet.DB">PrimaryKey</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="../mtl-2.2.2/Control-Monad-Except.html#t:ExceptT" title="Control.Monad.Except">ExceptT</a> <a href="Cardano-Wallet-DB.html#t:ErrNoSuchWallet" title="Cardano.Wallet.DB">ErrNoSuchWallet</a> stm ()</dfn><div class="doc"><p>Prune database entities and remove entities that can be discarded.</p></div></li><li><dfn class="src"><a id="v:atomically" class="def">atomically</a> :: <span class="keyword">forall</span> a. stm a -&gt; m a</dfn><div class="doc"><p>Execute operations of the database in isolation and atomically.</p></div></li></ul></div></td></tr></table></div><div class="subs instances"><details id="i:DBLayer" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:DBLayer:HasWorkerCtx:1"></span> <a href="Cardano-Wallet-Registry.html#t:HasWorkerCtx" title="Cardano.Wallet.Registry">HasWorkerCtx</a> (<a href="Cardano-Wallet-DB.html#t:DBLayer" title="Cardano.Wallet.DB">DBLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> s k) (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k)</span> <a href="src/Cardano.Wallet.Api.html#line-524" class="link">Source</a> <a href="#t:HasWorkerCtx" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:DBLayer:HasWorkerCtx:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api.html">Cardano.Wallet.Api</a></p> <div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="Cardano-Wallet-Registry.html#t:WorkerCtx" title="Cardano.Wallet.Registry">WorkerCtx</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) :: <a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a> <a href="src/Cardano.Wallet.Registry.html#WorkerCtx" class="link">Source</a> <a href="#t:WorkerCtx" class="selflink">#</a></p><p class="src"><span class="keyword">type</span> <a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) :: <a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a> <a href="src/Cardano.Wallet.Registry.html#WorkerMsg" class="link">Source</a> <a href="#t:WorkerMsg" class="selflink">#</a></p><p class="src"><span class="keyword">type</span> <a href="Cardano-Wallet-Registry.html#t:WorkerKey" title="Cardano.Wallet.Registry">WorkerKey</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) :: <a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a> <a href="src/Cardano.Wallet.Registry.html#WorkerKey" class="link">Source</a> <a href="#t:WorkerKey" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:hoistResource">hoistResource</a> :: <a href="Cardano-Wallet-DB.html#t:DBLayer" title="Cardano.Wallet.DB">DBLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> s k -&gt; (<a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerKey" title="Cardano.Wallet.Registry">WorkerKey</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k)) (<a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k))) -&gt; <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerCtx" title="Cardano.Wallet.Registry">WorkerCtx</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) <a href="src/Cardano.Wallet.Registry.html#hoistResource" class="link">Source</a> <a href="#v:hoistResource" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:DBFactory" class="def">DBFactory</a> m s k <a href="src/Cardano.Wallet.DB.html#DBFactory" class="link">Source</a> <a href="#t:DBFactory" class="selflink">#</a></p><div class="doc"><p>Instantiate database layers at will</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:DBFactory" class="def">DBFactory</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:withDatabase" class="def">withDatabase</a> :: <span class="keyword">forall</span> a. <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; (<a href="Cardano-Wallet-DB.html#t:DBLayer" title="Cardano.Wallet.DB">DBLayer</a> m s k -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> a) -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> a</dfn><div class="doc"><p>Creates a new or use an existing database, maintaining an open
+
 because the database may only keep sparse checkpoints.</p></div></li><li><dfn class="src"><a id="v:prune" class="def">prune</a> :: <a href="Cardano-Wallet-DB.html#t:PrimaryKey" title="Cardano.Wallet.DB">PrimaryKey</a> <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="../mtl-2.2.2/Control-Monad-Except.html#t:ExceptT" title="Control.Monad.Except">ExceptT</a> <a href="Cardano-Wallet-DB.html#t:ErrNoSuchWallet" title="Cardano.Wallet.DB">ErrNoSuchWallet</a> stm ()</dfn><div class="doc"><p>Prune database entities and remove entities that can be discarded.</p></div></li><li><dfn class="src"><a id="v:atomically" class="def">atomically</a> :: <span class="keyword">forall</span> a. stm a -&gt; m a</dfn><div class="doc"><p>Execute operations of the database in isolation and atomically.</p></div></li></ul></div></td></tr></table></div><div class="subs instances"><details id="i:DBLayer" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:DBLayer:HasWorkerCtx:1"></span> <a href="Cardano-Wallet-Registry.html#t:HasWorkerCtx" title="Cardano.Wallet.Registry">HasWorkerCtx</a> (<a href="Cardano-Wallet-DB.html#t:DBLayer" title="Cardano.Wallet.DB">DBLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> s k) (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k)</span> <a href="src/Cardano.Wallet.Api.html#line-526" class="link">Source</a> <a href="#t:HasWorkerCtx" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:DBLayer:HasWorkerCtx:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api.html">Cardano.Wallet.Api</a></p> <div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="Cardano-Wallet-Registry.html#t:WorkerCtx" title="Cardano.Wallet.Registry">WorkerCtx</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) :: <a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a> <a href="src/Cardano.Wallet.Registry.html#WorkerCtx" class="link">Source</a> <a href="#t:WorkerCtx" class="selflink">#</a></p><p class="src"><span class="keyword">type</span> <a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) :: <a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a> <a href="src/Cardano.Wallet.Registry.html#WorkerMsg" class="link">Source</a> <a href="#t:WorkerMsg" class="selflink">#</a></p><p class="src"><span class="keyword">type</span> <a href="Cardano-Wallet-Registry.html#t:WorkerKey" title="Cardano.Wallet.Registry">WorkerKey</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) :: <a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a> <a href="src/Cardano.Wallet.Registry.html#WorkerKey" class="link">Source</a> <a href="#t:WorkerKey" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:hoistResource">hoistResource</a> :: <a href="Cardano-Wallet-DB.html#t:DBLayer" title="Cardano.Wallet.DB">DBLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> s k -&gt; (<a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerKey" title="Cardano.Wallet.Registry">WorkerKey</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k)) (<a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k))) -&gt; <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerCtx" title="Cardano.Wallet.Registry">WorkerCtx</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) <a href="src/Cardano.Wallet.Registry.html#hoistResource" class="link">Source</a> <a href="#v:hoistResource" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:DBFactory" class="def">DBFactory</a> m s k <a href="src/Cardano.Wallet.DB.html#DBFactory" class="link">Source</a> <a href="#t:DBFactory" class="selflink">#</a></p><div class="doc"><p>Instantiate database layers at will</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:DBFactory" class="def">DBFactory</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:withDatabase" class="def">withDatabase</a> :: <span class="keyword">forall</span> a. <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; (<a href="Cardano-Wallet-DB.html#t:DBLayer" title="Cardano.Wallet.DB">DBLayer</a> m s k -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> a) -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> a</dfn><div class="doc"><p>Creates a new or use an existing database, maintaining an open
 connection so long as necessary</p></div></li><li><dfn class="src"><a id="v:removeDatabase" class="def">removeDatabase</a> :: <a href="Cardano-Wallet-Primitive-Types.html#t:WalletId" title="Cardano.Wallet.Primitive.Types">WalletId</a> -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ()</dfn><div class="doc"><p>Erase any trace of the database</p></div></li></ul></div></td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:PrimaryKey" class="def">PrimaryKey</a> key <a href="src/Cardano.Wallet.DB.html#PrimaryKey" class="link">Source</a> <a href="#t:PrimaryKey" class="selflink">#</a></p><div class="doc"><p>A primary key which can take many forms depending on the value. This may
 become a type family as we move forward, but for now, it illustrate that
 some queries are ran against some sort of store;</p><p>As a matter of fact, we may manipulate multiple wallets at the same time, so,
 terminates unexpectedly before entering its <code>main</code> action.</p></div></div><div class="top"><p class="src"><a id="v:unregister" class="def">unregister</a> :: <a href="../base-4.12.0.0/Data-Ord.html#t:Ord" title="Data.Ord">Ord</a> key =&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerRegistry" title="Cardano.Wallet.Registry">WorkerRegistry</a> key resource -&gt; key -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> () <a href="src/Cardano.Wallet.Registry.html#unregister" class="link">Source</a> <a href="#v:unregister" class="selflink">#</a></p><div class="doc"><p>Unregister a worker from the registry, terminating the running task.</p></div></div><a href="#g:2" id="g:2"><h1>Worker</h1></a><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Worker" class="def">Worker</a> key resource <a href="src/Cardano.Wallet.Registry.html#Worker" class="link">Source</a> <a href="#t:Worker" class="selflink">#</a></p><div class="doc"><p>A worker which holds and manipulate a paticular acquired resource. That
 resource can be, for example, a handle to a database connection.</p></div><div class="subs instances"><details id="i:Worker" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Worker:Generic:1"></span> <a href="../base-4.12.0.0/GHC-Generics.html#t:Generic" title="GHC.Generics">Generic</a> (<a href="Cardano-Wallet-Registry.html#t:Worker" title="Cardano.Wallet.Registry">Worker</a> key resource)</span> <a href="src/Cardano.Wallet.Registry.html#line-175" class="link">Source</a> <a href="#t:Worker" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Worker:Generic:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Registry.html">Cardano.Wallet.Registry</a></p> <div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="../base-4.12.0.0/GHC-Generics.html#t:Rep" title="GHC.Generics">Rep</a> (<a href="Cardano-Wallet-Registry.html#t:Worker" title="Cardano.Wallet.Registry">Worker</a> key resource) :: <a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a> -&gt; <a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a> <a href="#t:Rep" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:from">from</a> :: <a href="Cardano-Wallet-Registry.html#t:Worker" title="Cardano.Wallet.Registry">Worker</a> key resource -&gt; <a href="../base-4.12.0.0/GHC-Generics.html#t:Rep" title="GHC.Generics">Rep</a> (<a href="Cardano-Wallet-Registry.html#t:Worker" title="Cardano.Wallet.Registry">Worker</a> key resource) x <a href="#v:from" class="selflink">#</a></p><p class="src"><a href="#v:to">to</a> :: <a href="../base-4.12.0.0/GHC-Generics.html#t:Rep" title="GHC.Generics">Rep</a> (<a href="Cardano-Wallet-Registry.html#t:Worker" title="Cardano.Wallet.Registry">Worker</a> key resource) x -&gt; <a href="Cardano-Wallet-Registry.html#t:Worker" title="Cardano.Wallet.Registry">Worker</a> key resource <a href="#v:to" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Worker:Rep:2"></span> <span class="keyword">type</span> <a href="../base-4.12.0.0/GHC-Generics.html#t:Rep" title="GHC.Generics">Rep</a> (<a href="Cardano-Wallet-Registry.html#t:Worker" title="Cardano.Wallet.Registry">Worker</a> key resource)</span> <a href="src/Cardano.Wallet.Registry.html#line-175" class="link">Source</a> <a href="#t:Worker" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Worker:Rep:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Registry.html">Cardano.Wallet.Registry</a></p> <div class="src"><span class="keyword">type</span> <a href="../base-4.12.0.0/GHC-Generics.html#t:Rep" title="GHC.Generics">Rep</a> (<a href="Cardano-Wallet-Registry.html#t:Worker" title="Cardano.Wallet.Registry">Worker</a> key resource) = <a href="../base-4.12.0.0/GHC-Generics.html#t:D1" title="GHC.Generics">D1</a> (<a href="../base-4.12.0.0/GHC-Generics.html#v:MetaData" title="GHC.Generics">MetaData</a> &quot;Worker&quot; &quot;Cardano.Wallet.Registry&quot; &quot;cardano-wallet-core-2020.1.27-J3vPzvGZUQmCm1vLCXwAsb&quot; <a href="../base-4.12.0.0/Data-Bool.html#v:False" title="Data.Bool">False</a>) (<a href="../base-4.12.0.0/GHC-Generics.html#t:C1" title="GHC.Generics">C1</a> (<a href="../base-4.12.0.0/GHC-Generics.html#v:MetaCons" title="GHC.Generics">MetaCons</a> &quot;Worker&quot; <a href="../base-4.12.0.0/GHC-Generics.html#v:PrefixI" title="GHC.Generics">PrefixI</a> <a href="../base-4.12.0.0/Data-Bool.html#v:True" title="Data.Bool">True</a>) (<a href="../base-4.12.0.0/GHC-Generics.html#t:S1" title="GHC.Generics">S1</a> (<a href="../base-4.12.0.0/GHC-Generics.html#v:MetaSel" title="GHC.Generics">MetaSel</a> (<a href="../base-4.12.0.0/GHC-Maybe.html#v:Just" title="GHC.Maybe">Just</a> &quot;workerId&quot;) <a href="../base-4.12.0.0/GHC-Generics.html#v:NoSourceUnpackedness" title="GHC.Generics">NoSourceUnpackedness</a> <a href="../base-4.12.0.0/GHC-Generics.html#v:NoSourceStrictness" title="GHC.Generics">NoSourceStrictness</a> <a href="../base-4.12.0.0/GHC-Generics.html#v:DecidedLazy" title="GHC.Generics">DecidedLazy</a>) (<a href="../base-4.12.0.0/GHC-Generics.html#t:Rec0" title="GHC.Generics">Rec0</a> key) <a href="../base-4.12.0.0/GHC-Generics.html#t::-42-:" title="GHC.Generics">:*:</a> (<a href="../base-4.12.0.0/GHC-Generics.html#t:S1" title="GHC.Generics">S1</a> (<a href="../base-4.12.0.0/GHC-Generics.html#v:MetaSel" title="GHC.Generics">MetaSel</a> (<a href="../base-4.12.0.0/GHC-Maybe.html#v:Just" title="GHC.Maybe">Just</a> &quot;workerThread&quot;) <a href="../base-4.12.0.0/GHC-Generics.html#v:NoSourceUnpackedness" title="GHC.Generics">NoSourceUnpackedness</a> <a href="../base-4.12.0.0/GHC-Generics.html#v:NoSourceStrictness" title="GHC.Generics">NoSourceStrictness</a> <a href="../base-4.12.0.0/GHC-Generics.html#v:DecidedLazy" title="GHC.Generics">DecidedLazy</a>) (<a href="../base-4.12.0.0/GHC-Generics.html#t:Rec0" title="GHC.Generics">Rec0</a> <a href="../base-4.12.0.0/Control-Concurrent.html#t:ThreadId" title="Control.Concurrent">ThreadId</a>) <a href="../base-4.12.0.0/GHC-Generics.html#t::-42-:" title="GHC.Generics">:*:</a> <a href="../base-4.12.0.0/GHC-Generics.html#t:S1" title="GHC.Generics">S1</a> (<a href="../base-4.12.0.0/GHC-Generics.html#v:MetaSel" title="GHC.Generics">MetaSel</a> (<a href="../base-4.12.0.0/GHC-Maybe.html#v:Just" title="GHC.Maybe">Just</a> &quot;workerResource&quot;) <a href="../base-4.12.0.0/GHC-Generics.html#v:NoSourceUnpackedness" title="GHC.Generics">NoSourceUnpackedness</a> <a href="../base-4.12.0.0/GHC-Generics.html#v:NoSourceStrictness" title="GHC.Generics">NoSourceStrictness</a> <a href="../base-4.12.0.0/GHC-Generics.html#v:DecidedLazy" title="GHC.Generics">DecidedLazy</a>) (<a href="../base-4.12.0.0/GHC-Generics.html#t:Rec0" title="GHC.Generics">Rec0</a> resource))))</div></details></td></tr></table></details></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:MkWorker" class="def">MkWorker</a> key resource msg ctx <a href="src/Cardano.Wallet.Registry.html#MkWorker" class="link">Source</a> <a href="#t:MkWorker" class="selflink">#</a></p><div class="doc"><p>See <code>newWorker</code></p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:MkWorker" class="def">MkWorker</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:workerBefore" class="def">workerBefore</a> :: <a href="Cardano-Wallet-Registry.html#t:WorkerCtx" title="Cardano.Wallet.Registry">WorkerCtx</a> ctx -&gt; key -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ()</dfn><div class="doc"><p>A task to execute before the main worker's task. When creating a
 worker, this task is guaranteed to have terminated once <code>newWorker</code>
-
 returns.</p></div></li><li><dfn class="src"><a id="v:workerMain" class="def">workerMain</a> :: <a href="Cardano-Wallet-Registry.html#t:WorkerCtx" title="Cardano.Wallet.Registry">WorkerCtx</a> ctx -&gt; key -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ()</dfn><div class="doc"><p>A task for the worker, possibly infinite</p></div></li><li><dfn class="src"><a id="v:workerAfter" class="def">workerAfter</a> :: Tracer <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg) -&gt; <a href="../base-4.12.0.0/Data-Either.html#t:Either" title="Data.Either">Either</a> <a href="../base-4.12.0.0/Control-Exception-Base.html#t:SomeException" title="Control.Exception.Base">SomeException</a> () -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ()</dfn><div class="doc"><p>Action to run when the worker exits</p></div></li><li><dfn class="src"><a id="v:workerAcquire" class="def">workerAcquire</a> :: (resource -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ()) -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ()</dfn><div class="doc"><p>A bracket-style factory to acquire a resource</p></div></li></ul></div></td></tr></table></div></div><div class="top"><p class="src"><a id="v:defaultWorkerAfter" class="def">defaultWorkerAfter</a> :: Tracer <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg) -&gt; <a href="../base-4.12.0.0/Data-Either.html#t:Either" title="Data.Either">Either</a> <a href="../base-4.12.0.0/Control-Exception-Base.html#t:SomeException" title="Control.Exception.Base">SomeException</a> a -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> () <a href="src/Cardano.Wallet.Registry.html#defaultWorkerAfter" class="link">Source</a> <a href="#v:defaultWorkerAfter" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:workerThread" class="def">workerThread</a> :: <a href="Cardano-Wallet-Registry.html#t:Worker" title="Cardano.Wallet.Registry">Worker</a> key resource -&gt; <a href="../base-4.12.0.0/Control-Concurrent.html#t:ThreadId" title="Control.Concurrent">ThreadId</a> <a href="src/Cardano.Wallet.Registry.html#workerThread" class="link">Source</a> <a href="#v:workerThread" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:workerId" class="def">workerId</a> :: <a href="Cardano-Wallet-Registry.html#t:Worker" title="Cardano.Wallet.Registry">Worker</a> key resource -&gt; key <a href="src/Cardano.Wallet.Registry.html#workerId" class="link">Source</a> <a href="#v:workerId" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:workerResource" class="def">workerResource</a> :: <a href="Cardano-Wallet-Registry.html#t:Worker" title="Cardano.Wallet.Registry">Worker</a> key resource -&gt; resource <a href="src/Cardano.Wallet.Registry.html#workerResource" class="link">Source</a> <a href="#v:workerResource" class="selflink">#</a></p></div><a href="#g:3" id="g:3"><h1>Context</h1></a><div class="top"><p class="src"><span class="keyword">class</span> HasType resource (<a href="Cardano-Wallet-Registry.html#t:WorkerCtx" title="Cardano.Wallet.Registry">WorkerCtx</a> ctx) =&gt; <a id="t:HasWorkerCtx" class="def">HasWorkerCtx</a> resource ctx <span class="keyword">where</span> <a href="src/Cardano.Wallet.Registry.html#HasWorkerCtx" class="link">Source</a> <a href="#t:HasWorkerCtx" class="selflink">#</a></p><div class="doc"><p>A class to link an existing context to a worker context.</p></div><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a id="t:WorkerCtx" class="def">WorkerCtx</a> ctx :: * <a href="src/Cardano.Wallet.Registry.html#WorkerCtx" class="link">Source</a> <a href="#t:WorkerCtx" class="selflink">#</a></p><p class="src"><span class="keyword">type</span> <a id="t:WorkerMsg" class="def">WorkerMsg</a> ctx :: * <a href="src/Cardano.Wallet.Registry.html#WorkerMsg" class="link">Source</a> <a href="#t:WorkerMsg" class="selflink">#</a></p><p class="src"><span class="keyword">type</span> <a id="t:WorkerKey" class="def">WorkerKey</a> ctx :: * <a href="src/Cardano.Wallet.Registry.html#WorkerKey" class="link">Source</a> <a href="#t:WorkerKey" class="selflink">#</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:hoistResource" class="def">hoistResource</a> :: resource -&gt; (<a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> ctx -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerKey" title="Cardano.Wallet.Registry">WorkerKey</a> ctx) (<a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> ctx)) -&gt; ctx -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerCtx" title="Cardano.Wallet.Registry">WorkerCtx</a> ctx <a href="src/Cardano.Wallet.Registry.html#hoistResource" class="link">Source</a> <a href="#v:hoistResource" class="selflink">#</a></p></div><div class="subs instances"><details id="i:HasWorkerCtx" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:HasWorkerCtx:HasWorkerCtx:1"></span> <a href="Cardano-Wallet-Registry.html#t:HasWorkerCtx" title="Cardano.Wallet.Registry">HasWorkerCtx</a> (<a href="Cardano-Wallet-DB.html#t:DBLayer" title="Cardano.Wallet.DB">DBLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> s k) (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k)</span> <a href="src/Cardano.Wallet.Api.html#line-524" class="link">Source</a> <a href="#t:HasWorkerCtx" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:HasWorkerCtx:HasWorkerCtx:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api.html">Cardano.Wallet.Api</a></p> <div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="Cardano-Wallet-Registry.html#t:WorkerCtx" title="Cardano.Wallet.Registry">WorkerCtx</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) :: <a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a> <a href="src/Cardano.Wallet.Registry.html#WorkerCtx" class="link">Source</a> <a href="#t:WorkerCtx" class="selflink">#</a></p><p class="src"><span class="keyword">type</span> <a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) :: <a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a> <a href="src/Cardano.Wallet.Registry.html#WorkerMsg" class="link">Source</a> <a href="#t:WorkerMsg" class="selflink">#</a></p><p class="src"><span class="keyword">type</span> <a href="Cardano-Wallet-Registry.html#t:WorkerKey" title="Cardano.Wallet.Registry">WorkerKey</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) :: <a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a> <a href="src/Cardano.Wallet.Registry.html#WorkerKey" class="link">Source</a> <a href="#t:WorkerKey" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:hoistResource">hoistResource</a> :: <a href="Cardano-Wallet-DB.html#t:DBLayer" title="Cardano.Wallet.DB">DBLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> s k -&gt; (<a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerKey" title="Cardano.Wallet.Registry">WorkerKey</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k)) (<a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k))) -&gt; <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerCtx" title="Cardano.Wallet.Registry">WorkerCtx</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) <a href="src/Cardano.Wallet.Registry.html#hoistResource" class="link">Source</a> <a href="#v:hoistResource" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><a href="#g:4" id="g:4"><h1>Logging</h1></a><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:WorkerLog" class="def">WorkerLog</a> key msg <a href="src/Cardano.Wallet.Registry.html#WorkerLog" class="link">Source</a> <a href="#t:WorkerLog" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:MsgFinished" class="def">MsgFinished</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:MsgThreadKilled" class="def">MsgThreadKilled</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:MsgUserInterrupt" class="def">MsgUserInterrupt</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:MsgUnhandledException" class="def">MsgUnhandledException</a> <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:MsgFromWorker" class="def">MsgFromWorker</a> key msg</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><details id="i:WorkerLog" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:WorkerLog:Eq:1"></span> (<a href="../base-4.12.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> key, <a href="../base-4.12.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> msg) =&gt; <a href="../base-4.12.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg)</span> <a href="src/Cardano.Wallet.Registry.html#line-258" class="link">Source</a> <a href="#t:WorkerLog" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:WorkerLog:Eq:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Registry.html">Cardano.Wallet.Registry</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:WorkerLog:Show:2"></span> (<a href="../base-4.12.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> key, <a href="../base-4.12.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> msg) =&gt; <a href="../base-4.12.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg)</span> <a href="src/Cardano.Wallet.Registry.html#line-258" class="link">Source</a> <a href="#t:WorkerLog" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:WorkerLog:Show:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Registry.html">Cardano.Wallet.Registry</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; <a href="../base-4.12.0.0/Data-String.html#t:String" title="Data.String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg] -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:WorkerLog:ToText:3"></span> (<a href="../text-class-2020.1.27/Data-Text-Class.html#t:ToText" title="Data.Text.Class">ToText</a> key, <a href="../text-class-2020.1.27/Data-Text-Class.html#t:ToText" title="Data.Text.Class">ToText</a> msg) =&gt; <a href="../text-class-2020.1.27/Data-Text-Class.html#t:ToText" title="Data.Text.Class">ToText</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg)</span> <a href="src/Cardano.Wallet.Registry.html#line-260" class="link">Source</a> <a href="#t:WorkerLog" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:WorkerLog:ToText:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Registry.html">Cardano.Wallet.Registry</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toText">toText</a> :: <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a> <a href="#v:toText" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:WorkerLog:DefinePrivacyAnnotation:4"></span> DefinePrivacyAnnotation (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg)</span> <a href="src/Cardano.Wallet.Registry.html#line-274" class="link">Source</a> <a href="#t:WorkerLog" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:WorkerLog:DefinePrivacyAnnotation:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Registry.html">Cardano.Wallet.Registry</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:definePrivacyAnnotation">definePrivacyAnnotation</a> :: <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; PrivacyAnnotation</p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:WorkerLog:DefineSeverity:5"></span> DefineSeverity msg =&gt; DefineSeverity (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg)</span> <a href="src/Cardano.Wallet.Registry.html#line-275" class="link">Source</a> <a href="#t:WorkerLog" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:WorkerLog:DefineSeverity:5"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Registry.html">Cardano.Wallet.Registry</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:defineSeverity">defineSeverity</a> :: <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; Severity</p></div></details></td></tr></table></details></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.22.0</p></div></body></html>
\ No newline at end of file
+
 returns.</p></div></li><li><dfn class="src"><a id="v:workerMain" class="def">workerMain</a> :: <a href="Cardano-Wallet-Registry.html#t:WorkerCtx" title="Cardano.Wallet.Registry">WorkerCtx</a> ctx -&gt; key -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ()</dfn><div class="doc"><p>A task for the worker, possibly infinite</p></div></li><li><dfn class="src"><a id="v:workerAfter" class="def">workerAfter</a> :: Tracer <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg) -&gt; <a href="../base-4.12.0.0/Data-Either.html#t:Either" title="Data.Either">Either</a> <a href="../base-4.12.0.0/Control-Exception-Base.html#t:SomeException" title="Control.Exception.Base">SomeException</a> () -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ()</dfn><div class="doc"><p>Action to run when the worker exits</p></div></li><li><dfn class="src"><a id="v:workerAcquire" class="def">workerAcquire</a> :: (resource -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ()) -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> ()</dfn><div class="doc"><p>A bracket-style factory to acquire a resource</p></div></li></ul></div></td></tr></table></div></div><div class="top"><p class="src"><a id="v:defaultWorkerAfter" class="def">defaultWorkerAfter</a> :: Tracer <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg) -&gt; <a href="../base-4.12.0.0/Data-Either.html#t:Either" title="Data.Either">Either</a> <a href="../base-4.12.0.0/Control-Exception-Base.html#t:SomeException" title="Control.Exception.Base">SomeException</a> a -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> () <a href="src/Cardano.Wallet.Registry.html#defaultWorkerAfter" class="link">Source</a> <a href="#v:defaultWorkerAfter" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:workerThread" class="def">workerThread</a> :: <a href="Cardano-Wallet-Registry.html#t:Worker" title="Cardano.Wallet.Registry">Worker</a> key resource -&gt; <a href="../base-4.12.0.0/Control-Concurrent.html#t:ThreadId" title="Control.Concurrent">ThreadId</a> <a href="src/Cardano.Wallet.Registry.html#workerThread" class="link">Source</a> <a href="#v:workerThread" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:workerId" class="def">workerId</a> :: <a href="Cardano-Wallet-Registry.html#t:Worker" title="Cardano.Wallet.Registry">Worker</a> key resource -&gt; key <a href="src/Cardano.Wallet.Registry.html#workerId" class="link">Source</a> <a href="#v:workerId" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:workerResource" class="def">workerResource</a> :: <a href="Cardano-Wallet-Registry.html#t:Worker" title="Cardano.Wallet.Registry">Worker</a> key resource -&gt; resource <a href="src/Cardano.Wallet.Registry.html#workerResource" class="link">Source</a> <a href="#v:workerResource" class="selflink">#</a></p></div><a href="#g:3" id="g:3"><h1>Context</h1></a><div class="top"><p class="src"><span class="keyword">class</span> HasType resource (<a href="Cardano-Wallet-Registry.html#t:WorkerCtx" title="Cardano.Wallet.Registry">WorkerCtx</a> ctx) =&gt; <a id="t:HasWorkerCtx" class="def">HasWorkerCtx</a> resource ctx <span class="keyword">where</span> <a href="src/Cardano.Wallet.Registry.html#HasWorkerCtx" class="link">Source</a> <a href="#t:HasWorkerCtx" class="selflink">#</a></p><div class="doc"><p>A class to link an existing context to a worker context.</p></div><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a id="t:WorkerCtx" class="def">WorkerCtx</a> ctx :: * <a href="src/Cardano.Wallet.Registry.html#WorkerCtx" class="link">Source</a> <a href="#t:WorkerCtx" class="selflink">#</a></p><p class="src"><span class="keyword">type</span> <a id="t:WorkerMsg" class="def">WorkerMsg</a> ctx :: * <a href="src/Cardano.Wallet.Registry.html#WorkerMsg" class="link">Source</a> <a href="#t:WorkerMsg" class="selflink">#</a></p><p class="src"><span class="keyword">type</span> <a id="t:WorkerKey" class="def">WorkerKey</a> ctx :: * <a href="src/Cardano.Wallet.Registry.html#WorkerKey" class="link">Source</a> <a href="#t:WorkerKey" class="selflink">#</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:hoistResource" class="def">hoistResource</a> :: resource -&gt; (<a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> ctx -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerKey" title="Cardano.Wallet.Registry">WorkerKey</a> ctx) (<a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> ctx)) -&gt; ctx -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerCtx" title="Cardano.Wallet.Registry">WorkerCtx</a> ctx <a href="src/Cardano.Wallet.Registry.html#hoistResource" class="link">Source</a> <a href="#v:hoistResource" class="selflink">#</a></p></div><div class="subs instances"><details id="i:HasWorkerCtx" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:HasWorkerCtx:HasWorkerCtx:1"></span> <a href="Cardano-Wallet-Registry.html#t:HasWorkerCtx" title="Cardano.Wallet.Registry">HasWorkerCtx</a> (<a href="Cardano-Wallet-DB.html#t:DBLayer" title="Cardano.Wallet.DB">DBLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> s k) (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k)</span> <a href="src/Cardano.Wallet.Api.html#line-526" class="link">Source</a> <a href="#t:HasWorkerCtx" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:HasWorkerCtx:HasWorkerCtx:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Api.html">Cardano.Wallet.Api</a></p> <div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="Cardano-Wallet-Registry.html#t:WorkerCtx" title="Cardano.Wallet.Registry">WorkerCtx</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) :: <a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a> <a href="src/Cardano.Wallet.Registry.html#WorkerCtx" class="link">Source</a> <a href="#t:WorkerCtx" class="selflink">#</a></p><p class="src"><span class="keyword">type</span> <a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) :: <a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a> <a href="src/Cardano.Wallet.Registry.html#WorkerMsg" class="link">Source</a> <a href="#t:WorkerMsg" class="selflink">#</a></p><p class="src"><span class="keyword">type</span> <a href="Cardano-Wallet-Registry.html#t:WorkerKey" title="Cardano.Wallet.Registry">WorkerKey</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) :: <a href="../base-4.12.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a> <a href="src/Cardano.Wallet.Registry.html#WorkerKey" class="link">Source</a> <a href="#t:WorkerKey" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:hoistResource">hoistResource</a> :: <a href="Cardano-Wallet-DB.html#t:DBLayer" title="Cardano.Wallet.DB">DBLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> s k -&gt; (<a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerKey" title="Cardano.Wallet.Registry">WorkerKey</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k)) (<a href="Cardano-Wallet-Registry.html#t:WorkerMsg" title="Cardano.Wallet.Registry">WorkerMsg</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k))) -&gt; <a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerCtx" title="Cardano.Wallet.Registry">WorkerCtx</a> (<a href="Cardano-Wallet-Api.html#t:ApiLayer" title="Cardano.Wallet.Api">ApiLayer</a> s t k) <a href="src/Cardano.Wallet.Registry.html#hoistResource" class="link">Source</a> <a href="#v:hoistResource" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><a href="#g:4" id="g:4"><h1>Logging</h1></a><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:WorkerLog" class="def">WorkerLog</a> key msg <a href="src/Cardano.Wallet.Registry.html#WorkerLog" class="link">Source</a> <a href="#t:WorkerLog" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:MsgFinished" class="def">MsgFinished</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:MsgThreadKilled" class="def">MsgThreadKilled</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:MsgUserInterrupt" class="def">MsgUserInterrupt</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:MsgUnhandledException" class="def">MsgUnhandledException</a> <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:MsgFromWorker" class="def">MsgFromWorker</a> key msg</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><details id="i:WorkerLog" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:WorkerLog:Eq:1"></span> (<a href="../base-4.12.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> key, <a href="../base-4.12.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> msg) =&gt; <a href="../base-4.12.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg)</span> <a href="src/Cardano.Wallet.Registry.html#line-258" class="link">Source</a> <a href="#t:WorkerLog" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:WorkerLog:Eq:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Registry.html">Cardano.Wallet.Registry</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:WorkerLog:Show:2"></span> (<a href="../base-4.12.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> key, <a href="../base-4.12.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> msg) =&gt; <a href="../base-4.12.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg)</span> <a href="src/Cardano.Wallet.Registry.html#line-258" class="link">Source</a> <a href="#t:WorkerLog" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:WorkerLog:Show:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Registry.html">Cardano.Wallet.Registry</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; <a href="../base-4.12.0.0/Data-String.html#t:String" title="Data.String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg] -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:WorkerLog:ToText:3"></span> (<a href="../text-class-2020.1.27/Data-Text-Class.html#t:ToText" title="Data.Text.Class">ToText</a> key, <a href="../text-class-2020.1.27/Data-Text-Class.html#t:ToText" title="Data.Text.Class">ToText</a> msg) =&gt; <a href="../text-class-2020.1.27/Data-Text-Class.html#t:ToText" title="Data.Text.Class">ToText</a> (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg)</span> <a href="src/Cardano.Wallet.Registry.html#line-260" class="link">Source</a> <a href="#t:WorkerLog" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:WorkerLog:ToText:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Registry.html">Cardano.Wallet.Registry</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toText">toText</a> :: <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a> <a href="#v:toText" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:WorkerLog:DefinePrivacyAnnotation:4"></span> DefinePrivacyAnnotation (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg)</span> <a href="src/Cardano.Wallet.Registry.html#line-274" class="link">Source</a> <a href="#t:WorkerLog" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:WorkerLog:DefinePrivacyAnnotation:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Registry.html">Cardano.Wallet.Registry</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:definePrivacyAnnotation">definePrivacyAnnotation</a> :: <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; PrivacyAnnotation</p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:WorkerLog:DefineSeverity:5"></span> DefineSeverity msg =&gt; DefineSeverity (<a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg)</span> <a href="src/Cardano.Wallet.Registry.html#line-275" class="link">Source</a> <a href="#t:WorkerLog" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:WorkerLog:DefineSeverity:5"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Cardano-Wallet-Registry.html">Cardano.Wallet.Registry</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:defineSeverity">defineSeverity</a> :: <a href="Cardano-Wallet-Registry.html#t:WorkerLog" title="Cardano.Wallet.Registry">WorkerLog</a> key msg -&gt; Severity</p></div></details></td></tr></table></details></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.22.0</p></div></body></html>
\ No newline at end of file