.env
file
hardhat.config.ts
:
HttpProvider
object to connect to your node HTTPS endpoint and get the latest block number:
WebsocketProvider
object to connect to your node WSS endpoint and get the latest block number:
HTTPProvider
to connect to your node endpoint and get the latest block number.
WebsocketProvider
object to connect to your node WSS endpoint and get the latest block number.
query
— your JSON-RPC query. In this case, to get the latest block number.JsonRpcProvider
object to connect to your node endpoint and get the balance of any address:
324
300
WebSocketProvider
object to connect to your node WSS endpoint and get the latest block number:
324
300