To interact with the offchain system, you’ll need an API key. You can configure your API key either for all domains associated with an address (recommended) or for specific ENS domains.

Get API Key from Namespace Dev Portal

Get API Key

Guide on how to get an API key from the Namespace Dev Portal.

Configuring Your API Key

Works with all ENS domains registered to your address:
import { createOffchainClient } from "@thenamespace/offchain-manager";

// During initialization
const client = createOffchainClient({
  mode: "mainnet",
  defaultApiKey: "your-address-based-api-key"
});

// Or after initialization
const client = createOffchainClient();
client.setDefaultApiKey("your-address-based-api-key");

API Key Types

  • Address-based API key: Works with all ENS domains registered to your address
  • Domain-based API key: Works with a specific ENS domain only

Priority Order

  1. Domain-specific API key (if set)
  2. Default address-based API key