Skip to main content

Anchor

@harmoniclabs/cardano-ledger-tsDocs


@harmoniclabs/cardano-ledger-ts / Anchor

Class: Anchor

Implements

Constructors

new Anchor()

new Anchor(__namedParameters): Anchor

Parameters

__namedParameters: IAnchor

Returns

Anchor

Defined in

src/governance/Anchor.ts:26

Properties

anchorDataHash

readonly anchorDataHash: Hash32

Implementation of

IAnchor.anchorDataHash

Defined in

src/governance/Anchor.ts:24


url

readonly url: string

Implementation of

IAnchor.url

Defined in

src/governance/Anchor.ts:23

Methods

toCbor()

toCbor(): CborString

Returns

CborString

Defined in

src/governance/Anchor.ts:36


toCborObj()

toCborObj(): CborObj

Returns

CborObj

Defined in

src/governance/Anchor.ts:40


toJson()

toJson(): object

Returns

object

anchorDataHash

anchorDataHash: string

url

url: string

Defined in

src/governance/Anchor.ts:62


fromCborObj()

static fromCborObj(cbor): Anchor

Parameters

cbor: CborObj

Returns

Anchor

Defined in

src/governance/Anchor.ts:48