Current collected state Current
Observed since 20 Oct, 19:42 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Manages web3 subscriptions. This is an internal package.
tus]deps-image]deps-url
This is a sub-package of web3.js
This subscriptions package is used within some web3.js packages.
Please read the documentation for more.
npm install 3f-web3-core-subscriptions
const Web3Subscriptions = require('3f-web3-core-subscriptions');
const sub = new Web3Subscriptions({
name: 'subscribe',
type: 'eth',
subscriptions: {
'newBlockHeaders': {
subscriptionName: 'newHeads',
params: 0,
outputFormatter: formatters.outputBlockFormatter
},
'pendingTransactions': {
params: 0,
outputFormatter: formatters.outputTransactionFormatter
}
}
});
sub.attachToObject(myCoolLib);
myCoolLib.subscribe('newBlockHeaders', function(){ ... });
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 19:42 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:b2e65e19b5f2b1a75ab5f0ea667bb4adcf319fcce339ef8617e599ec70c21619