Back to All

New AlchemyProvider trying to GET?

Hello!

I am trying to implement a LightSmartContractAccount as part of account kit:

const provider = new AlchemyProvider({
  apiKey: apiKey,
  chain,
}).connect(
  (rpcClient) =>
    new LightSmartContractAccount({
        entryPointAddress,
        chain: rpcClient.chain,
        owner: magicSigner,
        factoryAddress: getDefaultLightAccountFactoryAddress(chain),
        rpcClient,
    })
);

I am running into a similar issue as described here: https://docs.alchemy.com/discuss/631a103fed063e004bc5ff71

I receive an error that, when clicked on results in a 'cannot GET, can only POST' error (see below). Any ideas what might be wrong?


{"message":"Method Not Allowed","logref":null,"path":null,"_links":{"self":{"href":"/v2/Lo...","templated":false,"profile":null,"deprecation":null,"title":null,"hreflang":null,"type":null,"name":null}},"_embedded":{"errors":[{"message":"Method [GET] not allowed for URI [/v2/Lo....]. Allowed methods: [POST]","logref":null,"path":null,"_links":{},"_embedded":{}}]}}

ReadMe