convex-wallet-0.2.0.0: Simple wallet
Safe HaskellSafe-Inferred
LanguageHaskell2010

Convex.Wallet

Description

Primitive wallet

Synopsis

Documentation

newtype Wallet Source #

Constructors

Wallet 

Instances

Instances details
FromJSON Wallet Source # 
Instance details

Defined in Convex.Wallet

ToJSON Wallet Source # 
Instance details

Defined in Convex.Wallet

Show Wallet Source # 
Instance details

Defined in Convex.Wallet

paymentCredentialWalletPaymentCredential Source #

The wallet's payment credential (public key)

verificationKeyHashWalletHash PaymentKey Source #

Verification key hash of the wallet

addressNetworkIdWalletAddress ShelleyAddr Source #

The address of the wallet

privateKeyWalletText Source #

The wallet's private key (serialised)

signTxIsShelleyBasedEra era ⇒ WalletTx era → Tx era Source #

Add the wallet's signature to the signatures of the transaction

addSignatureIsShelleyBasedEra era ⇒ SigningKey PaymentKeyTx era → Tx era Source #

Sign the transaction body with the signing key and attach the signature to the transaction

addSignatureExtendedIsShelleyBasedEra era ⇒ SigningKey PaymentExtendedKeyTx era → Tx era Source #

Sign the transaction body with the extended signing key and attach the signature to the transaction

UTxOs and coin selection

selectAdaInputsCoveringUtxoSet ctx a → LovelaceMaybe (Lovelace, [TxIn]) Source #

Select Ada-only inputs that cover the given amount of lovelace

selectAnyInputsCoveringUtxoSet ctx a → LovelaceMaybe (Lovelace, [TxIn]) Source #

Select Ada-only inputs that cover the given amount of lovelace

selectMixedInputsCoveringUtxoSet ctx a → [(PolicyId, AssetName, Quantity)] → Maybe (Value, [TxIn]) Source #

Select inputs that cover the given amount of non-Ada assets.