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
- kindstringREQUIRED
The type of subscription. It supports one of the following type of subscription
- newHeadsstringREQUIRED
The notifications for each new block header
- eventsstringREQUIRED
The notifications for events emitted by smart contracts. With Events we can use one of the following fields as well
- addressstring
(Optional) It filter events by contract address
- keysarray
(Optional) It filter events by specific keys
- transactionStatusstringREQUIRED
The status updates for a specific transaction. With transactionStatus we have to use transaction_hash as well
- transaction_hashstringREQUIRED
The required transaction hash to track
Returns
- resultinteger
An identifier for this subscription stream used to associate events with this subscription