df-hyperliquid-core 0.0.9-beta

Hyperliquid SDK for Rust: markets, account, trading, transfers, earn and deploy, with exact decimals and signing. Native and wasm.
Documentation
{
  "source": "Core to HyperEVM, a spot token sent to its system address, by spotSend for a separate (standard) account and by sendAsset from spot to spot for a pooled (unified or portfolio margin) one. Made by @nktkas/hyperliquid 0.33.2 itself, its own action functions with the key below, the nonce below and a transport that recorded the body; the run kept no digest. Each token id is the token index in hex.",
  "key": "0x0123456789012345678901234567890123456789012345678901234567890123",
  "nonce": 1790412105001,
  "cases": [
    {
      "name": "hype by spotSend on mainnet",
      "pooled": false,
      "isTestnet": false,
      "token": {
        "name": "HYPE",
        "index": 150,
        "tokenId": "0x00000000000000000000000000000096"
      },
      "action": {
        "type": "spotSend",
        "signatureChainId": "0xa4b1",
        "hyperliquidChain": "Mainnet",
        "destination": "0x2222222222222222222222222222222222222222",
        "token": "HYPE:0x00000000000000000000000000000096",
        "amount": "1.25",
        "time": 1790412105001
      },
      "signature": {
        "r": "0x827f978f3534efae70fed4a2516a69a7b96ea8f70b66d0f1e3d5a9b0aab79b81",
        "s": "0x190e955ce2485993005aa0cb898d337b585a38cf51ee79d7c491662d49773e6e",
        "v": 27
      }
    },
    {
      "name": "hype by sendAsset on mainnet",
      "pooled": true,
      "isTestnet": false,
      "token": {
        "name": "HYPE",
        "index": 150,
        "tokenId": "0x00000000000000000000000000000096"
      },
      "action": {
        "type": "sendAsset",
        "signatureChainId": "0xa4b1",
        "hyperliquidChain": "Mainnet",
        "destination": "0x2222222222222222222222222222222222222222",
        "sourceDex": "spot",
        "destinationDex": "spot",
        "token": "HYPE:0x00000000000000000000000000000096",
        "amount": "1.25",
        "fromSubAccount": "",
        "nonce": 1790412105001
      },
      "signature": {
        "r": "0x1aee352fd1d8f494df97b39a4d5aff7f4635d4adf8ac71964d0dab9916ec5b9b",
        "s": "0x5597d89e3407222339339b5cccca87be58742bc49005b6e2e145943b009dfe74",
        "v": 27
      }
    },
    {
      "name": "ubtc by spotSend on testnet",
      "pooled": false,
      "isTestnet": true,
      "token": {
        "name": "UBTC",
        "index": 197,
        "tokenId": "0x000000000000000000000000000000c5"
      },
      "action": {
        "type": "spotSend",
        "signatureChainId": "0x66eee",
        "hyperliquidChain": "Testnet",
        "destination": "0x20000000000000000000000000000000000000c5",
        "token": "UBTC:0x000000000000000000000000000000c5",
        "amount": "0.001",
        "time": 1790412105001
      },
      "signature": {
        "r": "0x175bec32f429b5f36e88dcc34bade4129ed5597170bcefc2a65a0fc24a2206ca",
        "s": "0x5c637cc5473a2a91746c0751764b71cb743da0bf2656f0cf1c528db76d0ab031",
        "v": 28
      }
    },
    {
      "name": "ubtc by sendAsset on testnet",
      "pooled": true,
      "isTestnet": true,
      "token": {
        "name": "UBTC",
        "index": 197,
        "tokenId": "0x000000000000000000000000000000c5"
      },
      "action": {
        "type": "sendAsset",
        "signatureChainId": "0x66eee",
        "hyperliquidChain": "Testnet",
        "destination": "0x20000000000000000000000000000000000000c5",
        "sourceDex": "spot",
        "destinationDex": "spot",
        "token": "UBTC:0x000000000000000000000000000000c5",
        "amount": "0.001",
        "fromSubAccount": "",
        "nonce": 1790412105001
      },
      "signature": {
        "r": "0xa7334c6855d6bada4cfef08cb7830fe34bc732bacf5989337ca422a4abd1c5d5",
        "s": "0x69837989c3c20c09b548855107ed207114016afbad2fbb782808ce8810d75e96",
        "v": 27
      }
    }
  ]
}