Standard libraries overview
Some libraries (also referred to as standard libraries or stdlibs) come bundled with Tact compiler, but aren’t automatically included to your project until explicitly made to.
To import any standard library, use the import
keyword followed by the name of that library in a string, like so:
List of standard libraries:
Library | Description | Commonly used APIs |
---|---|---|
@stdlib/config | Config and elector address retrieval. | getConfigAddress() , getElectorAddress() |
@stdlib/content | Encoding off-chain link strings to a Cell . | createOffchainContent() |
@stdlib/deploy | Unified mechanism for deployments. | Deployable , FactoryDeployable |
@stdlib/dns | Resolution of DNS names. | DNSResolver , dnsInternalVerify() |
@stdlib/ownable | Traits for ownership management. | Ownable , OwnableTransferable |
@stdlib/stoppable | Traits that allow contract stops. Requires @stdlib/ownable. | Stoppable , Resumable |