# Solana API WebSocket subscriptions
The Solana API subscriptions allow subscribing to specific events in the blockchain.
Check the Solana docs (opens new window) for more methods and information.
The Solana API subscriptions require the use of a WebSocket endpoint.
Information
- Multiple subscriptions may be active at once.
- Many subscriptions take the optional commitment parameter, defining how finalized a change should be to trigger a notification. If
commitment
is unspecified, the default value isfinalized
for subscriptions.
Follow these steps to sign up on Chainstack, deploy a node, and find your WSS endpoint credentials.
# Solana.py
To use the Solana API subscriptions with the solana.py
library, install the asyncstdlib
package with:
pip install asyncstdlib
# cURL
To use the Solana API subscriptions with cURL, use the code example as a message body in a WebSocket request in Postman.