web3j icon indicating copy to clipboard operation
web3j copied to clipboard

How can i encode data

Open vincentail opened this issue 3 years ago • 1 comments

in smart contract i decode parameter like abi.decode(message, (string, uint64, string, uint64)) how can i encode the parameters as web3js web3.eth.abi.encodeParameters(['string', 'uint64', string, uint64], [a, b, c, d]) by web3j

thanks

vincentail avatar Jun 16 '22 11:06 vincentail

Have you tried TransactionEncoder class?

saugion avatar Apr 02 '23 14:04 saugion