| Crates.io | hl-rs |
| lib.rs | hl-rs |
| version | 0.1.0 |
| created_at | 2025-11-03 16:09:06.020135+00 |
| updated_at | 2025-11-03 16:09:06.020135+00 |
| description | Hyperliquid Rust SDK |
| homepage | |
| repository | https://github.com/mektigboy/hl-rs |
| max_upload_size | |
| id | 1914912 |
| size | 170,517 |
SDK inspired by the official Hyperliquid Rust SDK but with some changes that make it more flexible and suitable for advanced use cases.
The most important architectural difference is the separation of concerns between action building, signing, and sending:
Coupled flow:
// Everything happens in one method (can't separate signing from sending)
exchange_client.usdc_transfer("100", "0x...", None).await?;
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: