geth attach
command with the node endpoint..env
file.hardhat.config.js
:npx hardhat run --network sapphire_testnet scripts/deploy.js
, and Hardhat will deploy using Chainstack.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:
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:
23294
23295
WebSocketProvider
object to connect to your node WSS endpoint and get the latest block number:
23294
23295