# 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.


  • 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 is finalized for subscriptions.

Follow these steps to sign up on Chainstack, deploy a node, and find your WSS endpoint credentials.

  1. Sign up with Chainstack.
  2. Deploy a node.
  3. View node access and 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.

# Solana API Subscribe methods