hardhat.config.js
:
npx hardhat run scripts/deploy.js --network chainstack
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:
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.
HttpService
object to connect to your node endpoint.
Example to get the latest block number:
JsonRpcProvider
object to connect to your node endpoint and get the latest block number:
25
338
WebSocketProvider
object to connect to your node WSS endpoint and get the latest block number:
25
338
brownie networks add
command with the node endpoint:
chainstack-mainnet
.
25
338
--rpc-url
to run the operation through your Chainstack node.