cardano-wallet-core-2022.7.1: The Wallet Backend for a Cardano node.
Copyright © 2018-2020 IOHK
License Apache-2.0
Safe Haskell None
Language Haskell2010

Cardano.Wallet.Api.Link

Description

Type-safe endpoint accessors for the wallet API. Under normal circumstances, one would prefer to use WalletClient from Client and not to bother with endpoints at all.

Yet, in some cases (like in black-box testing), one could want to purposely send malformed requests to specific endpoints. Thus, this module facilitates the construction of valid endpoints that'd be accepted by the server, and for which, users are free to send all sort of data as payload, valid or invalid.

This module is meant to be used via qualified imports and with type-applications since all exposed functions are type ambiguous in a variable style of type WalletStyle .

import qualified Cardano.Wallet.Api.Link as Link

For examples:

>>> Link.deleteWallet @'Shelley myWallet
( "DELETE", "/v2/wallets/2512a00e9653fe49a44a5886202e24d77eeb998f" )
>>> Link.getWallet @('Byron 'Icarus) myWallet
( "GET", "/v2/byron-wallets/2512a00e9653fe49a44a5886202e24d77eeb998f" )
Synopsis

Wallets

WalletKeys

Addresses

CoinSelections

Assets

Transactions

StakePools

Network

getNetworkClock' Source #

Arguments

:: Bool

When True , block and force NTP check

-> ( Method , Text )

Proxy

Settings

Utils

Shared Wallets

class Discriminate (style :: WalletStyle ) Source #

Minimal complete definition

discriminate

Instances

Instances details
Discriminate ' Shelley Source #
Instance details

Defined in Cardano.Wallet.Api.Link

Methods

discriminate :: a -> a -> a -> a

Discriminate ' Byron Source #
Instance details

Defined in Cardano.Wallet.Api.Link

Methods

discriminate :: a -> a -> a -> a

Discriminate ' Shared Source #
Instance details

Defined in Cardano.Wallet.Api.Link

Methods

discriminate :: a -> a -> a -> a