ton-tact

Tact language for TON blockchain smart contracts — types, contracts, messages, send/receive, stdlib, and security.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ton-tact" with this command: npx skills add hairyf/blockchain-skills/hairyf-blockchain-skills-ton-tact

Skill is based on Tact (TON) v1.6.13, generated 2026-02-25.

Tact is a statically typed smart contract language for the TON blockchain. Contracts use message-based communication (receive/send), structs and messages for data, and traits for reuse. This skill focuses on agent-oriented usage: type system, contracts and receivers, sending/receiving messages, cells and serialization, standard libraries, and security practices.

Core references

TopicDescriptionReference
Type systemPrimitives, optionals, maps, structs, messages, contracts, traitscore-types
Contracts and traitsinit, parameters, receivers, getters, interfaces, BaseTraitcore-contracts
Structs and messagesDefinition, instantiation, toCell/fromCell, TL-B layoutcore-structs-messages
Receiving messagesreceive(), text/binary/slice receivers, order, external/bouncedcore-receive
Sending messagessend(), SendParameters, reply, forward, notify, cashback, deploy, emitcore-send
Cells, Builders, SlicesCell/Builder/Slice, beginCell, store/load, Struct/Message helperscore-cells
Message modeBase modes and optional flags (SendRemainingValue, SendIgnoreErrors, etc.)core-message-mode
Gas and feesgetStorageFee, getComputeFee, getForwardFee, setGasLimit, acceptMessagecore-gas
Context and statesender, context, myAddress, myBalance, now, inMsg, setData, commit, getConfigParam, nativeReservecore-context-state
AddressesnewAddress, contractAddress, forceBasechain, parseStdAddress, BasechainAddresscore-addresses
CryptographycheckSignature, sha256, keccak256, SignedBundlecore-crypto
StringsStringBuilder, beginString, beginComment, String extensions, Int toFloatStringcore-strings
Mathmin, max, abs, sign, sqrt, log, log2, pow, pow2, divc, muldivccore-math
Exit codesTVM/Tact exit codes, compute/action phases, developer range 256–65535core-exit-codes
Randomrandom, randomInt, getSeed, setSeed, nativeRandomize, nativeRandomizeLtcore-random
Debug and throwrequire, dump, throw, throwIf, throwUnlesscore-debug
Compile-timeaddress(), cell(), slice(), rawSlice(), ascii(), crc32(), ton()core-comptime
Message lifecycleReceive phase, compute phase, action phase (no revert)core-lifecycle

Features

TopicDescriptionReference
OptionalsT?, null, !!, constraints (no optional keys, no nested optionals)features-optionals
Mapsmap<K,V>, emptyMap(), get/set, allowed types, serializationfeatures-maps
initOf and deployinitOf, contractAddress, StateInit, send/deploy deploymentfeatures-initof-deploy
Standard libraries@stdlib/config, content, deploy, dns, ownable, stoppablefeatures-stdlib
Configurationtact.config.json — projects, options (debug, external, safety, mode)features-config
External messagesexternal(), acceptMessage, no sender/context, config externalfeatures-external
Constantsconst, virtual/abstract/override in traitsfeatures-constants

Best practices

TopicDescriptionReference
SecuritySensitive data, signed ints, exit codes, random, auth, replay, bounce, excess gasbest-practices-security
GasContract params, binary receivers, message/cashback/deploy, sender(), throwUnless, SignedBundlebest-practices-gas

Advanced

TopicDescriptionReference
Bounced messagesbounced<T>, 224-bit limit, fallback Slice receiver, unrecognized bouncesadvanced-bounced

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

openzeppelin-contracts

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

viem

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

ton

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

ton-blueprint

No summary provided by upstream source.

Repository SourceNeeds Review