Docs

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

JSON
{
  "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

FieldTypeDescription
signatureobjectECDSA signature for the signed action
noncenumberReplay-protection nonce used for ordering and uniqueness

Action Fields

FieldTypeDescription
typestringAlways "cDeposit"
signatureChainIdstringChain identifier used during signing
hyperliquidChainstringTarget Hyperliquid environment, such as Mainnet
weinumberRaw collateral amount in the smallest unit

Processing Guidance

  • Treat wei as 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.Full and confirm the response status.
  • Keep the nonce when indexing. It is useful for deduplication, timeline ordering, and replay protection analysis.
  • Distinguish cDeposit from borrowLend: cDeposit updates collateral, while borrowLend captures 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.