Skip to main content

AuxiliaryData

@harmoniclabs/cardano-ledger-tsDocs


@harmoniclabs/cardano-ledger-ts / AuxiliaryData

Class: AuxiliaryData

Implements

Constructors

new AuxiliaryData()

new AuxiliaryData(auxData): AuxiliaryData

Parameters

auxData: IAuxiliaryData

Returns

AuxiliaryData

Defined in

src/tx/AuxiliaryData/AuxiliaryData.ts:36

Properties

hash

readonly hash: AuxiliaryDataHash

Defined in

src/tx/AuxiliaryData/AuxiliaryData.ts:34


metadata?

readonly optional metadata: TxMetadata

Implementation of

IAuxiliaryData.metadata

Defined in

src/tx/AuxiliaryData/AuxiliaryData.ts:29


nativeScripts?

readonly optional nativeScripts: Script<NativeScript>[]

Implementation of

IAuxiliaryData.nativeScripts

Defined in

src/tx/AuxiliaryData/AuxiliaryData.ts:30


plutusV1Scripts?

readonly optional plutusV1Scripts: Script<PlutusV1>[]

Implementation of

IAuxiliaryData.plutusV1Scripts

Defined in

src/tx/AuxiliaryData/AuxiliaryData.ts:31


plutusV2Scripts?

readonly optional plutusV2Scripts: Script<PlutusV2>[]

Implementation of

IAuxiliaryData.plutusV2Scripts

Defined in

src/tx/AuxiliaryData/AuxiliaryData.ts:32

Methods

toCbor()

toCbor(): CborString

Returns

CborString

Implementation of

ToCbor.toCbor

Defined in

src/tx/AuxiliaryData/AuxiliaryData.ts:167


toCborObj()

toCborObj(): CborTag

Returns

CborTag

Implementation of

ToCbor.toCborObj

Defined in

src/tx/AuxiliaryData/AuxiliaryData.ts:171


toJson()

toJson(): object

Returns

object

metadata

metadata: any

nativeScripts

nativeScripts: undefined | (ScriptSignature | ScriptAll | ScriptAny | ScriptAtLeast | ScriptAfter | ScriptBefore | object)[]

plutusV1Scripts

plutusV1Scripts: undefined | (ScriptSignature | ScriptAll | ScriptAny | ScriptAtLeast | ScriptAfter | ScriptBefore | object)[]

plutusV2Scripts

plutusV2Scripts: undefined | (ScriptSignature | ScriptAll | ScriptAny | ScriptAtLeast | ScriptAfter | ScriptBefore | object)[]

Implementation of

ToJson.toJson

Defined in

src/tx/AuxiliaryData/AuxiliaryData.ts:287


fromCbor()

static fromCbor(cStr): AuxiliaryData

Parameters

cStr: CanBeCborString

Returns

AuxiliaryData

Defined in

src/tx/AuxiliaryData/AuxiliaryData.ts:200


fromCborObj()

static fromCborObj(cObj): AuxiliaryData

Parameters

cObj: CborObj

Returns

AuxiliaryData

Defined in

src/tx/AuxiliaryData/AuxiliaryData.ts:204