Skip to main content
Version: Next

sdk.core

Home > @blaze-cardano/sdk > Core

Core namespace

Classes

Class

Description

UTxOSelectionError

Functions

Function

Description

addressFromCredential(network, credential)

Function to create an Address from a credential.

addressFromCredentials(network, paymentCredential, delegationCredential)

Function to create an Address from payment and optional delegation credentials.

addressFromValidator(network, validator)

Function to create an Address from a validator script.

Bip32PrivateKeyHex(value)

blake2b_224(data)

Function to compute the BLAKE2b-224 hash of a hex blob.

blake2b_256(data)

Function to compute the BLAKE2b-256 hash of a hex blob.

derivePublicKey(privateKey)

Function to derive the public key from a private key.

Ed25519KeyHashHex(value)

Ed25519PrivateExtendedKeyHex(value)

Ed25519PrivateNormalKeyHex(value)

Ed25519PublicKeyHex(value)

Ed25519SignatureHex(value)

fromHex(hexString)

Converts a hex string to a byte array.

getBurnAddress(network)

getPaymentAddress(address)

Converts an Address to a PaymentAddress.

HashAsPubKeyHex(hash)

Converts a Hash28ByteBase16 to an Ed25519PublicKeyHex format.

PaymentAddress(value)

PolicyId(value)

PolicyIdToHash(policy)

Converts a PolicyId to a Hash28ByteBase16 format.

prettify(data, indent)

setInConwayEra(value)

Helper function to set the serialization era.

sha2_256(data)

Function to compute the SHA2-256 hash of a hex blob.

sha3_256(data)

Function to compute the SHA3-256 hash of a hex blob.

signMessage(message, privateKey)

Function to sign a message with a private key.

Slot(value)

toHex(byteArray)

Converts a byte array to a hex string.

Interfaces

Interface

Description

MinFeeReferenceScripts

ProtocolParameters

Cardano ledger protocol parameters.

SlotConfig

The SlotConfig interface defines the configuration for slots. SlotConfig {number} zeroTime - The zero time for slot calculation. {number} zeroSlot - The zero slot. {number} slotLength - The slot length.

Namespaces

Namespace

Description

NativeScripts

Variables

Variable

Description

Address

addressFromBech32

Function to create an Address from a Bech32 string.

AddressType

AssetId

AssetName

AuxiliaryData

Bip32PrivateKey

Bip32PublicKey

CborReader

CborReaderState

CborSet

Exporting CborSet from C.Serialization.

CborWriter

Certificate

CertificateType

ConstrPlutusData

Costmdls

CostModel

Credential

CredentialType

Datum

DatumHash

DatumKind

Ed25519PrivateKey

Ed25519PublicKey

Ed25519Signature

entropyToMnemonic

Function to convert entropy to a mnemonic.

ExUnits

generateMnemonic

Function to generate a mnemonic.

hardCodedProtocolParams

Hard coded protocol parameters for the Cardano ledger. These parameters are used as default values in the absence of network-provided parameters.

Hash

Hash28ByteBase16

Hash32ByteBase16

Metadata

Metadatum

MetadatumList

MetadatumMap

mnemonicToEntropy

Function to convert a mnemonic to entropy.

NativeScript

NetworkId

PlutusData

PlutusDataKind

PlutusLanguageVersion

PlutusList

PlutusMap

PlutusV1Script

PlutusV2Script

PlutusV3Script

PoolId

Redeemer

RedeemerPurpose

Redeemers

RedeemerTag

RewardAccount

RewardAddress

Script

ScriptAll

ScriptAny

ScriptNOfK

ScriptPubkey

SLOT_CONFIG_NETWORK

StakeDelegation

StakeDeregistration

StakeRegistration

TimelockExpiry

TimelockStart

Transaction

TransactionBody

TransactionId

TransactionInput

TransactionMetadatumKind

TransactionOutput

TransactionUnspentOutput

TransactionWitnessSet

TxCBOR

Value

VkeyWitness

Type Aliases

Type Alias

Description

Address

AddressType

AssetId

AssetName

AuxiliaryData

Bip32PrivateKey

Bip32PrivateKeyHex

Bip32PublicKey

CborReader

CborReaderState

CborSet

Type definition for CborSet.

CborWriter

Certificate

CertificateType

ConstrPlutusData

Costmdls

CostModel

CostModels

Credential

CredentialCore

CredentialType

Datum

DatumHash

Ed25519KeyHashHex

Ed25519PrivateExtendedKeyHex

Ed25519PrivateKey

Ed25519PrivateNormalKeyHex

Ed25519PublicKey

Ed25519PublicKeyHex

Ed25519Signature

Ed25519SignatureHex

Evaluator

ExUnits

Hash

Hash28ByteBase16

Hash32ByteBase16

Metadata

Metadatum

MetadatumList

MetadatumMap

NativeScript

NetworkId

PaymentAddress

PlutusData

PlutusDataKind

PlutusLanguageVersion

PlutusList

PlutusMap

PlutusV1Script

PlutusV2Script

PlutusV3Script

PolicyId

PoolId

Prettier

Redeemer

RedeemerPurpose

Redeemers

RedeemerTag

RewardAccount

RewardAddress

Script

ScriptAll

ScriptAny

ScriptHash

ScriptNOfK

ScriptPubkey

SelectionPhase

Slot

StakeDelegation

StakeDelegationCertificate

StakeDeregistration

StakeRegistration

TimelockExpiry

TimelockStart

TokenMap

Transaction

TransactionBody

TransactionId

TransactionInput

TransactionInputSet

TransactionMetadatumKind

TransactionOutput

TransactionUnspentOutput

TransactionWitnessPlutusData

TransactionWitnessSet

TxCBOR

Value

VkeyWitness