We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
通过TX的RLP数据,如何能够查询到合约调用方法的入参。 例如调用示例合约: Function functionDef = new Function("deposit", Arrays.asList( new org.web3j.abi.datatypes.generated.Uint256(18), new org.web3j.abi.datatypes.Utf8String("test1")), Arrays.asList()); RawTransaction tx = TransactionUtil.createCallContractTransaction(BigInteger.valueOf(nonce), contractAddress, functionDef); 在成功后,希望能够通过解析链的TX RLP数据获取到调用的方法名和入参。
The text was updated successfully, but these errors were encountered:
没太理解什么意思,是需要查询已上链交易的原始数据吗?
Sorry, something went wrong.
是的,如何解析原始数据获取合约调用的信息
不支持直接返回,可以通过txhash调用queryRawTransactionByHash接口,获取交易数据中的input字段,参照以太坊的input解析即可,前提需要知道合约的abi
No branches or pull requests
通过TX的RLP数据,如何能够查询到合约调用方法的入参。
例如调用示例合约:
Function functionDef = new Function("deposit",
Arrays.asList(
new org.web3j.abi.datatypes.generated.Uint256(18),
new org.web3j.abi.datatypes.Utf8String("test1")),
Arrays.asList());
RawTransaction tx = TransactionUtil.createCallContractTransaction(BigInteger.valueOf(nonce), contractAddress, functionDef);
在成功后,希望能够通过解析链的TX RLP数据获取到调用的方法名和入参。
The text was updated successfully, but these errors were encountered: