Skip to main content

order_hash

Function order_hash 

Source
pub fn order_hash(order: &PolymarketOrder, neg_risk: bool) -> Result<B256>
Expand description

Computes the EIP-712 signing hash used by Polymarket as the order ID.

This CTF-only function uses domain version 2; neg_risk selects the CTF exchange. Use order_hash_with_context for a Protocol V2 market.