Generate API key

To interact with the offchain system, an API key is required for each ENS name. Here's how you can generate and manage API keys:

Generating an API Key

The best and easiest way to generate an API key is through our Dev Portal (https://dev.namespace.ninja/). See the Loom demo video below on how to do it. 👇

Using the API Key

Once the API key is generated, you can set it for an ENS name using the setApiKey method:

client.setApiKey("example.eth", "your-api-key");

This ensures all subsequent requests for the ENS name use the provided API key.

Last updated