Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

0x

Configuration

Use the zeroX factory since JavaScript identifiers cannot start with a number.

import { createConfig, zeroX } from "@spandex/core";
 
export const config = createConfig({
  providers: [
    zeroX({
      // required!
      apiKey: "YOUR_0X_API_KEY",
      // If you have negotiated surplus sharing with 0x, override negotiatedOptions
      // negotiatedFeatures: ["integratorSurplus"],
    }),
    // ...
  ],
});