cDeposit - Deposit Collateral
Deposit collateral for Hyperliquid lending operations.
The cDeposit action records collateral moving into the lending side of a Hyperliquid account. Dwellir surfaces that payload through HyperCore gRPC methods such as StreamBlocks and GetBlock, making it useful for lending analytics, account monitoring, and audit pipelines.
How to Read It
The action body tells you that collateral is being added and gives you the raw amount in wei. The surrounding signed-action envelope carries the signature and nonce, while the paired resps.Full entry tells you whether the collateral update succeeded on chain.
Sample Data
{
"signature": {
"r": "0x3cbb47f1325d3c32177e669cd16b34c284382c9f14baaa6aab8378c2fd5f8a6",
"s": "0x36c7707a539f353132f68255a1f96defb18fcc946af9e5fbb065104c0e537d6d",
"v": 28
},
"action": {
"type": "cDeposit",
"signatureChainId": "0xa4b1",
"hyperliquidChain": "Mainnet",
"wei": 783683,
"nonce": 1768148050528
},
"nonce": 1768148050528
}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 "cDeposit" |
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
- Treat
weias a raw integer amount. Convert it with the asset metadata your application already trusts before rendering it to users. - Do not mark the deposit as successful from the action payload alone. Join the action to its response in
resps.Fulland confirm the response status. - Keep the nonce when indexing. It is useful for deduplication, timeline ordering, and replay protection analysis.
- Distinguish
cDepositfrom borrowLend:cDepositupdates collateral, whileborrowLendcaptures the borrow, repay, supply, or withdraw operation itself.
Common Use Cases
Collateral Monitoring
Track when accounts add collateral before opening or resizing lending exposure.
Risk and Liquidation Analysis
Combine collateral deposits with later borrow/lend activity to understand how a user's safety buffer changed over time.
Related Action Types
- cWithdraw for collateral withdrawals
- borrowLend for borrow and lend operations
- StreamBlocks for block and response pairing