Skip to content

Standard libraries overview

Some libraries (also referred to as standard libraries or stdlibs) come bundled with the Tact compiler but aren’t automatically included in your project until explicitly imported.

To import any standard library, use the import keyword followed by the name of that library in a string, like so:

// This would include everything from @stdlib/deploy into your codebase:
import "@stdlib/deploy";

List of standard libraries:

LibraryDescriptionCommonly used APIs
@stdlib/configRetrieval of config and elector addresses.getConfigAddress(), getElectorAddress()
@stdlib/contentEncoding off-chain link strings into a Cell.createOffchainContent()
@stdlib/deployUnified mechanism for deployments.Deprecated: Deployable, FactoryDeployable
@stdlib/dnsResolution of DNS names.DNSResolver, dnsInternalVerify()
@stdlib/ownableTraits for ownership management.Ownable, OwnableTransferable
@stdlib/stoppableTraits that allow contracts to be stopped. Requires @stdlib/ownable.Stoppable, Resumable