-
Notifications
You must be signed in to change notification settings - Fork 184
/
1906.0.59.0.1735040453041.js.map
1 lines (1 loc) · 1.72 KB
/
1906.0.59.0.1735040453041.js.map
1
{"version":3,"file":"1906.0.59.0.1735040453041.js","mappings":"qRAAA,+/C","sources":["webpack:///../../node_modules/web3-net/lib/esm/index.js"],"sourcesContent":["export default \"/*\\nThis file is part of web3.js.\\n\\nweb3.js is free software: you can redistribute it and/or modify\\nit under the terms of the GNU Lesser General Public License as published by\\nthe Free Software Foundation, either version 3 of the License, or\\n(at your option) any later version.\\n\\nweb3.js is distributed in the hope that it will be useful,\\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\nGNU Lesser General Public License for more details.\\n\\nYou should have received a copy of the GNU Lesser General Public License\\nalong with web3.js. If not, see <http://www.gnu.org/licenses/>.\\n*/\\n/**\\n * The web3-net package allows you to interact with an Ethereum node’s network properties.\\n *\\n * ```ts\\n * import Net from 'web3-net';\\n *\\n * const net = new Net(Net.givenProvider || 'ws://some.local-or-remote.node:8546');\\n * // or using the web3 umbrella package\\n * import Web3 from 'web3';\\n * const web3 = new Web3(Web3.givenProvider || 'ws://some.local-or-remote.node:8546');\\n *\\n * // -> web3.eth.net\\n *\\n * // get the ID of the network\\n * await web3.eth.net.getId();\\n * > 5777n\\n *\\n * // get the peer count\\n * await web3.eth.net.getPeerCount();\\n * > 0n\\n *\\n * // Check if the node is listening for peers\\n * await web3.eth.net.isListening();\\n * > true\\n * ```\\n */\\n/**\\n *\\n */\\nimport { Net } from './net.js';\\nexport * from './net.js';\\nexport * from './rpc_method_wrappers.js';\\nexport default Net;\\n\";"],"names":[],"sourceRoot":""}