Properties

The Clarinet SDK provides a couple properties that can be used to interact with the simnet.

Installation

npm install @hirosystems/clarinet-sdk

blockHeight

Returns the current block height of the simnet.

const simnet = await initSimnet();
const currentBlockHeight = simnet.blockHeight;

deployer

Returns the default deployer address as defined in the project file.

const simnet = await initSimnet();
const currentDeployerAddress = simnet.deployer;

currentEpoch

Returns the current epoch of the simnet.

This represents the Stacks blockchain's progress through discrete time periods, cycles, or upgrades.

const simnet = await initSimnet();
const epoch = simnet.currentEpoch;

Last updated on