Deprecation Notice: This method was removed in pathfinder v0.23.0 and now returns -32601 Method not found. Use the Starknet WebSocket API instead, for example starknet_subscribeNewHeads.
Parameters
The type of subscription. It supports one of the following type of subscription
The notifications for each new block header
The notifications for events emitted by smart contracts. With Events we can use one of the following fields as well
(Optional) It filter events by contract address
(Optional) It filter events by specific keys
The status updates for a specific transaction. With transactionStatus we have to use transaction_hash as well
The required transaction hash to track
Returns
An identifier for this subscription stream used to associate events with this subscription