Skip to content
On this page

Get Info Methods

Get stake info

Method getStakeInfo shows information about current stake. undefined value means that account is not registered.

typescript
const cardano = new Cardano('preview', account.__config.paymentAddress, blockForstProjectID);
console.log(await cardano.getStakeInfo());

Method getDelegations shows list of delegations of current account.

typescript
const cardano = new Cardano('preview', account.__config.paymentAddress, blockForstProjectID);
console.log(await cardano.getDelegations());

Method getStakeActivation shows more information about delegation status and time to active stake.

typescript
const cardano = new Cardano('preview', account.__config.paymentAddress, blockForstProjectID);
console.log(await cardano.getStakeActivation());

Method getRewardHistory shows users rewards history per epochs.

typescript
const cardano = new Cardano('preview', account.__config.paymentAddress, blockForstProjectID);
console.log(await cardano.getRewardHistory());

Method getPoolsInfos returns info about specified pools.

typescript
const cardano = new Cardano('preview', account.__config.paymentAddress, blockForstProjectID);
console.log(await cardano.getPoolsInfos(['pool...']));

Method getPoolIDs returns list of internal pools.

typescript
const cardano = new Cardano('preview', account.__config.paymentAddress, blockForstProjectID);
console.log(await cardano.getPoolIDs());

Method isInternalPoolDelegation returns boolean value that shows is current pool delegation is to internal pool.

typescript
const cardano = new Cardano('preview', account.__config.paymentAddress, blockForstProjectID);
console.log(await cardano.isInternalPoolDelegation());