Programmable Transaction Blocks
Programmable transaction blocks (PTBs) let you compose multiple commands into a single atomic transaction on Sui. Commands can transfer objects, call Move functions, split and merge coins, and more, with results from one command flowing into the next.
What is a PTB?
Programmable transaction blocks are a group of commands that complete a transaction on Sui.
Building Transactions
Using the Sui TypeScript SDK, you can create programmable transaction blocks to perform multiple commands in a single transaction.
Inputs and Results
Programmable transaction blocks accept two types of inputs (objects and pure values) and produce results that subsequent commands can use.
PTB Template
A minimal starter template for building a programmable transaction block with the Sui TypeScript SDK, with separate backend keypair and frontend wallet examples.