Skip to main content
POST
Build a transaction that cancels a running TWAP

Body

application/json
trader
string
required

The trader (position owner). USDC collateral is pulled from and paid out to this address.

twapId
integer
required

The TWAP order id returned when the TWAP was opened (also in on-chain events).

Required range: x >= 0
delegate
string

Optional pre-authorized delegate. When set, the call is wrapped in delegatedAction(trader, …) and from becomes this address — the delegate signs the transaction and pays gas. Register one via /v2/delegate/set.

Response

Success envelope: ok is true and data carries the payload documented below.

ok
enum<boolean>
required

Always true on success.

Available options:
true
data
object
required

An unsigned EVM transaction. Sign it with the from key and broadcast it yourself, or submit the signed bytes via POST /v2/relay.