Skip to content

查询合约调用方法入参 #9

@Amoroyang

Description

@Amoroyang

通过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数据获取到调用的方法名和入参。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions