Working with Programmable Transaction Blocks
Programmable transaction blocks (PTBs) are key elements of the Sui ecosystem. Understanding PTBs and using them correctly are key fundamentals to creating efficient and cost-effective smart contracts. See Programmable Transaction Blocks to learn about the structure of PTBs on Sui.
The topics in this section focus on effectively utilizing PTBs in your smart contracts.
Building Programmable Transaction Blocks
Using the Sui TypeScript SDK, you can create programmable transaction blocks to perform multiple commands in a single transaction.
Coin Management
Because Sui uses coins as owned objects for transactions, you need to explicitly manage them in your programmable transaction block development.
Simulating References
Use the borrow module in the Sui framework to include objects by reference in your programmable transaction blocks.