Re-exports§
pub use crate::*;
Modules§
Macros§
- from_
bytes - from_
hex - impl_
deserialize_ for_ wrapped_ tuple - impl_
hash_ type - impl_
signature - impl_
to_ from - to_
bytes - to_
from_ bytes - to_
from_ json - to_hex
Structs§
- Address
- Anchor
- Anchor
Data Hash - Asset
Name - Asset
Names - Assets
- Auxiliary
Data - Auxiliary
Data Hash - Auxiliary
Data Set - Base
Address - BigInt
- BigNum
- Bip32
Private Key - Bip32
Public Key - Block
- Block
Hash - Bootstrap
Witness - Bootstrap
Witnesses - Byron
Address - CBOR
Read Len - Certificate
- Certificates
- Certificates
Builder - Change
Config - Committee
- Committee
Cold Resign - Committee
HotAuth - Constitution
- Constr
Plutus Data - Cost
Model - Costmdls
- Credential
- Credentials
- DNSRecord
AorAAAA - DNSRecordSRV
- DRep
- DRep
Deregistration - DRep
Registration - DRep
Update - DRep
Voting Thresholds - Data
Cost - Data
Hash - Datum
Source - Deserialize
Error - Ed25519
KeyHash - Ed25519
KeyHashes - Ed25519
Signature - Enterprise
Address - ExUnit
Prices - ExUnits
- Fixed
Block - Read only view of a block with more strict structs for hash sensitive structs. Warning: This is experimental and may be removed or changed in the future.
- Fixed
Transaction - Fixed
Transaction Bodies - Warning: This is experimental and may be removed or changed in the future.
- Fixed
Transaction Body - Read-only view of a transaction body. With correct hash and original bytes. Warning: This is experimental and may be removed in the future.
- Fixed
TxWitnesses Set - A set of witnesses for a transaction. Keeps original bytes to allow for safe roundtrip serialization. That helps to avoid incorrect script data hash after adding a vkey or bootstrap witness. You can add a vkey witness or a bootstrap witness to the set. Or get TransactionWitnessSet to read fields.
- Fixed
Versioned Block - Warning: This is experimental and may be removed in the future.
- General
Transaction Metadata - Genesis
Delegate Hash - Genesis
Hash - Genesis
Hashes - Genesis
KeyDelegation - Governance
Action - Governance
Action Id - Governance
Action Ids - Hard
Fork Initiation Action - Header
- Header
Body - Info
Action - Inputs
Required Witness - Int
- Ipv4
- Ipv6
- JsError
- KESSignature
- KESVKey
- Language
- Languages
- Legacy
Daedalus Private Key - Linear
Fee - MIRTo
Stake Credentials - Malformed
Address - Metadata
List - Metadata
Map - MinOutput
AdaCalculator - Mint
- Mint
Assets - Mint
Builder - Mint
Witness - Mints
Assets - Move
Instantaneous Reward - Move
Instantaneous Rewards Cert - Multi
Asset - Multi
Host Name - Native
Script - Native
Script Source - Native
Scripts - Network
Id - Network
Info - NewConstitution
Action - NoConfidence
Action - Nonce
- Operational
Cert - Output
Datum - Parameter
Change Action - Plutus
Data - Plutus
List - Plutus
Map - Plutus
MapValues - Plutus
Script - Plutus
Script Source - Plutus
Scripts - Plutus
Witness - Plutus
Witnesses - Pointer
- Pointer
Address - Pool
Metadata - Pool
Metadata Hash - Pool
Params - Pool
Registration - Pool
Retirement - Pool
Voting Thresholds - Private
Key - Proposed
Protocol Parameter Updates - Protocol
Param Update - Protocol
Version - Public
Key - ED25519 key used as public key
- Public
Keys - Redeemer
- Redeemer
Tag - Redeemers
- Relay
- Relays
- Reward
Address - Reward
Addresses - Script
All - Script
Any - Script
Data Hash - Script
Hash - Script
Hashes - ScriptN
OfK - Script
Pubkey - Script
Ref - Single
Host Addr - Single
Host Name - Stake
AndVote Delegation - Stake
Delegation - Stake
Deregistration - Stake
Registration - Stake
Registration AndDelegation - Stake
Vote Registration AndDelegation - Strings
- Timelock
Expiry - Timelock
Start - Transaction
- Transaction
Batch - Transaction
Batch List - Transaction
Bodies - Transaction
Body - Transaction
Builder - Transaction
Builder Config - Transaction
Builder Config Builder - Transaction
Hash - Transaction
Input - Transaction
Inputs - Transaction
Metadatum - Transaction
Metadatum Labels - Transaction
Output - Transaction
Output Amount Builder - Transaction
Output Builder - We introduce a builder-pattern format for creating transaction outputs This is because:
- Transaction
Outputs - Transaction
Unspent Output - Transaction
Unspent Outputs - Transaction
Witness Set - Transaction
Witness Sets - Treasury
Withdrawals - Treasury
Withdrawals Action - TxInputs
Builder - URL
- Unit
Interval - Update
- Update
Committee Action - VRFCert
- VRFKey
Hash - VRFVKey
- Value
- Value
Shortage - Versioned
Block - Vkey
- Vkeys
- Vkeywitness
- Vkeywitnesses
- Vote
Delegation - Vote
Registration AndDelegation - Voter
- Voters
- Voting
Builder - Voting
Procedure - Voting
Procedures - Voting
Proposal - Voting
Proposal Builder - Voting
Proposals - Withdrawals
- Withdrawals
Builder
Enums§
- Address
Kind - Block
Era - Cbor
Container Type - Cbor
SetType - Certificate
Enum - Certificate
Kind - Coin
Selection StrategyCI P2 - Cred
Kind - Cred
Type - DRep
Kind - Data
Option - Datum
Source Enum - Deserialize
Failure - Governance
Action Kind - Header
Leader Cert Enum - Key
- Language
Kind - MIREnum
- MIRKind
- MIRPot
- Metadata
Json Schema - Native
Script Enum - Native
Script Kind - Network
IdKind - Plutus
Data Enum - Plutus
Data Kind - Plutus
Datum Schema - JSON <-> PlutusData conversion schemas. Follows ScriptDataJsonSchema in cardano-cli defined at: https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
- Redeemer
TagKind - Relay
Enum - Relay
Kind - Script
Hash Namespace - Each new language uses a different namespace for hashing its script This is because you could have a language where the same bytes have different semantics So this avoids scripts in different languages mapping to the same hash Note that the enum value here is different than the enum value for deciding the cost model of a script
- Script
Schema - Used to choosed the schema for a script JSON string
- Transaction
Metadatum Kind - Transaction
Sets State - Vote
Kind - Voter
Kind
Functions§
- calculate_
ex_ units_ ceil_ cost - create_
send_ all - decode_
arbitrary_ bytes_ from_ metadatum - decode_
metadatum_ to_ json_ str - decode_
metadatum_ to_ json_ value - decode_
plutus_ datum_ to_ json_ str - decode_
plutus_ datum_ to_ json_ value - decrypt_
with_ password - encode_
arbitrary_ bytes_ as_ metadatum - encode_
json_ str_ to_ metadatum - encode_
json_ str_ to_ native_ script - Receives a script JSON string and returns a NativeScript. Cardano Wallet and Node styles are supported.
- encode_
json_ str_ to_ plutus_ datum - encode_
json_ value_ to_ metadatum - encode_
json_ value_ to_ plutus_ datum - encrypt_
with_ password - from_
bytes - get_
deposit - get_
implicit_ input - has_
transaction_ set_ tag - Returns the state of the transaction sets. If all sets have a tag, it returns AllSetsHaveTag. If all sets have no tag, it returns AllSetsHaveNoTag. If there is a mix of tagged and untagged sets, it returns MixedSets. This function is useful for checking if a transaction might be signed by a hardware wallet. And for checking which parameter should be used in a hardware wallet api. WARNING this function will be deleted after all tags for set types will be mandatory. Approx after next hf
- hash_
auxiliary_ data - hash_
plutus_ data - hash_
script_ data - internal_
get_ deposit - internal_
get_ implicit_ input - make_
daedalus_ bootstrap_ witness - make_
icarus_ bootstrap_ witness - make_
vkey_ witness - min_
ada_ for_ output - returns minimal amount of ada for the output for case when the amount is included to the output
- min_fee
- min_
fee_ for_ size - min_
ref_ script_ fee - min_
script_ fee - to_
bigint - to_
bytes