Project ID
All requests to Infura must have a valid project ID appended to the request URL or they will fail.
Find the project ID in the GENERAL tab of your project settings.
Find the Infura PROJECT ID

Add the project ID to requests

HTTPS
WebSocket
1
curl https://mainnet.infura.io/v3/<YOUR-PROJECT-ID> \
2
-X POST \
3
-H "Content-Type: application/json" \
4
-d '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}'
Copied!
1
wscat -c wss://mainnet.infura.io/ws/v3/<YOUR-PROJECT-ID>
2
> {"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}
Copied!