sdk
sdk package
Classes
Class |
Description |
---|---|
The Blaze class is used to create and manage Cardano transactions. It requires a provider and a wallet to interact with the blockchain and manage funds. | |
Wallet class that interacts with the ColdWallet. | |
Wallet class that interacts with the HotSingleWallet. This is like HotWallet, but without key derivation. | |
Wallet class that interacts with the HotWallet. | |
A builder class for constructing Cardano transactions with various components like inputs, outputs, and scripts. | |
This class provides decoding functionality for UPLC (Untyped Plutus Core) programs. It extends the FlatDecoder class to handle the specific structure of UPLC programs. The decoding process involves interpreting binary data into structured UPLC terms and types. | |
UPLCEncoder class for encoding Untyped Plutus Core (UPLC) programs. Extends the FlatEncoder class to provide UPLC-specific encoding functionality. | |
Wallet class that interacts with the WalletInterface. |
Abstract Classes
Abstract Class |
Description |
---|---|
Abstract class for the Provider. This class provides an interface for interacting with the blockchain. | |
Abstract class for Wallet. |
Functions
Function |
Description |
---|---|
Applies parameters to a UPLC program encoded as a hex blob. This function takes a hex-encoded UPLC program and applies one or more Plutus data parameters to it. It does this by decoding the program, modifying its AST to apply the parameters, and then re-encoding it. | |
Applies the given Plutus data parameters to a hex-encoded Plutus script. This function decodes the provided Plutus script, applies the given parameters to it, and then re-encodes the script. The parameters are cast to the specified type and converted to a list of PlutusData before being applied. T - The type of the parameters list. | |
Asserts that the given address is a valid lock address. | |
Asserts that the given address is a valid payment address. | |
Utility function to test the validity of a TransactionOutput. | |
Returns the maximum of two BigInt values. | |
This methods calculates the minimum ada required for a transaction output. | |
Calculates the fee for reference scripts in the transaction. This method iterates through the reference inputs, finds the corresponding UTXOs, and calculates the fee based on the size of the Plutus scripts referenced. The fee calculation follows a tiered approach where the base fee increases for each range of script size, as defined in the protocol parameters. See https://github.com/CardanoSolutions/ogmios/releases/tag/v6.5.0 | |
Calculate the required "collateral" the a transaction must put up if it is running smart contracts. This is to prevent DDOS attacks with failing scripts, and must be some percentage above the total fee of the script. | |
Converts the compiled code of a UPLC program into a Script based on the specified script type, handling possible double-CBOR encoding. | |
Calculates the correct script data hash for a transaction Separate from the | |
Computes the hash of the auxiliary data if it exists. | |
Given an array and a string, it mutates the provided array and inserts the string after the closest match. It returns the index at which the string was inserted. | |
Utility function to compare the equality of two inputs. | |
Utility function to compare the equality of two outputs. | |
Utility function to compare the equality of two UTxOs. | |
Creates a new Value object with the specified amount of lovelace and assets. | |
Sorts a list of UTxOs by highest total value first. |
Interfaces
Interface |
Description |
---|---|
CIP-30 Wallet interface. |
Namespaces
Namespace |
Description |
---|---|
Variables
Variable |
Description |
---|---|
Mapping of RedeemerPurpose to RedeemerTag. Ensures consistency between purpose strings and tag numbers. | |
Wraps JSON.stringify with a serializer for bigints. | |
The details of the wallets. |
Type Aliases
Type Alias |
Description |
---|---|
The namespace of the wallet. | |