Skip to main content

TxMetadata

@harmoniclabs/cardano-ledger-tsDocs


@harmoniclabs/cardano-ledger-ts / TxMetadata

Class: TxMetadata

Implements

  • ToCbor
  • ToJson

Constructors

new TxMetadata()

new TxMetadata(metadata): TxMetadata

Parameters

metadata: ITxMetadata

Returns

TxMetadata

Defined in

src/tx/metadata/TxMetadata.ts:19

Properties

metadata

readonly metadata: ITxMetadataStr

Defined in

src/tx/metadata/TxMetadata.ts:17

Methods

toCbor()

toCbor(): CborString

Returns

CborString

Implementation of

ToCbor.toCbor

Defined in

src/tx/metadata/TxMetadata.ts:49


toCborObj()

toCborObj(): CborObj

Returns

CborObj

Implementation of

ToCbor.toCborObj

Defined in

src/tx/metadata/TxMetadata.ts:53


toJson()

toJson(): any

Returns

any

Implementation of

ToJson.toJson

Defined in

src/tx/metadata/TxMetadata.ts:92


fromCbor()

static fromCbor(cStr): TxMetadata

Parameters

cStr: CanBeCborString

Returns

TxMetadata

Defined in

src/tx/metadata/TxMetadata.ts:65


fromCborObj()

static fromCborObj(cObj): TxMetadata

Parameters

cObj: CborObj

Returns

TxMetadata

Defined in

src/tx/metadata/TxMetadata.ts:69