Ethereum gateway 403

Is anyone using ethers.js successfully with an Ethereum gateway? I just created a new Web3 gateway but getting a 403 error when doing this:
import { JsonRpcProvider } from 'ethers';

const cloudflareEndpoint = 'https://web3.example.com';
const provider = new JsonRpcProvider(cloudflareEndpoint);

const name = await provider.lookupAddress('0x...');
import { JsonRpcProvider } from 'ethers';

const cloudflareEndpoint = 'https://web3.example.com';
const provider = new JsonRpcProvider(cloudflareEndpoint);

const name = await provider.lookupAddress('0x...');
1 Reply
jan
janOP7mo ago
It works when using vanilla const provider = new CloudflareProvider(); but how do I use my own hostname to avoid being rate-limited?
Want results from more Discord servers?
Add your server