Prepare Strata TWAP transaction
strata_twap_preparePrepare a signed TWAP transaction for placing or canceling on Strata markets. Provide action fields or challenge details, then sign the returned transaction to execute.
Instructions
Prepare a canonical TWAP transaction. One signature: pass the action itself (place fields or twapId to cancel) and sign only the returned transaction. (A challengeId + authorizationSignature is still accepted.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | ||
| action | No | ||
| twapId | No | ||
| marketId | Yes | ||
| challengeId | No | ||
| ownerWallet | No | ||
| slicesTotal | No | ||
| intervalSlots | No | ||
| totalSizeAtoms | No | ||
| limitPriceAtoms | No | ||
| sessionPublicKey | No | ||
| maximumToleranceBps | No | ||
| authorizationSignature | No |