Riddler cross-chain intent solver protocol.
Deprecated: Use Raxol.Payments.Protocols.Xochi instead. This module
now delegates to Xochi internally, routing through /xochi/* endpoints
instead of /commerce/*. The Commerce API remains available for B2B
integrations but is not intended for agent use.
Migration
Replace:
config = %{base_url: "https://riddler.example.com", api_key: "..."}
Riddler.get_quote(config, %Riddler.Schemas.QuoteRequest{...})With:
config = %{base_url: "https://riddler.example.com", auth_token: "..."}
Xochi.get_quote(config, %Xochi.Schemas.QuoteRequest{...})
Summary
Functions
Request a cross-chain transfer quote.
Poll order status until terminal or timeout.
Sign and submit an order for a given quote.
Functions
@spec get_quote( map(), Raxol.Payments.Riddler.Schemas.QuoteRequest.t() | Raxol.Payments.Xochi.Schemas.QuoteRequest.t() ) :: {:ok, Raxol.Payments.Riddler.Schemas.QuoteResponse.t()} | {:error, term()}
Request a cross-chain transfer quote.
Deprecated: use Raxol.Payments.Protocols.Xochi.get_quote/2.
Accepts either a Riddler.Schemas.QuoteRequest (mapped to Xochi format)
or a Xochi.Schemas.QuoteRequest directly.
@spec poll_status(map(), String.t(), keyword()) :: {:ok, Raxol.Payments.Riddler.Schemas.OrderStatus.t()} | {:error, term()}
Poll order status until terminal or timeout.
Deprecated: use Raxol.Payments.Protocols.Xochi.poll_status/3.
Options
:interval_ms-- poll interval (default: 2000ms):timeout_ms-- max wait time (default: 120000ms)
@spec submit_order(map(), Raxol.Payments.Riddler.Schemas.QuoteResponse.t(), module()) :: {:ok, map()} | {:error, term()}
Sign and submit an order for a given quote.
Deprecated: use Raxol.Payments.Protocols.Xochi.execute/3.
Signs with EIP-712 (Xochi typed data) instead of ERC-3009/Permit2.
The quote must contain eip712_data with a message field.