Implementing Post-Conditions
Learn how to add post-conditions to protect your Stacks transactions.
What you'll learn
Prerequisites
Constructing post-conditions
import { Pc } from '@stacks/transactions';
// Basic structure of a post-condition
const postCondition = Pc
.principal('STB44HYPYAT2BB2QE513NSP81HTMYWBJP02HPGK6')
.willSendEq(1000)
.ustx();Available transfer methods
STX and fungible token methods
Asset type methods
NFT-specific methods
Setting the post-condition mode
Common implementation patterns
STX transfer post-conditions
Fungible token post-conditions
NFT transfer post-conditions
Semi-fungible token (SFT) post-conditions
Multiple post-conditions
Last updated
Was this helpful?