Error creating Relayer Instance from NodeJS

Hi!

I am trying to create a Relayer instance from my Node.js backend using the following code:

import { createInstance, SepoliaConfig } from '@zama-fhe/relayer-sdk/node';
const relayerInstance = await createInstance(SepoliaConfig);

This code worked one month ago, but when I tried to run my server again today, I received the following error:

Error: server response 403 Forbidden (request={ }, response={ }, error=null, info={ “requestUrl”: “https://eth-sepolia.public.blastapi.io”, “responseBody”: “{\n "jsonrpc": "2.0",\n "id": null,\n "error": {\n "code": -32000,\n "message": "Blast API is no longer available. Please update your integration to use Alchemy’s API instead: https://alchemy.com"\n }\n}\n”, “responseStatus”: “403 Forbidden” }, code=SERVER_ERROR, version=6.15.0)

Have there been any changes to the SDK?

Thanks!
Diego

Hi @diegogvf
The SepoliaConfig uses a default network value: “https://eth-sepolia.public.blastapi.io
This service has recently been shutdown by blastapi.io
Use: ‘https://ethereum-sepolia-rpc.publicnode.com’ instead
SelopiaConfig.network = ‘https://ethereum-sepolia-rpc.publicnode.com
Let us know if you face any issue!

2 Likes

Now is working!

Thank you very much!
Best regards

1 Like