Relayer API Keys
Relayer API Keys are stored in the relayer_api_keys table and validated through request headers at submission time.
Authentication Headers
Section titled “Authentication Headers”| Header | Description |
|---|---|
RELAYER_API_KEY | The relayer API key |
RELAYER_API_KEY_ADDRESS | The address associated with the API key |
How It Works
Section titled “How It Works”When submitting a relay transaction through POST /submit, you have two authentication options:
- Relayer API Key — Include the
RELAYER_API_KEYandRELAYER_API_KEY_ADDRESSheaders - L2 HMAC — Include the standard
OPENFISH_*authentication headers
The server checks for Relayer API Key credentials first. If those headers are present, it validates the key against the relayer_api_keys table. When they are absent, the server falls back to L2 HMAC authentication.
Builder API Key Validation
Section titled “Builder API Key Validation”Builder-specific endpoints (POST /builder/order, POST /builder/cancel) support an additional key-based authentication path via the OPENFISH_BUILDER_API_KEY header. When supplied, this key is verified against the builder_api_keys table.
| Header | Description |
|---|---|
OPENFISH_BUILDER_ID | Builder identifier (required for all builder endpoints) |
OPENFISH_BUILDER_API_KEY | Optional builder API key for authentication |