cWithdraw - Withdraw Collateral
Withdraw collateral from Hyperliquid lending.
The cWithdraw action records collateral leaving the lending side of a Hyperliquid account. Dwellir exposes that payload through HyperCore gRPC methods such as StreamBlocks and GetBlock, so you can track collateral withdrawals in real time.
How to Read It
The action body contains the raw withdrawal amount and chain-scoping fields used during signing. The execution result arrives separately through the matching resps.Full entry, so indexers should always pair the action and response before labeling a withdrawal as successful.
Sample Data
{
"signature": {
"r": "0x8c864d08b6486f6c043c8359797175b14e2b3c6d61a82ceee9bc9cf2659a4be8",
"s": "0x15835b21b87a1c0b55af90bda8f830aa128514b08960fcf757fd983be93cb128",
"v": 27
},
"action": {
"type": "cWithdraw",
"signatureChainId": "0xa4b1",
"hyperliquidChain": "Mainnet",
"wei": 408761850,
"nonce": 1768148277854
},
"nonce": 1768148277854
}View this transaction on Hypurrscan
Field Reference
Envelope Fields
| Field | Type | Description |
|---|---|---|
signature | object | ECDSA signature for the signed action |
nonce | number | Replay-protection nonce used for ordering and uniqueness |
Action Fields
| Field | Type | Description |
|---|---|---|
type | string | Always "cWithdraw" |
signatureChainId | string | Chain identifier used during signing |
hyperliquidChain | string | Target Hyperliquid environment, such as Mainnet |
wei | number | Raw collateral amount in the smallest unit |
Processing Guidance
weiis not a user-ready decimal string. Convert it with the asset metadata your application already maintains.- Join the action to the paired response before alerting on a withdrawal. A signed action appearing in the block stream is not the same as a confirmed state change.
- Track the nonce and transaction link when building audit trails for collateral movements.
- Interpret
cWithdrawtogether with cDeposit and borrowLend when reconstructing lending account state.
Common Use Cases
Exposure Reduction Tracking
Watch for users removing collateral after repaying loans or de-risking positions.
Post-Trade Settlement Analysis
Correlate withdrawals with earlier lending actions to understand capital leaving the collateral pool.
Related Action Types
- cDeposit for collateral deposits
- borrowLend for borrow and lend operations
- StreamBlocks for block and response pairing