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:
43114
43113
WebSocketProvider
object to connect to your node WSS endpoint and get the latest block number:
43114
43113
brownie networks add
command with the node endpoint:
chainstack-mainnet
.
43114
43113
--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:
https
prefix and the ext
postfix. For example, nd-123-456-789.p2pify.com/3c6e0b8a9c15224a8228b9a98ca1531d
.
43114
43113
const port
and change port
to null
in the default example.
Example to get AVAX balance of an address through your Avalanche node HTTPS endpoint on the X-Chain mainnet: