Client configuration for Polymarket CLOB calls and signing.
Summary
Functions
Derives the EIP-55 checksum address for a raw private key.
Returns the funder address, falling back to the signer address.
Returns whether all L2 API credential fields are present.
Builds a client from a private key and optional API credentials.
Types
@type t() :: %PolymarketClob.Client{ address: String.t(), api_key: String.t() | nil, api_passphrase: String.t() | nil, api_secret: String.t() | nil, chain_id: PolymarketClob.Config.chain_id(), data_api_host: String.t(), funder: String.t() | nil, host: String.t(), private_key: binary(), signature_type: 0 | 1 | 2 | 3 }
Functions
Derives the EIP-55 checksum address for a raw private key.
Returns the funder address, falling back to the signer address.
Returns whether all L2 API credential fields are present.
Builds a client from a private key and optional API credentials.
If API credentials are present and :signature_type is not explicitly provided, the
client defaults to signature type 2 (POLY_GNOSIS_SAFE), matching normal
browser-derived Polymarket proxy wallets. Without API credentials it defaults to 0
(EOA).