SDK Reference
Installation
npm install @stacks/clarinet-sdkInitialize simulated network
initSimnet
initSimnet(manifestPath?: string): Promise<Simnet>Parameter
Type
Description
Simnet properties
blockHeight
deployer
currentEpoch
Account management
getAccounts
Asset balances
getAssetsMap
Read contract state
getDataVar
Parameter
Type
Description
getMapEntry
Parameter
Type
Description
Call contract functions
callReadOnlyFn
Parameter
Type
Description
callPublicFn
callPrivateFn
Transfer STX
Parameter
Type
Description
Deploy contracts
Parameter
Type
Description
Block mining
mineBlock
mineEmptyBlock
mineEmptyBlocks
Utility methods
runSnippet
getContractsInterfaces
getContractSource
getContractAST
Custom matchers
Response matchers
toBeOk
toBeErr
toBeSome
toBeNone
Value matchers
toBeBool
toBeInt
toBeUint
toBeAscii
toBeUtf8
toBePrincipal
toBeBuff
toBeList
toBeTuple
Type checking
toHaveClarityType
Event matchers
toContainEqual
Last updated
Was this helpful?