New answers tagged

1

From the Solidity documentation: If the event is declared as anonymous the topics[0] is not generated Unlike regular events, anonymous events do not contain an indexed keccak of their signature. Because of this they cannot be easily searched for, or decoded with certainty unless you have the specific contract ABI. To make an event anonymous, include the ...


2

Maybe you can use the online Ethereum IDE (Remix): Paste the whole code of the address you posted. Select the same compiler version: v0.4.25+commit.59dbf8f1. Select the contract by name: SaiProxyCreateAndExecute. Press on Compilation Details and check the functionHashes section. You will get something like the following: { "581f3c50": "createAndOpen(...


0

There you go (using web3.js v1.0.0-beta.34): const Web3 = require("web3"); const request = require("request"); request("http://api.etherscan.io/api?module=contract&action=getabi&address=0x526af336d614ade5cc252a407062b8861af998f5&format=raw", function(error, response, body) { const web3 = new Web3(); for (const func of JSON.parse(body))...


2

For every function, you want to calculate keccak256(signature) (try https://emn178.github.io/online-tools/keccak_256.html) signature is a concatenation of function's name and parameters' types in parentheses, omitting all spaces and parameter names. For example function transfer(address to, uint256 amount) has signature transfer(address,uint256) ...


1

This is coming late, but to whoever it will help: https://adibas03.github.io/online-ethereum-abi-encoder-decoder/#/ Disclaimer: This is a tool I designed almost 2 years ago


Top 50 recent answers are included