# Class: StakeHistory

A type to hold data for the StakeHistory sysvar.

# Table of contents

# Constructors

# Methods

# Constructors

# constructor

new StakeHistory()

# Defined in

internal.d.ts:447 (opens new window)

# Methods

# add

add(epoch, entry): void

# Parameters

Name Type
epoch bigint
entry StakeHistoryEntry

# Returns

void

# Defined in

internal.d.ts:449 (opens new window)


# get

get(epoch): StakeHistoryEntry

# Parameters

Name Type
epoch bigint

# Returns

StakeHistoryEntry

# Defined in

internal.d.ts:448 (opens new window)