Raindex SDK Documentation
    Preparing search index...

    Function getOrderHash

    • Generates a unique keccak256 hash for an order, used for on-chain identification and verification. This generated hash is used as the onchain order hash.

      const result = await getOrderHash(order);
      if (result.error) {
      console.error("Hash generation failed:", result.error.readableMsg);
      }
      const orderHash = result.value;
      // Do something with the order hash

      Parameters

      • order: OrderV4

        Complete OrderV4 structure containing owner, evaluation logic, valid inputs/outputs, and nonce

      Returns WasmEncodedResult<string>

      Hex-encoded hash with 0x prefix (66 characters total)