> ## Documentation Index
> Fetch the complete documentation index at: https://goldrush.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# HypercoreLedgerEvent

Decoded details for a Hypercore ledger update (withdraw, deposit, transfer, liquidation, etc.)

Implements: [`HypercoreMiscEventsTransaction`](/api-reference/streaming-api/types/hypercore-misc-events-transaction), [`DecodedDetails`](/api-reference/streaming-api/types/decoded-details)

## Fields

<ResponseField name="type" type="string">
  Ledger subtype discriminator (e.g. withdraw, deposit, spot\_transfer, send)
</ResponseField>

<ResponseField name="delta" type="union">
  Subtype-specific ledger delta payload

  Type: [`LedgerDelta`](/api-reference/streaming-api/types/ledger-delta)

  <Expandable title="LedgerSubAccountTransfer">
    <ResponseField name="destination" type="string">
      Destination sub-account address
    </ResponseField>

    <ResponseField name="usdc" type="string">
      Transfer amount in USDC
    </ResponseField>

    <ResponseField name="user" type="string">
      Source user address
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerWithdraw">
    <ResponseField name="fee" type="string">
      Withdrawal fee
    </ResponseField>

    <ResponseField name="usdc" type="string">
      Withdrawal amount in USDC
    </ResponseField>

    <ResponseField name="nonce" type="string">
      Withdrawal nonce
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerLiquidation">
    <ResponseField name="liquidated_ntl_pos" type="string">
      Liquidated notional position value
    </ResponseField>

    <ResponseField name="account_value" type="string">
      Account value at time of liquidation
    </ResponseField>

    <ResponseField name="liquidated_positions" type="object[]">
      List of positions that were liquidated

      Type: [`LedgerLiquidatedPosition`](/api-reference/streaming-api/types/ledger-liquidated-position)

      <Expandable title="properties">
        <ResponseField name="szi" type="string">
          Position size that was liquidated
        </ResponseField>

        <ResponseField name="coin" type="string">
          Market/coin symbol (e.g. ETH, BTC)
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="leverage_type" type="string">
      Leverage type (e.g. cross, isolated)
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerSpotTransfer">
    <ResponseField name="amount" type="string">
      Transfer amount
    </ResponseField>

    <ResponseField name="usdc_value" type="string">
      USDC equivalent value
    </ResponseField>

    <ResponseField name="native_token_fee" type="string">
      Fee in native token
    </ResponseField>

    <ResponseField name="fee" type="string">
      Transfer fee
    </ResponseField>

    <ResponseField name="destination" type="string">
      Destination user address
    </ResponseField>

    <ResponseField name="fee_token" type="string">
      Token used for fee payment
    </ResponseField>

    <ResponseField name="nonce" type="string">
      Transfer nonce
    </ResponseField>

    <ResponseField name="user" type="string">
      Source user address
    </ResponseField>

    <ResponseField name="token" type="string">
      Token identifier
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerVaultLeaderCommission">
    <ResponseField name="usdc" type="string">
      Commission amount in USDC
    </ResponseField>

    <ResponseField name="vault" type="string">
      Vault address
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerSend">
    <ResponseField name="amount" type="string">
      Send amount
    </ResponseField>

    <ResponseField name="usdc_value" type="string">
      USDC equivalent value
    </ResponseField>

    <ResponseField name="destination_dex" type="string">
      Destination DEX identifier
    </ResponseField>

    <ResponseField name="native_token_fee" type="string">
      Fee in native token
    </ResponseField>

    <ResponseField name="fee" type="string">
      Send fee
    </ResponseField>

    <ResponseField name="destination" type="string">
      Recipient address
    </ResponseField>

    <ResponseField name="fee_token" type="string">
      Token used for fee payment
    </ResponseField>

    <ResponseField name="nonce" type="string">
      Send nonce
    </ResponseField>

    <ResponseField name="user" type="string">
      Sender address
    </ResponseField>

    <ResponseField name="source_dex" type="string">
      Source DEX identifier
    </ResponseField>

    <ResponseField name="token" type="string">
      Token identifier
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerVaultDeposit">
    <ResponseField name="usdc" type="string">
      Deposit amount in USDC
    </ResponseField>

    <ResponseField name="user" type="string">
      Depositor address
    </ResponseField>

    <ResponseField name="vault" type="string">
      Vault address
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerInternalTransfer">
    <ResponseField name="fee" type="string">
      Transfer fee
    </ResponseField>

    <ResponseField name="destination" type="string">
      Destination user address
    </ResponseField>

    <ResponseField name="usdc" type="string">
      Transfer amount in USDC
    </ResponseField>

    <ResponseField name="user" type="string">
      Source user address
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerAccountClassTransfer">
    <ResponseField name="amount" type="string">
      Transfer amount
    </ResponseField>

    <ResponseField name="token" type="string">
      Token identifier
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerAccountActivationGas">
    <ResponseField name="amount" type="string">
      Gas fee amount
    </ResponseField>

    <ResponseField name="token" type="string">
      Token used for gas payment
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerVaultCreate">
    <ResponseField name="fee" type="string">
      Vault creation fee
    </ResponseField>

    <ResponseField name="usdc" type="string">
      Initial deposit amount in USDC
    </ResponseField>

    <ResponseField name="vault" type="string">
      Vault address
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerBorrowLend">
    <ResponseField name="amount" type="string">
      Borrow or lend amount
    </ResponseField>

    <ResponseField name="interest_amount" type="string">
      Accrued interest amount
    </ResponseField>

    <ResponseField name="operation" type="string">
      Operation type: borrow or lend
    </ResponseField>

    <ResponseField name="token" type="string">
      Token identifier
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerDeposit">
    <ResponseField name="usdc" type="string">
      Deposit amount in USDC
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerRewardsClaim">
    <ResponseField name="amount" type="string">
      Claimed rewards amount
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerPerpDexClassTransfer">
    <ResponseField name="amount" type="string">
      Transfer amount
    </ResponseField>

    <ResponseField name="dex" type="string">
      DEX identifier
    </ResponseField>

    <ResponseField name="to_perp" type="boolean">
      Whether transferring to perp (true) or to spot (false)
    </ResponseField>

    <ResponseField name="token" type="string">
      Token identifier
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerCStakingTransfer">
    <ResponseField name="amount" type="string">
      Transfer amount
    </ResponseField>

    <ResponseField name="is_deposit" type="boolean">
      Whether this is a deposit (true) or withdrawal (false)
    </ResponseField>

    <ResponseField name="token" type="string">
      Token identifier
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerSpotGenesis">
    <ResponseField name="amount" type="string">
      Genesis distribution amount
    </ResponseField>

    <ResponseField name="token" type="string">
      Token identifier
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerDeployGasAuction">
    <ResponseField name="amount" type="string">
      Auction amount
    </ResponseField>

    <ResponseField name="token" type="string">
      Token identifier
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerVaultDistribution">
    <ResponseField name="usdc" type="string">
      Distribution amount in USDC
    </ResponseField>

    <ResponseField name="vault" type="string">
      Vault address
    </ResponseField>
  </Expandable>

  <Expandable title="LedgerVaultWithdraw">
    <ResponseField name="requested_usd" type="string">
      Requested withdrawal amount in USD
    </ResponseField>

    <ResponseField name="commission" type="string">
      Commission charged
    </ResponseField>

    <ResponseField name="basis" type="string">
      Cost basis of the withdrawn share
    </ResponseField>

    <ResponseField name="closing_cost" type="string">
      Cost to close positions for withdrawal
    </ResponseField>

    <ResponseField name="user" type="string">
      Withdrawer address
    </ResponseField>

    <ResponseField name="vault" type="string">
      Vault address
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="hash" type="string">
  Transaction/event hash from the Hypercore L1
</ResponseField>

<ResponseField name="ledger_type" type="string">
  Ledger subtype discriminator (e.g. withdraw, deposit, spot\_transfer, send)
</ResponseField>

<ResponseField name="time" type="string">
  ISO-8601 timestamp of the ledger event
</ResponseField>
