Skip to content

ensureWasmClient() always fails with 403 #19

@DoganM95

Description

@DoganM95

Whenever i call the ensureWasmClient() methodi get this console log, preventing me from essentially doing anything:

❌ API Error Response:
  Status: 403
  Code: undefined
  Message: Request failed with status code 403
  Data: ""

Here is the relevant part of my code and yes, the env vars are correctly set and read at runtime:

const signerClient = new SignerClient({
    url: "https://mainnet.zklighter.elliot.ai",
    privateKey: env.LIGHTER_API_PRIVATE_KEY,
    accountIndex: parseInt(env.LIGHTER_API_ACCOUNT_INDEX),
    apiKeyIndex: parseInt(env.LIGHTER_API_KEY_INDEX),
});

(async () => {
    try {
        // Initialize WASM signer (mandatory)
        await signerClient.initialize();
        await signerClient.ensureWasmClient();

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions