Questions tagged [decoding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
42 views

RLP decoding for a list

in many standard documentation and many blogs, I have found the example for list with two strings like below [“cat”, “dog” ] -> C8 83 636174 83 646F67 and thats how it is decoded 1) Retrieve the ...
0
votes
1answer
46 views

Quorum how to decode result returned by eth_getQuorumPayload api?

I've read the post How to get decrypted transaction data in quorum? I followed the api document and got the result by calling eth_getQuorumPayload curl -H "Content-Type: application/json" -X POST ...
1
vote
1answer
35 views

Encoded input params

I created a simple test contract with a single method: pragma solidity ^0.4.24; contract SimpleTest { function testFunc(string name, bool isFirst) public { //do stuff } } I'm ...
1
vote
0answers
138 views

How to decode Tx data? Online tool?

Is there a fast way to decode the data returning from a Smart Contract call? I know there are github projects with JS libraries to decode this kind of data (such as https://github.com/ConsenSys/abi-...
1
vote
1answer
90 views

Anyone with knowledge in org.web3j.abi.Type Decoder?

I am trying to decode a String with this code that I found but I have not been able to do it. String to = inputdata.substring(10, 74); String value = inputdata.substring(74, 138); Method refMethod = ...
1
vote
0answers
168 views

How to decode the input data in java?

I receive the input data as the image shows. And when I try to decode it with the method: String inputdata = null; Optional<Transaction> tx = web3.ethGetTransactionByHash(txHash).send()....
0
votes
0answers
98 views

How to decode transfer log data Node

I am trying to decode transfer log to get the addresses to and from, and potentially the value but most important address from and to. const subscribe = () => { subscription = web3.eth....
0
votes
0answers
41 views

Deserialising bytes to a solidity struct

Say I have a struct like struct AppState { address player1; address player2; uint256 winner; uint256[100] board; uint256 move; } Now I have a function which receives a byte ...
2
votes
1answer
608 views

How to unpack/decode parameters encoded with web3.eth.abi.encodeParameters in Solidity?

My client app (nodejs) packs some arguments to pass to a smart contracts as bytes _data (similar to ERC223 calls with fallback). I pack the arguments in my JS client like this: const packedArgs = ...