package polymarket

  1. Overview
  2. Docs
On This Page
  1. Hash64 Module
OCaml client library for the Polymarket prediction market API

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
md5=4eb4c5d2f63ff081c9713d90be5a51b2
sha512=0e3de0c9b40683e09ab8f9f966a44784ef1b9b482c3eefef84104a7e8042c92f1d79893ee9588b24fa3d0decaed7f365509f4d1c23c66ce8328efb64e721f276

doc/polymarket.common/Polymarket_common/Primitives/Hash64/index.html

Module Primitives.Hash64Source

Hash64 Module

64-character hex hash type (0x-prefixed, 64 hex chars, total 66 chars). Pattern: ^0x[a-fA-F0-9]\{64\}$

Sourcetype t
Sourceval make : string -> (t, string) result

Create a hash64 with validation. Returns Error if invalid.

Sourceval make_exn : string -> t

Create a hash64 with validation. Raises on invalid input.

Sourceval unsafe_of_string : string -> t

Create from string without validation. Use only for trusted sources.

Sourceval to_string : t -> string

Convert to string.

Sourceval pp : Format.formatter -> t -> unit

Pretty printer for Format.

Sourceval equal : t -> t -> bool

Equality comparison.

Sourceval of_yojson : Yojson.Safe.t -> (t, string) result

JSON deserialization with validation.

Sourceval of_yojson_exn : Yojson.Safe.t -> t

JSON deserialization, raises on invalid.

Sourceval to_yojson : t -> Yojson.Safe.t

JSON serialization.

Sourceval yojson_of_t : t -> Yojson.Safe.t

JSON serialization (ppx_yojson_conv compatibility).

Sourceval t_of_yojson : Yojson.Safe.t -> t

JSON deserialization (ppx_yojson_conv compatibility).