Skip to main content

StakeCredentials

@harmoniclabs/cardano-ledger-tsDocs


@harmoniclabs/cardano-ledger-ts / StakeCredentials

Class: StakeCredentials<T>

Type Parameters

T extends StakeCredentialsType = StakeCredentialsType

Implements

  • ToCbor
  • ToData

Constructors

new StakeCredentials()

new StakeCredentials<T>(type, hash): StakeCredentials<T>

Parameters

type: T

hash: StakeHash<T>

Returns

StakeCredentials<T>

Defined in

src/credentials/StakeCredentials.ts:27

Properties

hash

readonly hash: StakeHash<T>

Defined in

src/credentials/StakeCredentials.ts:25


type

readonly type: T

Defined in

src/credentials/StakeCredentials.ts:24

Methods

clone()

clone(): StakeCredentials<T>

Returns

StakeCredentials<T>

Defined in

src/credentials/StakeCredentials.ts:74


toCbor()

toCbor(): CborString

Returns

CborString

Implementation of

ToCbor.toCbor

Defined in

src/credentials/StakeCredentials.ts:112


toCborObj()

toCborObj(): CborObj

Returns

CborObj

Implementation of

ToCbor.toCborObj

Defined in

src/credentials/StakeCredentials.ts:117


toData()

toData(version?): DataConstr

Parameters

version?: ToDataVersion

Returns

DataConstr

Implementation of

ToData.toData

Defined in

src/credentials/StakeCredentials.ts:82


toJson()

toJson(): object | object

Returns

object | object

Defined in

src/credentials/StakeCredentials.ts:164


fromCbor()

static fromCbor(cObj): StakeCredentials<StakeCredentialsType>

Parameters

cObj: CanBeCborString

Returns

StakeCredentials<StakeCredentialsType>

Defined in

src/credentials/StakeCredentials.ts:130


fromCborObj()

static fromCborObj(cObj): StakeCredentials<StakeCredentialsType>

Parameters

cObj: CborObj

Returns

StakeCredentials<StakeCredentialsType>

Defined in

src/credentials/StakeCredentials.ts:134