View Source Hyperliquid.Api.Exchange.CWithdraw (hyperliquid v0.2.2)

Withdraw from staking balance back to spot account.

See: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint

Summary

Functions

Withdraw from staking balance back to spot account.

Functions

Link to this function

request(wei, opts \\ [])

View Source

Withdraw from staking balance back to spot account.

Parameters

  • private_key: Private key for signing (hex string)
  • wei: Amount in wei to withdraw (float * 1e8)
  • opts: Optional parameters

Returns

  • {:ok, response} - Withdrawal result
  • {:error, term()} - Error details

Examples

{:ok, result} = CWithdraw.request(private_key, 100_000_000)