You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Essentially, the `postConditionMode` is what tells the Stacks node whether to require (`Deny`) or ignore (`Allow`) the post-conditions when evaluating the transaction.
88
88
89
-
## Legacy methods/enums
89
+
## Usage examples
90
90
91
-
Legacy methods and enums can be used interchangeably with the builder methods.
91
+
### Amount uSTX sent
92
92
93
-
<Callouttitle="Note">
94
-
If you prefer the legacy methods over the `Pc` builder approach, you can import them from the `@stacks/transactions` package.
95
-
</Callout>
93
+
Construct a post-condition for a certain amount of uSTX to be sent.
Construct a post-condition for sending / not-sending a specific SFT (Semi-fungible token).
205
130
206
-
Construct a post-condition for sending / not-sending a specific SFT (semi-fungible token).
207
-
208
-
Semi-Fungible-Tokens (SFTs) are an innovative way to bring multiple ownership of a single unique digital item. SFTs are a combination of an NFT portion and an FT portion: where a unique tuple represents the NFT id and the amount units represented as fungible tokens. Therefore, at least two post-conditions are needed to handle the transfer of an SFT.
209
-
210
-
Check out the SFT starter contract template on the Hiro Platform.
Post-conditions can only ensure the transfer of assets and cannot guarantee the end-state after a transaction. To learn more, read the [post-conditions](/stacks/stacks.js/concepts/post-conditions) guide.
145
+
146
+
<Callouttitle="Note">
147
+
The previous builders (`makeStandardSTXPostCondition`, `makeStandardFungiblePostCondition`, etc) were removed in `v7.0.0`.
253
148
</Callout>
254
149
255
150
---
@@ -265,6 +160,6 @@ Post-conditions can only ensure the transfer of assets and cannot guarantee the
265
160
<Card
266
161
href="/stacks/stacks.js/packages/transactions"
267
162
title="API References"
268
-
description="Dive into the API references for Stacks.js."
163
+
description="Dive deeper into the API references for the Stacks.js transactions package."
0 commit comments