Socket
Socket
Sign inDemoInstall

web3-net

Package Overview
Dependencies
Maintainers
4
Versions
452
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-net - npm Package Compare versions

Comparing version 4.0.8-dev.a0d6730.0 to 4.0.8-dev.a173a8f.0

20

lib/commonjs/net.d.ts
import { Web3Context } from 'web3-core';
import { DataFormat, DEFAULT_RETURN_FORMAT, Web3NetAPI } from 'web3-types';
/**
* Net class allows you to interact with an Ethereum node’s network properties.
* For using Net package, first install Web3 package using: `npm i web3` or `yarn add web3` based on your package manager, after that Net features can be used.
* ```ts
*
* import { Web3 } from 'web3';
* const web3 = new Web3('https://mainnet.infura.io/v3/<YOURPROJID>');
*
* console.log(await web3.eth.net.getId());
*
* ```
* For using individual package install `web3-net` packages using: `npm i web3-net` or `yarn add web3-net`.
*
* ```ts
* import {Net} from 'web3-net';
*
* const net = new Net('https://mainnet.infura.io/v3/<YOURPROJID>');
* console.log(await net.getId());
* ```
*/
export declare class Net extends Web3Context<Web3NetAPI> {

@@ -4,0 +24,0 @@ /**

@@ -55,2 +55,22 @@ "use strict";

const rpcMethodsWrappers = __importStar(require("./rpc_method_wrappers.js"));
/**
* Net class allows you to interact with an Ethereum node’s network properties.
* For using Net package, first install Web3 package using: `npm i web3` or `yarn add web3` based on your package manager, after that Net features can be used.
* ```ts
*
* import { Web3 } from 'web3';
* const web3 = new Web3('https://mainnet.infura.io/v3/<YOURPROJID>');
*
* console.log(await web3.eth.net.getId());
*
* ```
* For using individual package install `web3-net` packages using: `npm i web3-net` or `yarn add web3-net`.
*
* ```ts
* import {Net} from 'web3-net';
*
* const net = new Net('https://mainnet.infura.io/v3/<YOURPROJID>');
* console.log(await net.getId());
* ```
*/
class Net extends web3_core_1.Web3Context {

@@ -57,0 +77,0 @@ /**

@@ -29,2 +29,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import * as rpcMethodsWrappers from './rpc_method_wrappers.js';
/**
* Net class allows you to interact with an Ethereum node’s network properties.
* For using Net package, first install Web3 package using: `npm i web3` or `yarn add web3` based on your package manager, after that Net features can be used.
* ```ts
*
* import { Web3 } from 'web3';
* const web3 = new Web3('https://mainnet.infura.io/v3/<YOURPROJID>');
*
* console.log(await web3.eth.net.getId());
*
* ```
* For using individual package install `web3-net` packages using: `npm i web3-net` or `yarn add web3-net`.
*
* ```ts
* import {Net} from 'web3-net';
*
* const net = new Net('https://mainnet.infura.io/v3/<YOURPROJID>');
* console.log(await net.getId());
* ```
*/
export class Net extends Web3Context {

@@ -31,0 +51,0 @@ /**

import { Web3Context } from 'web3-core';
import { DataFormat, DEFAULT_RETURN_FORMAT, Web3NetAPI } from 'web3-types';
/**
* Net class allows you to interact with an Ethereum node’s network properties.
* For using Net package, first install Web3 package using: `npm i web3` or `yarn add web3` based on your package manager, after that Net features can be used.
* ```ts
*
* import { Web3 } from 'web3';
* const web3 = new Web3('https://mainnet.infura.io/v3/<YOURPROJID>');
*
* console.log(await web3.eth.net.getId());
*
* ```
* For using individual package install `web3-net` packages using: `npm i web3-net` or `yarn add web3-net`.
*
* ```ts
* import {Net} from 'web3-net';
*
* const net = new Net('https://mainnet.infura.io/v3/<YOURPROJID>');
* console.log(await net.getId());
* ```
*/
export declare class Net extends Web3Context<Web3NetAPI> {

@@ -4,0 +24,0 @@ /**

16

package.json
{
"name": "web3-net",
"version": "4.0.8-dev.a0d6730.0+a0d6730",
"version": "4.0.8-dev.a173a8f.0+a173a8f",
"description": "Web3 module to interact with the Ethereum nodes networking properties.",

@@ -52,15 +52,15 @@ "main": "./lib/commonjs/index.js",

"eslint-plugin-import": "^2.26.0",
"jest": "^28.1.3",
"jest": "^29.7.0",
"jest-extended": "^3.0.1",
"prettier": "^2.7.1",
"ts-jest": "^28.0.7",
"ts-jest": "^29.1.1",
"typescript": "^4.7.4"
},
"dependencies": {
"web3-core": "4.3.1-dev.a0d6730.0+a0d6730",
"web3-rpc-methods": "1.1.4-dev.a0d6730.0+a0d6730",
"web3-types": "1.3.1-dev.a0d6730.0+a0d6730",
"web3-utils": "4.0.8-dev.a0d6730.0+a0d6730"
"web3-core": "4.3.3-dev.a173a8f.0+a173a8f",
"web3-rpc-methods": "1.2.1-dev.a173a8f.0+a173a8f",
"web3-types": "1.5.1-dev.a173a8f.0+a173a8f",
"web3-utils": "4.2.3-dev.a173a8f.0+a173a8f"
},
"gitHead": "a0d6730e317ab97fa4983c09880a0a1d01af9b74"
"gitHead": "a173a8f43fc4961fd52a42aeca5854e6d023b9fd"
}

@@ -22,2 +22,22 @@ /*

/**
* Net class allows you to interact with an Ethereum node’s network properties.
* For using Net package, first install Web3 package using: `npm i web3` or `yarn add web3` based on your package manager, after that Net features can be used.
* ```ts
*
* import { Web3 } from 'web3';
* const web3 = new Web3('https://mainnet.infura.io/v3/<YOURPROJID>');
*
* console.log(await web3.eth.net.getId());
*
* ```
* For using individual package install `web3-net` packages using: `npm i web3-net` or `yarn add web3-net`.
*
* ```ts
* import {Net} from 'web3-net';
*
* const net = new Net('https://mainnet.infura.io/v3/<YOURPROJID>');
* console.log(await net.getId());
* ```
*/
export class Net extends Web3Context<Web3NetAPI> {

@@ -24,0 +44,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc