geth attach
command with the node endpoint.
query
— your GraphQL query. In this case, to get the latest block number.hardhat.config.js
:
npx hardhat run scripts/deploy.js --network chainstack
and Hardhat will deploy using Chainstack.
See also Forking EVM-compatible mainnet with Hardhat.
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:
56
97
WebSocketProvider
object to connect to your node WSS endpoint and get the latest block number:
56
97
brownie networks add
command with the node endpoint:
bsc-mainnet
.
56
97
Example to run the deployment script:--rpc-url
to run the operation through your Chainstack node.
forge
to develop, test, and deploy your smart contracts.
To deploy a contract:
cast
to interact with the network and the deployed contracts.
To get the latest block number: