Tools

Convert Decimal to 32 bit Hex and Flip for Xahau Ledger and Sequence numbers

Converting ledger interval of 100 to 4 byte little endian uint32:



1. Represent 100 in hexadecimal: Decimal 100 is 0x64 in hexadecimal

2. Pad the hexadecimal representation to 4 bytes (8 hex digits): 0x00000064

3. Arrange bytes in little-endian order (least significant byte first):
Original: 00 00 00 64
Little-endian: 64 00 00 00

Therefore, 100 in little-endian 4-byte uint32 is: 64000000