Using web3, I try to listen to events.PoolCreated
But I'm getting
Error: connection not open on send()
on both infura and getblock RPC nodes, was anyone able to listen to this events using web3 with a websocket provider?
I checked the ABI, I copy pasted it from the contract, when I print out the contract events I get:
{
FeeAmountEnabled: [Function: bound ],
'0xc66a3fdf07232cdd185febcc6579d408c241b47ae2f9907d84be655141eeaecc': [Function: bound ],
'FeeAmountEnabled(uint24,int24)': [Function: bound ],
OwnerChanged: [Function: bound ],
'0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c': [Function: bound ],
'OwnerChanged(address,address)': [Function: bound ],
PoolCreated: [Function: bound ],
'0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118': [Function: bound ],
'PoolCreated(address,address,uint24,int24,address)': [Function: bound ],
allEvents: [Function: bound ]
}
Which are the correct events,
What am I doing wrong? why does this happen?