signatureSubscribe

All the specifications for signatureSubscribe Websocket Method on Solana

Subscribe to receive a notification when the transaction with the given signature reaches the specified commitment level.

triangle-exclamation

Parameters required for this RPC call

  • The transaction signature, as base-58 encoded string. The transaction signature must be the first signature from the transaction (see transaction idarrow-up-right for more details).

  • configuration object: This contains the following parameters, all are optional fields.

    • commitment: The commitment describes how finalized a block is at that point in time. Commitment levels processed, confirmed and finalized are supported, defaults to finalized.

    • enableReceivedNotification: Whether or not to subscribe for notifications when signatures are received by the RPC, in addition to when they are processed.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "signatureSubscribe",
  "params": [
    "2EBVM6cB8vAAD93Ktr6Vd8p67XPbQzCJX47MpReuiCXJAtcjaxpvWpcg9Ege1Nr5Tk3a2GFrByT7WPBjdsTycY9b",
    {
      "commitment": "finalized",
      "enableReceivedNotification": false
    }
  ]
}

Notification Format:

The notification will be an RpcResponse JSON object with value containing an object with:

Examples Responses:

Last updated

Was this helpful?