How to decode a long HEX number to readable format (server connect with a Node app)

Hi all,

I’m receiving data like this from a call which is HEX:

0x0000000000000000000000008e059d143cd1044af17bb59847a0c417a7834f3900000000000000000000000000000000000000000000aa8f6151b3b721e8cbd9

Decoded it should look like this:

to :0x8e059d143cd1044af17bb59847a0c417a7834f39
amount :805447199074074074074073

I haven’t been able to find a way to format this in Server Connect within Wappler, but assume that’s just me.

Any guidance here would be appreciated!

@Teodor hope you don’t mind the tag, but you helped me out with the last one.

Thanks!

hi @mgaussie ,
you should check if there is a nodejs /php library that converter/decoder this format. If you can’t find any library, you can create it yourself. ( custom formatters )

Totally forgot about the custom formatters.

I’ll see if I can make it work that way :+1:t2:

1 Like