NewPendingTransactionsSubscription
Hierarchy
- Web3Subscription<{ data: HexString }>
- NewPendingTransactionsSubscription
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Parameters
args: any
options: { returnFormat?: DataFormat; subscriptionManager: Web3SubscriptionManager<unknown, {}> }
optionalreturnFormat: DataFormat
subscriptionManager: Web3SubscriptionManager<unknown, {}>
Returns NewPendingTransactionsSubscription
Properties
readonlyargs
Accessors
id
Returns undefined | string
lastBlock
Returns undefined | BlockOutput
Methods
_processSubscriptionError
Parameters
error: Error
Returns void
_processSubscriptionResult
Parameters
data: unknown
Returns void
emit
Type parameters
- K: Web3EventKey<{ data: string } & CommonSubscriptionEvents>
Parameters
eventName: K
params: { data: string } & CommonSubscriptionEvents[K]
Returns void
eventNames
Returns (string | symbol)[]
getMaxListeners
Returns number
listenerCount
Type parameters
- K: Web3EventKey<{ data: string } & CommonSubscriptionEvents>
Parameters
eventName: K
Returns number
listeners
Type parameters
- K: Web3EventKey<{ data: string } & CommonSubscriptionEvents>
Parameters
eventName: K
Returns (...args: any[]) => void[]
off
Type parameters
- K: Web3EventKey<{ data: string } & CommonSubscriptionEvents>
Parameters
eventName: K
fn: Web3EventCallback<{ data: string } & CommonSubscriptionEvents[K]>
Returns void
on
Type parameters
- K: Web3EventKey<{ data: string } & CommonSubscriptionEvents>
Parameters
eventName: K
fn: Web3EventCallback<{ data: string } & CommonSubscriptionEvents[K]>
Returns void
once
Type parameters
- K: Web3EventKey<{ data: string } & CommonSubscriptionEvents>
Parameters
eventName: K
fn: Web3EventCallback<{ data: string } & CommonSubscriptionEvents[K]>
Returns void
processSubscriptionData
Parameters
Returns void
removeAllListeners
Returns EventEmitter
resubscribe
Returns Promise<void>
sendSubscriptionRequest
Returns Promise<string>
sendUnsubscribeRequest
Returns Promise<void>
setMaxListenerWarningThreshold
Parameters
maxListenersWarningThreshold: number
Returns void
subscribe
Returns Promise<string>
unsubscribe
Returns Promise<void>
subscribe('pendingTransactions')
Subscribes to incoming pending transactions.
You can subscribe to pending transactions by calling web3.eth.subscribe('pendingTransactions').