Solana tool suite
- Install the Solana tool suite. See Install the Solana Tool Suite.
-
Connect the Solana tool suite to the Chainstack-deployed Solana node:
where YOUR_CHAINSTACK_ENDPOINT is your node HTTPS or WSS endpoint protected either with the key or password. See node access details.
-
Run the Solana client commands.
Example to get the block height:
WebSocket endpoint
When you set the HTTPS endpoint withsolana config set
, the tool will also set a computed WebSocket endpoint, which is incorrect.To use WebSocket, you must set the WebSocket explicitly with --ws
.Example:ShellJSON-RPC API
Interact with your Solana network using JSON-RPC API. Use curl or Postman. Example to get account balance:Solana web3.js
- Install Solana web3.js. See Solana web3.js guide.
-
Use
Connection
to connect to your Solana node and get account balance:where YOUR_CHAINSTACK_ENDPOINT is your node HTTPS or WSS endpoint protected either with the key or password. See node access details.
Solana.py
- Install Solana.py.
-
Use
Client
to connect to your Solana node and get account balance:where YOUR_CHAINSTACK_ENDPOINT is your node HTTPS or WSS endpoint protected either with the key or password. See node access details.
Backpack wallet
Backpack is one of the few (if not the only) Solana wallets allowing to add a custom RPC node endpoint. You should use your own Solana RPC node for enterprise-grade reliability, not to fall victim to a sudden network congestion, or if you want to use your own Trader node . To add your own Solana RPC node endpoint to your Backpack wallet:- Open your Backpack wallet.
- Click the account icon > Settings.
- Click Solana > RPC connection > Custom.
- Enter your Chainstack Solana node endpoint and hit Update.