New answers tagged

1

The ABI can be converted to a Solidity interface which contains all of the function names: In Python - abi2solc In Javascript - abi2solidity


2

You might get more specific, on-point ideas if you describe what you DO want to do. web3 is merely an abstraction of lower-level methods, so yes, such methods exist. Other abstractions exist as well: other JS libraries libraries in other languages JSON RPC which is accessible via curl and tools like Postman Etherscan and MyEtherWallet provide a UI Mist ...


0

You can call the functions on a deployed smart contract from some websites - for example, using the following steps: visit www.myetherwallet.com connect the wallet you wish to send the transaction from - the quickest of these is probably MetaMask, but you can easily connect a hardware wallet. You'll need a bit of ETH to pay the gas cost of the function ...


0

You may use curl to send the request ... an example can be found in this question: "Exceeds block gas limit" error when i try to send transaction via personal_sendTransaction You will need to properly format the function parameters and it's signature, but that depends on the function you want to call.


1

The function signature (which is a 4 bytes code) is used internally in solidity to call the function. However for a user interface to show the user some readable information it is useful to lookup the function name, which can be done via https://www.4byte.directory. Clef integrates the entire 4bytes database to provide the same information. Developers can ...


1

There is no real problem with your code. Just take a look at the error message. It tells you that you only have 2 seconds time to execute your code. Cause of the nature of blockchain (and ethereum) your deploy will most likely take longer than this. So how do you fix it? In you project root folder you have a file called package.json. When running tests you ...


2

You got the function selector right (0x2f0c92d3), but you failed to correctly ABI encode the address parameter. It should be left-padded with zeros so that it's 32 bytes wide. Try this instead: 0x2f0c92d3000000000000000000000000dc1f5d644e4016f3da89fe002f63fbeb8e071cf1


Top 50 recent answers are included