hl-rs

Crates.iohl-rs
lib.rshl-rs
version0.1.0
created_at2025-11-03 16:09:06.020135+00
updated_at2025-11-03 16:09:06.020135+00
descriptionHyperliquid Rust SDK
homepage
repositoryhttps://github.com/mektigboy/hl-rs
max_upload_size
id1914912
size170,517
(mektigboy)

documentation

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

README

Hyperliquid Rust SDK

SDK inspired by the official Hyperliquid Rust SDK but with some changes that make it more flexible and suitable for advanced use cases.

Key Differences

The most important architectural difference is the separation of concerns between action building, signing, and sending:

hyperliquid-rust-sdk (official SDK)

Coupled flow:

// Everything happens in one method (can't separate signing from sending)
exchange_client.usdc_transfer("100", "0x...", None).await?;

hl-rs

More flexible flow:

// Each step is separate and composable
ActionKind::UsdSend(usd_send)
    .build(&client)?      // Prepare action with metadata
    .sign(&wallet)?       // Generate signature
    .send()               // Send when ready
    .await?;

This separation enables several important use cases:

  • External signing (e.g., using AWS Nitro Enclaves, etc.)
  • Batch operations (e.g., sending multiple actions in a single request)
  • Delayed sending (e.g., sending an action after a certain time)

Resources

Commit count: 0

cargo fmt