You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I failed to use qscc/GetBlockByHash on the Java gateway and peer CLI, and I couldn't find any relevant information on the network. But I can use 'blockchain explorer' to retrieve the correct information.
The text was updated successfully, but these errors were encountered:
I failed to use qscc/GetBlockByHash on the Java gateway and peer CLI, and I couldn't find any relevant information on the network. But I can use 'blockchain explorer' to retrieve the correct information.
Hi, you cannot send the hash string directly. You need to decode it into bytes representing the hexadecimal, cast it to string and send it. Something like this:
StringblockHash = "your_hex_string_here"; // Replace with your actual hex stringbyte[] hashBytes = HexFormat.of().parseHex(blockHash);
Let me know whether you are able to get the block by hash that way. I am interested in this because I am running into problems with the same function, as outlined in #5003.
I failed to use qscc/GetBlockByHash on the Java gateway and peer CLI, and I couldn't find any relevant information on the network. But I can use 'blockchain explorer' to retrieve the correct information.
The text was updated successfully, but these errors were encountered: