signatureSubscribe – Solana

The signatureSubscribe JSON-RPC method allows clients to subscribe to a single notification when a transaction with the provided signature reaches the specified commitment level.

The signatureSubscribe RPC Solana method tracks the status of a transaction signature and notifies the client when it has been processed or received.

This is crucial for dApps and Web3 applications that need real-time transaction status updates.

Supported Networks

  • Mainnet

Parameters

Required Parameter

  • string: Transaction signature (Base-58 encoded). This must be the first signature from the transaction.

Optional Parameter

  • commitment (string): Defines the commitment level (finalized, confirmed, processed).

  • enableReceivedNotification (bool): If true, notifications will be sent when signatures are received.

Result

The response returns an integer value which serves as the subscription ID.

Result Format

  • integer: The subscription ID required for unsubscribing.

Request Example

API Endpoints

JSON-RPC Request

Response

A successful request returns the subscription ID.

Example Response

In this response:

  • result: The subscription ID.

Notification Format

The notification contains the transaction status or signature reception confirmation.

Example Notification (Processed Transaction)

Example Notification (Received Signature)

Error Handling

Common signatureSubscribe error scenarios:

  • Invalid transaction signature.

  • Network issues.

  • Unsupported configuration parameters.

Example Error Response

Use Cases

The Solana signatureSubscribe method is essential for:

  • Monitoring transaction status.

  • Tracking real-time application interactions.

  • Enhancing user experience in Web3 applications.

Code signatureSubscribe Example – Web3 Integration

Integration with Web3

By integrating Web3 signatureSubscribe into Solana's Core API, developers can:

  • Track transaction status in real-time.

  • Respond to user actions more effectively.

Optimize application reliability.

Last updated

Was this helpful?