Skip to main content

PoolParams

@harmoniclabs/cardano-ledger-tsDocs


@harmoniclabs/cardano-ledger-ts / PoolParams

Class: PoolParams

Implements

Constructors

new PoolParams()

new PoolParams(params): PoolParams

Parameters

params: IPoolParams

Returns

PoolParams

Defined in

src/ledger/PoolParams.ts:81

Properties

cost

readonly cost: bigint

Implementation of

ITypedPoolParams.cost

Defined in

src/ledger/PoolParams.ts:74


margin

readonly margin: CborPositiveRational

Implementation of

ITypedPoolParams.margin

Defined in

src/ledger/PoolParams.ts:75


metadata?

readonly optional metadata: ITypedPoolParamsMetadata

Implementation of

ITypedPoolParams.metadata

Defined in

src/ledger/PoolParams.ts:79


operator

readonly operator: PoolKeyHash

Implementation of

ITypedPoolParams.operator

Defined in

src/ledger/PoolParams.ts:71


owners

readonly owners: PubKeyHash[]

Implementation of

ITypedPoolParams.owners

Defined in

src/ledger/PoolParams.ts:77


pledge

readonly pledge: bigint

Implementation of

ITypedPoolParams.pledge

Defined in

src/ledger/PoolParams.ts:73


relays

readonly relays: PoolRelay[]

Implementation of

ITypedPoolParams.relays

Defined in

src/ledger/PoolParams.ts:78


rewardAccount

readonly rewardAccount: StakeAddress<StakeAddressType>

Implementation of

ITypedPoolParams.rewardAccount

Defined in

src/ledger/PoolParams.ts:76


vrfKeyHash

readonly vrfKeyHash: VRFKeyHash

Implementation of

ITypedPoolParams.vrfKeyHash

Defined in

src/ledger/PoolParams.ts:72

Methods

toCborObjArray()

toCborObjArray(): CborObj[]

Returns

CborObj[]

Defined in

src/ledger/PoolParams.ts:190


toJson()

toJson(): object

Returns

object

cost

cost: string

margin

margin: number

metadata

metadata: undefined | object

operator

operator: string

owners

owners: string[]

pledge

pledge: string

relays

relays: (object | object | object)[]

rewardAccount

rewardAccount: StakeAddress<StakeAddressType>

vrfKeyHash

vrfKeyHash: string

Defined in

src/ledger/PoolParams.ts:263


fromCborObjArray()

static fromCborObjArray(__namedParameters): PoolParams

Parameters

__namedParameters: CborObj[]

Returns

PoolParams

Defined in

src/ledger/PoolParams.ts:210