sui client ptb

Create, sign and execute programmable transaction blocks. More information: https://docs.sui.io/references/cli/ptb.

sui client ptb --move-call p::m::f "<{{type}}>" args

sui client ptb --make-move-vec "<u64>" "[1000,2000]"

sui client ptb --split-coins gas "[1000]" --assign new_coins --transfer-objects "[new_coins]" @{{address}}

sui client ptb --transfer-objects "[{{object_id}}]" @{{address}}

sui client ptb --move-call sui::tx_context::sender --assign sender --publish "." --assign upgrade_cap --transfer-objects "[upgrade_cap]" sender