Cardano Module

Cardano Module

Asset

Represents a custom asset in the Cardano blockchain.

FieldTypeLabelDescription
namebytesName of the custom asset.
quantityuint64Quantity of the custom asset.

AuxData

Auxiliary data not directly tied to the validation process

FieldTypeLabelDescription
metadataMetadatarepeatedList of auxiliary metadata elements.
scriptsScriptrepeatedList of auxiliary scripts.

BigInt

Represents a big integer for Plutus data in Cardano.

Define the fields of BigInt based on your original Rust code

BoundedBytes

Represents a bounded bytes for Plutus data in Cardano.

Define the fields of BoundedBytes based on your original Rust code

Certificate

Represents a certificate in Cardano.

FieldTypeLabelDescription
stake_registrationStakeCredentialStake registration certificate.
stake_deregistrationStakeCredentialStake deregistration certificate.
stake_delegationStakeDelegationCertStake delegation certificate.
pool_registrationPoolRegistrationCertPool registration certificate.
pool_retirementPoolRetirementCertPool retirement certificate.
genesis_key_delegationGenesisKeyDelegationCertGenesis key delegation certificate.
move_instantaneous_rewards_certMoveInstantaneousRewardCertMove instantaneous rewards certificate.

Collateral

Represents the collateral information for a transaction.

FieldTypeLabelDescription
collateralTxInputrepeatedCollateral inputs for the transaction.
collateral_returnTxOutputCollateral return in case of script failure.
total_collateraluint64Total amount of collateral.

Constr

Represents a constructor for Plutus data in Cardano.

Define the fields of Constr based on your original Rust code

GenesisKeyDelegationCert

Represents a genesis key delegation certificate in Cardano.

FieldTypeLabelDescription
genesis_hashbytesGenesis hash.
genesis_delegate_hashbytesGenesis delegate hash.
vrf_keyhashbytesVRF key hash.

Metadata

FieldTypeLabelDescription
labeluint64
valueMetadatum

Metadatum

FieldTypeLabelDescription
intint64
bytesbytes
textstring
arrayMetadatumArray
mapMetadatumMap

MetadatumArray

FieldTypeLabelDescription
itemsMetadatumrepeated

MetadatumMap

FieldTypeLabelDescription
pairsMetadatumPairrepeated

MetadatumPair

FieldTypeLabelDescription
keyMetadatum
valueMetadatum

MoveInstantaneousRewardCert

Represents a move instantaneous reward certificate in Cardano.

Define the fields of MoveInstantaneousReward based on your original Rust code

Multiasset

Represents a multi-asset group in the Cardano blockchain.

FieldTypeLabelDescription
policy_idbytesPolicy ID governing the custom assets.
assetsAssetrepeatedList of custom assets.

NativeScript

Represents a native script in Cardano.

FieldTypeLabelDescription
script_pubkeybytesScript based on an address key hash.
script_allNativeScriptListScript that requires all nested scripts to be satisfied.
script_anyNativeScriptListScript that requires any of the nested scripts to be satisfied.
script_n_of_kScriptNOfKScript that requires k out of n nested scripts to be satisfied.
invalid_beforeuint64Slot number before which the script is invalid.
invalid_hereafteruint64Slot number after which the script is invalid.

NativeScriptList

Represents a list of native scripts.

FieldTypeLabelDescription
itemsNativeScriptrepeatedList of native scripts.

PlutusData

Represents a Plutus data item in Cardano.

FieldTypeLabelDescription
constrConstrConstructor.
mapPlutusDataMapMap of Plutus data.
big_intBigIntBig integer.
bounded_bytesBoundedBytesBounded bytes.
arrayPlutusDataArrayArray of Plutus data.

PlutusDataArray

Represents an array of Plutus data in Cardano.

FieldTypeLabelDescription
itemsPlutusDatarepeatedList of Plutus data items.

PlutusDataMap

Represents a map of Plutus data in Cardano.

FieldTypeLabelDescription
pairsPlutusDataPairrepeatedList of key-value pairs.

PlutusDataPair

Represents a key-value pair for Plutus data in Cardano.

FieldTypeLabelDescription
keyPlutusDataKey of the pair.
valuePlutusDataValue of the pair.

PoolMetadata

Represents pool metadata in Cardano.

Define the fields of PoolMetadata based on your original Rust code

PoolRegistrationCert

Represents a pool registration certificate in Cardano.

FieldTypeLabelDescription
operatorbytesOperator key hash.
vrf_keyhashbytesVRF key hash.
pledgeuint64Pledge amount.
costuint64Pool cost.
marginUnitIntervalPool margin.
reward_accountbytesReward account.
pool_ownersbytesrepeatedList of pool owner key hashes.
relaysRelayrepeatedList of relays.
pool_metadataPoolMetadataPool metadata.

PoolRetirementCert

Represents a pool retirement certificate in Cardano.

FieldTypeLabelDescription
pool_keyhashbytesPool key hash.
epochuint64Retirement epoch.

Redeemer

Redeemer information for a Plutus script.

FieldTypeLabelDescription
purposePurposePurpose of the redeemer.
datumPlutusDataPlutus data associated with the redeemer.

Relay

Represents a relay in Cardano.

Define the fields of Relay based on your original Rust code

Script

Represents a script in Cardano.

FieldTypeLabelDescription
nativeNativeScriptNative script.
plutus_v1bytesPlutus V1 script.
plutus_v2bytesPlutus V2 script.

ScriptNOfK

Represents a "k out of n" native script.

FieldTypeLabelDescription
kuint32The number of required satisfied scripts.
scriptsNativeScriptrepeatedList of native scripts.

StakeCredential

Represents a stake credential in Cardano.

FieldTypeLabelDescription
addr_key_hashbytesAddress key hash.
script_hashbytesScript hash.

StakeDelegationCert

Represents a stake delegation certificate in Cardano.

FieldTypeLabelDescription
stake_credentialStakeCredentialStake credential.
pool_keyhashbytesPool key hash.

Tx

Represents a transaction in the Cardano blockchain.

FieldTypeLabelDescription
inputsTxInputrepeatedList of transaction inputs
outputsTxOutputrepeatedList of transaction outputs
certificatesCertificaterepeatedList of certificates
withdrawalsWithdrawalrepeatedList of withdrawals
mintMultiassetrepeatedList of minted custom assets
reference_inputsTxInputrepeatedList of reference inputs
witnessesWitnessSetWitnesses that validte the transaction
collateralCollateralCollateral details in case of failed transaction
feeuint64Transaction fee in ADA
validityTxValidityValidity interval of the transaction
successfulboolFlag indicating whether the transaction was successful
auxiliaryAuxDataAuxiliary data not directly tied to the validation process

TxInput

Represents a transaction input in the Cardano blockchain.

FieldTypeLabelDescription
tx_hashbytesHash of the previous transaction.
output_indexuint32Index of the output in the previous transaction.
as_outputTxOutputContent of the input represented as output of the related transaction

TxOutput

Represents a transaction output in the Cardano blockchain.

FieldTypeLabelDescription
addressbytesAddress receiving the output.
coinuint64Amount of ADA in the output.
assetsMultiassetrepeatedAdditional native (non-ADA) assets in the output.
datumPlutusDataPlutus data associated with the output.
datum_hashbytesHash of the Plutus data.
scriptScriptScript associated with the output.
redeemerRedeemerRedeemer for the Plutus script.

TxValidity

Represents the validity interval of a transaction.

FieldTypeLabelDescription
startuint64Start of the validity interval.
ttluint64End of the validity interval (TTL: Time to Live).

UnitInterval

Represents a unit interval in Cardano.

Define the fields of UnitInterval based on your original Rust code

VKeyWitness

Represents a VKey witness used to sign a transaction.

FieldTypeLabelDescription
vkeybytesVerification key.
signaturebytesSignature generated using the associated private key.

Withdrawal

Represents a withdrawal from a reward account.

FieldTypeLabelDescription
reward_accountbytesAddress of the reward account.
coinuint64Amount of ADA withdrawn.

WitnessSet

Represents a set of witnesses that validate a transaction

FieldTypeLabelDescription
vkeywitnessVKeyWitnessrepeatedList of VKey witnesses.
scriptScriptrepeatedList of scripts.
plutus_datumsPlutusDatarepeatedList of Plutus data elements associated with the transaction.

Purpose

Purpose of the redeemer in a transaction.

NameNumberDescription
PURPOSE_UNSPECIFIED0
PURPOSE_SPEND1
PURPOSE_MINT2
PURPOSE_CERT3
PURPOSE_REWARD4