twapCancel payload - TWAP Cancellations
Decode Hyperliquid `twapCancel` payloads for TWAP cancellations, returned through Dwellir's read-only L1 gRPC API.
Read-only action reference
Dwellir's Hyperliquid gRPC API returns this decoded action payload through
StreamBlocks and
GetBlock. It does not submit or execute this action.
Submit supported user write actions through Hyperliquid's native
POST /exchange
endpoint.
The decoded twapCancel payload records cancellation of an active time-weighted average price order.
Sample Data
{
"signature": {
"r": "0x19049f59f4a558ebde3cd54b7fec8fa7329bed21515aafa468f08b6d283f87d5",
"s": "0x701715161c404203ec40441689c4fea25894c827a8bf48d3a46a9601d859478a",
"v": 27
},
"action": {
"type": "twapCancel",
"a": 161,
"t": 1506780
},
"nonce": 1768147413037,
"expiresAfter": 1768147429667
}View this transaction on Hypurrscan
Field Reference
Action Fields
| Field | Type | Description |
|---|---|---|
type | string | Always "twapCancel" |
a | number | Asset index |
t | number | TWAP order ID to cancel |
Use Cases
TWAP Lifecycle Tracking
Monitor TWAP order cancellations:
def process_twapCancel_action(action):
asset = action.get('a')
twap_id = action.get('t')
print(f"TWAP cancelled: asset {asset}, id {twap_id}")