How to use the web3-net.Network function in web3-net

To help you get started, we’ve selected a few web3-net examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ethereum / web3.js / packages / web3-eth-txpool / src / index.js View on Github external
export function TxPool(provider, net = null, options = {}) {
    const resolvedProvider = new ProviderResolver().resolve(provider, net);

    return new TxPoolModule(
        resolvedProvider,
        new MethodFactory(Utils, formatters),
        new Network(resolvedProvider, null, options),
        Utils,
        formatters,
        options,
        null
    );
}
github ethereum / web3.js / packages / web3-eth-admin / src / index.js View on Github external
export function Admin(provider, net = null, options = {}) {
    const resolvedProvider = new ProviderResolver().resolve(provider, net);

    return new AdminModule(
        resolvedProvider,
        new MethodFactory(Utils, formatters),
        new Network(resolvedProvider, null, options),
        Utils,
        formatters,
        options,
        null
    );
}

web3-net

Web3 module to interact with the Ethereum nodes networking properties.

LGPL-3.0
Latest version published 6 months ago

Package Health Score

94 / 100
Full package analysis

Popular web3-net functions

Similar packages