add method to web3ext

This commit is contained in:
Sina Mahmoodi 2023-06-08 10:43:58 +02:00
parent 80bcb16e88
commit 4478f20135

View file

@ -611,6 +611,12 @@ web3._extend({
params: 4,
inputFormatter: [web3._extend.formatters.inputCallFormatter, web3._extend.formatters.inputDefaultBlockNumberFormatter, null, null],
}),
new web3._extend.Method({
name: 'multicall',
call: 'eth_multicall',
params: 2,
inputFormatter: [null, web3._extend.formatters.inputDefaultBlockNumberFormatter],
}),
],
properties: [
new web3._extend.Property({