Skip to content

Commit 7cb4b6b

Browse files
committed
withdrawals
1 parent a4c89b1 commit 7cb4b6b

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

doc/CHEATSHEET.md

+12-10
Original file line numberDiff line numberDiff line change
@@ -313,16 +313,6 @@ txSkelTemplate
313313
* ``paysPK ... `withStakingCredential` ...``
314314
* ``paysScript... ... `withStakingCredential` ...``
315315

316-
### Spend a referenced script output
317-
318-
```haskell
319-
txSkelTemplate
320-
{ ...
321-
txSkelIns = Map.fromList [(scriptTxOutRefToSpend, txSkelSomeRedeemerForReferencedScript txOutRefCarryingReferenceScript redeemer), ...],
322-
...
323-
}
324-
```
325-
326316
## Balancing
327317

328318
### Choose which wallet provides UTxOs to balance a transaction
@@ -560,3 +550,15 @@ txSkelTemplate
560550
{ txOptAnchorResolution = AnchorResolutionHttp
561551
}
562552
```
553+
554+
## Withdrawals
555+
556+
Withdrawals allow to execute scripts with the "rewarding" purpose but do not
557+
work properly in terms of withdrawn values.
558+
559+
```haskell
560+
txSkelTemplate
561+
{ txSkelWithdrawals = scriptWithdrawal withdrawalScript someRedeemer someAdaValue,
562+
...
563+
}
564+
```

0 commit comments

Comments
 (0)