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 currentBlockHeight = simnet.blockHeight;
deployer
Returns the default deployer address as defined in the project file.
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 epoch = simnet.currentEpoch;
Last updated on 5/20/2024