import { Utils } from "https://deno.land/x/lucid@0.10.1/src/utils/utils.ts";
Constructors
new
Utils(lucid: Lucid)Properties
private
lucid: LucidMethods
credentialToAddress(paymentCredential: Credential, stakeCredential?: Credential): Address
credentialToRewardAddress(stakeCredential: Credential): RewardAddress
datumToHash(datum: Datum): DatumHash
generateSeedPhrase(): string
getAddressDetails(address: string): AddressDetails
Address can be in Bech32 or Hex.
keyHashToCredential(keyHash: KeyHash): Credential
mintingPolicyToId(mintingPolicy: MintingPolicy): PolicyId
nativeScriptFromJson(nativeScript: NativeScript): Script
Convert a native script from Json to the Hex representation. It follows this Json format: https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md
paymentCredentialOf(address: Address): Credential
scriptHashToCredential(scriptHash: ScriptHash): Credential
slotToUnixTime(slot: Slot): UnixTime
stakeCredentialOf(rewardAddress: RewardAddress): Credential
unixTimeToSlot(unixTime: UnixTime): Slot
validatorToAddress(validator: SpendingValidator, stakeCredential?: Credential): Address
validatorToScriptHash(validator: Validator): ScriptHash