Skip to content

Commit

Permalink
withdrawals
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontin committed Sep 12, 2024
1 parent 86aef46 commit 1e2810f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions doc/CHEATSHEET.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,16 +313,6 @@ txSkelTemplate
* ``paysPK ... `withStakingCredential` ...``
* ``paysScript... ... `withStakingCredential` ...``

### Spend a referenced script output

```haskell
txSkelTemplate
{ ...
txSkelIns = Map.fromList [(scriptTxOutRefToSpend, txSkelSomeRedeemerForReferencedScript txOutRefCarryingReferenceScript redeemer), ...],
...
}
```

## Balancing

### Choose which wallet provides UTxOs to balance a transaction
Expand Down Expand Up @@ -560,3 +550,15 @@ txSkelTemplate
{ txOptAnchorResolution = AnchorResolutionHttp
}
```

## Withdrawals

Withdrawals allow to execute scripts with the "rewarding" purpose but do not
work properly in terms of withdrawn values.

```haskell
txSkelTemplate
{ txSkelWithdrawals = scriptWithdrawal withdrawalScript someRedeemer someAdaValue,
...
}
```

0 comments on commit 1e2810f

Please sign in to comment.