You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if its possible to create a customized subscription endpoint so that it becomes something like subscribing to author_pendingExtrinsics when we connect to a custom rpc node (ie: built from rust code). For example, I was thinking of being able to continuously get result when a extrinsic arrives to the mempool
As far as I know, author_pendingExtrinsics in the rpc_request function retrieves more of a snapshot of current pending extrinsics.
Do you know if it makes sense to see if its possible to do something like subscribing to this endpoint instead ? Or could this be replicated by repeatedly calling rpc_request with a customized result_handler function and implementing a set to filter out existing extrinsic hashes that have been seen already
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I was wondering if its possible to create a customized subscription endpoint so that it becomes something like subscribing to author_pendingExtrinsics when we connect to a custom rpc node (ie: built from rust code). For example, I was thinking of being able to continuously get result when a extrinsic arrives to the mempool
As far as I know, author_pendingExtrinsics in the rpc_request function retrieves more of a snapshot of current pending extrinsics.
Do you know if it makes sense to see if its possible to do something like subscribing to this endpoint instead ? Or could this be replicated by repeatedly calling rpc_request with a customized result_handler function and implementing a set to filter out existing extrinsic hashes that have been seen already
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions