Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

web3-rpc-methods

Package Overview
Dependencies
Maintainers
5
Versions
336
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-rpc-methods - npm Package Compare versions

Comparing version 1.3.1-dev.04da324.0 to 1.3.1-dev.0681f97.0

112

lib/commonjs/eth_rpc_methods.js

@@ -12,55 +12,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getProtocolVersion = getProtocolVersion;
exports.getSyncing = getSyncing;
exports.getCoinbase = getCoinbase;
exports.getMining = getMining;
exports.getHashRate = getHashRate;
exports.getGasPrice = getGasPrice;
exports.getMaxPriorityFeePerGas = getMaxPriorityFeePerGas;
exports.getAccounts = getAccounts;
exports.getBlockNumber = getBlockNumber;
exports.getBalance = getBalance;
exports.getStorageAt = getStorageAt;
exports.getTransactionCount = getTransactionCount;
exports.getBlockTransactionCountByHash = getBlockTransactionCountByHash;
exports.getBlockTransactionCountByNumber = getBlockTransactionCountByNumber;
exports.getUncleCountByBlockHash = getUncleCountByBlockHash;
exports.getUncleCountByBlockNumber = getUncleCountByBlockNumber;
exports.getCode = getCode;
exports.sign = sign;
exports.signTransaction = signTransaction;
exports.sendTransaction = sendTransaction;
exports.sendRawTransaction = sendRawTransaction;
exports.call = call;
exports.estimateGas = estimateGas;
exports.getBlockByHash = getBlockByHash;
exports.getBlockByNumber = getBlockByNumber;
exports.getTransactionByHash = getTransactionByHash;
exports.getTransactionByBlockHashAndIndex = getTransactionByBlockHashAndIndex;
exports.getTransactionByBlockNumberAndIndex = getTransactionByBlockNumberAndIndex;
exports.getTransactionReceipt = getTransactionReceipt;
exports.getUncleByBlockHashAndIndex = getUncleByBlockHashAndIndex;
exports.getUncleByBlockNumberAndIndex = getUncleByBlockNumberAndIndex;
exports.getCompilers = getCompilers;
exports.compileSolidity = compileSolidity;
exports.compileLLL = compileLLL;
exports.compileSerpent = compileSerpent;
exports.newFilter = newFilter;
exports.newBlockFilter = newBlockFilter;
exports.newPendingTransactionFilter = newPendingTransactionFilter;
exports.uninstallFilter = uninstallFilter;
exports.getFilterChanges = getFilterChanges;
exports.getFilterLogs = getFilterLogs;
exports.getLogs = getLogs;
exports.getWork = getWork;
exports.submitWork = submitWork;
exports.submitHashrate = submitHashrate;
exports.getFeeHistory = getFeeHistory;
exports.getPendingTransactions = getPendingTransactions;
exports.requestAccounts = requestAccounts;
exports.getChainId = getChainId;
exports.getProof = getProof;
exports.getNodeInfo = getNodeInfo;
exports.createAccessList = createAccessList;
exports.signTypedData = signTypedData;
exports.getProof = exports.getChainId = exports.requestAccounts = exports.getPendingTransactions = exports.getFeeHistory = exports.submitHashrate = exports.submitWork = exports.getWork = exports.getLogs = exports.getFilterLogs = exports.getFilterChanges = exports.uninstallFilter = exports.newPendingTransactionFilter = exports.newBlockFilter = exports.newFilter = exports.compileSerpent = exports.compileLLL = exports.compileSolidity = exports.getCompilers = exports.getUncleByBlockNumberAndIndex = exports.getUncleByBlockHashAndIndex = exports.getTransactionReceipt = exports.getTransactionByBlockNumberAndIndex = exports.getTransactionByBlockHashAndIndex = exports.getTransactionByHash = exports.getBlockByNumber = exports.getBlockByHash = exports.estimateGas = exports.call = exports.sendRawTransaction = exports.sendTransaction = exports.signTransaction = exports.sign = exports.getCode = exports.getUncleCountByBlockNumber = exports.getUncleCountByBlockHash = exports.getBlockTransactionCountByNumber = exports.getBlockTransactionCountByHash = exports.getTransactionCount = exports.getStorageAt = exports.getBalance = exports.getBlockNumber = exports.getAccounts = exports.getMaxPriorityFeePerGas = exports.getGasPrice = exports.getHashRate = exports.getMining = exports.getCoinbase = exports.getSyncing = exports.getProtocolVersion = void 0;
exports.signTypedData = exports.createAccessList = exports.getNodeInfo = void 0;
const web3_validator_1 = require("web3-validator");

@@ -75,2 +24,3 @@ function getProtocolVersion(requestManager) {

}
exports.getProtocolVersion = getProtocolVersion;
function getSyncing(requestManager) {

@@ -84,2 +34,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getSyncing = getSyncing;
function getCoinbase(requestManager) {

@@ -93,2 +44,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getCoinbase = getCoinbase;
function getMining(requestManager) {

@@ -102,2 +54,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getMining = getMining;
function getHashRate(requestManager) {

@@ -111,2 +64,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getHashRate = getHashRate;
function getGasPrice(requestManager) {

@@ -120,2 +74,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getGasPrice = getGasPrice;
function getMaxPriorityFeePerGas(requestManager) {

@@ -129,2 +84,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getMaxPriorityFeePerGas = getMaxPriorityFeePerGas;
function getAccounts(requestManager) {

@@ -138,2 +94,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getAccounts = getAccounts;
function getBlockNumber(requestManager) {

@@ -147,2 +104,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getBlockNumber = getBlockNumber;
function getBalance(requestManager, address, blockNumber) {

@@ -157,2 +115,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getBalance = getBalance;
function getStorageAt(requestManager, address, storageSlot, blockNumber) {

@@ -167,2 +126,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getStorageAt = getStorageAt;
function getTransactionCount(requestManager, address, blockNumber) {

@@ -177,2 +137,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getTransactionCount = getTransactionCount;
function getBlockTransactionCountByHash(requestManager, blockHash) {

@@ -187,2 +148,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getBlockTransactionCountByHash = getBlockTransactionCountByHash;
function getBlockTransactionCountByNumber(requestManager, blockNumber) {

@@ -197,2 +159,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getBlockTransactionCountByNumber = getBlockTransactionCountByNumber;
function getUncleCountByBlockHash(requestManager, blockHash) {

@@ -207,2 +170,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getUncleCountByBlockHash = getUncleCountByBlockHash;
function getUncleCountByBlockNumber(requestManager, blockNumber) {

@@ -217,2 +181,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getUncleCountByBlockNumber = getUncleCountByBlockNumber;
function getCode(requestManager, address, blockNumber) {

@@ -227,2 +192,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getCode = getCode;
function sign(requestManager, address, message) {

@@ -237,2 +203,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.sign = sign;
// TODO - Validation should be:

@@ -250,2 +217,3 @@ // isTransactionWithSender(transaction)

}
exports.signTransaction = signTransaction;
// TODO - Validation should be:

@@ -263,2 +231,3 @@ // isTransactionWithSender(transaction)

}
exports.sendTransaction = sendTransaction;
function sendRawTransaction(requestManager, transaction) {

@@ -273,2 +242,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.sendRawTransaction = sendRawTransaction;
// TODO - validate transaction

@@ -285,2 +255,3 @@ function call(requestManager, transaction, blockNumber) {

}
exports.call = call;
// TODO Not sure how to best validate Partial<TransactionWithSender>

@@ -296,2 +267,3 @@ function estimateGas(requestManager, transaction, blockNumber) {

}
exports.estimateGas = estimateGas;
function getBlockByHash(requestManager, blockHash, hydrated) {

@@ -306,2 +278,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getBlockByHash = getBlockByHash;
function getBlockByNumber(requestManager, blockNumber, hydrated) {

@@ -316,2 +289,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getBlockByNumber = getBlockByNumber;
function getTransactionByHash(requestManager, transactionHash) {

@@ -326,2 +300,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getTransactionByHash = getTransactionByHash;
function getTransactionByBlockHashAndIndex(requestManager, blockHash, transactionIndex) {

@@ -336,2 +311,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getTransactionByBlockHashAndIndex = getTransactionByBlockHashAndIndex;
function getTransactionByBlockNumberAndIndex(requestManager, blockNumber, transactionIndex) {

@@ -346,2 +322,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getTransactionByBlockNumberAndIndex = getTransactionByBlockNumberAndIndex;
function getTransactionReceipt(requestManager, transactionHash) {

@@ -356,2 +333,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getTransactionReceipt = getTransactionReceipt;
function getUncleByBlockHashAndIndex(requestManager, blockHash, uncleIndex) {

@@ -366,2 +344,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getUncleByBlockHashAndIndex = getUncleByBlockHashAndIndex;
function getUncleByBlockNumberAndIndex(requestManager, blockNumber, uncleIndex) {

@@ -376,2 +355,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getUncleByBlockNumberAndIndex = getUncleByBlockNumberAndIndex;
function getCompilers(requestManager) {

@@ -385,2 +365,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getCompilers = getCompilers;
function compileSolidity(requestManager, code) {

@@ -395,2 +376,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.compileSolidity = compileSolidity;
function compileLLL(requestManager, code) {

@@ -405,2 +387,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.compileLLL = compileLLL;
function compileSerpent(requestManager, code) {

@@ -415,2 +398,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.compileSerpent = compileSerpent;
function newFilter(requestManager, filter) {

@@ -425,2 +409,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.newFilter = newFilter;
function newBlockFilter(requestManager) {

@@ -434,2 +419,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.newBlockFilter = newBlockFilter;
function newPendingTransactionFilter(requestManager) {

@@ -443,2 +429,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.newPendingTransactionFilter = newPendingTransactionFilter;
function uninstallFilter(requestManager, filterIdentifier) {

@@ -453,2 +440,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.uninstallFilter = uninstallFilter;
function getFilterChanges(requestManager, filterIdentifier) {

@@ -463,2 +451,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getFilterChanges = getFilterChanges;
function getFilterLogs(requestManager, filterIdentifier) {

@@ -473,2 +462,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getFilterLogs = getFilterLogs;
function getLogs(requestManager, filter) {

@@ -483,2 +473,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getLogs = getLogs;
function getWork(requestManager) {

@@ -492,2 +483,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getWork = getWork;
function submitWork(requestManager, nonce, hash, digest) {

@@ -502,2 +494,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.submitWork = submitWork;
function submitHashrate(requestManager, hashRate, id) {

@@ -512,2 +505,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.submitHashrate = submitHashrate;
function getFeeHistory(requestManager, blockCount, newestBlock, rewardPercentiles) {

@@ -525,2 +519,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getFeeHistory = getFeeHistory;
function getPendingTransactions(requestManager) {

@@ -534,2 +529,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getPendingTransactions = getPendingTransactions;
function requestAccounts(requestManager) {

@@ -543,2 +539,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.requestAccounts = requestAccounts;
function getChainId(requestManager) {

@@ -552,2 +549,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getChainId = getChainId;
function getProof(requestManager, address, storageKeys, blockNumber) {

@@ -562,2 +560,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getProof = getProof;
function getNodeInfo(requestManager) {

@@ -571,2 +570,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getNodeInfo = getNodeInfo;
function createAccessList(requestManager, transaction, blockNumber) {

@@ -581,4 +581,5 @@ return __awaiter(this, void 0, void 0, function* () {

}
function signTypedData(requestManager_1, address_1, typedData_1) {
return __awaiter(this, arguments, void 0, function* (requestManager, address, typedData, useLegacy = false) {
exports.createAccessList = createAccessList;
function signTypedData(requestManager, address, typedData, useLegacy = false) {
return __awaiter(this, void 0, void 0, function* () {
// TODO Add validation for typedData

@@ -592,2 +593,3 @@ web3_validator_1.validator.validate(['address'], [address]);

}
exports.signTypedData = signTypedData;
//# sourceMappingURL=eth_rpc_methods.js.map

@@ -12,5 +12,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getId = getId;
exports.getPeerCount = getPeerCount;
exports.isListening = isListening;
exports.isListening = exports.getPeerCount = exports.getId = void 0;
function getId(requestManager) {

@@ -24,2 +22,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getId = getId;
function getPeerCount(requestManager) {

@@ -33,2 +32,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.getPeerCount = getPeerCount;
function isListening(requestManager) {

@@ -42,2 +42,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.isListening = isListening;
//# sourceMappingURL=net_rpc_methods.js.map

@@ -474,4 +474,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

}
export function signTypedData(requestManager_1, address_1, typedData_1) {
return __awaiter(this, arguments, void 0, function* (requestManager, address, typedData, useLegacy = false) {
export function signTypedData(requestManager, address, typedData, useLegacy = false) {
return __awaiter(this, void 0, void 0, function* () {
// TODO Add validation for typedData

@@ -478,0 +478,0 @@ validator.validate(['address'], [address]);

{
"name": "web3-rpc-methods",
"version": "1.3.1-dev.04da324.0+04da324",
"version": "1.3.1-dev.0681f97.0+0681f97",
"description": "Ethereum RPC methods for Web3 4.x.x",

@@ -56,10 +56,10 @@ "main": "./lib/commonjs/index.js",

"ts-jest": "^29.1.1",
"typescript": "^5.5.4"
"typescript": "^4.7.4"
},
"dependencies": {
"web3-core": "4.6.1-dev.04da324.0+04da324",
"web3-types": "1.8.1-dev.04da324.0+04da324",
"web3-validator": "2.0.7-dev.04da324.0+04da324"
"web3-core": "4.7.1-dev.0681f97.0+0681f97",
"web3-types": "1.8.2-dev.0681f97.0+0681f97",
"web3-validator": "2.0.7-dev.0681f97.0+0681f97"
},
"gitHead": "04da324744d2e8d8b358cd4ccf0e97c08d635be3"
"gitHead": "0681f97ed9daa592f86c8d8100d8802f706d046d"
}

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

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