Skip to content

Instantly share code, notes, and snippets.

@mDuo13
Last active June 11, 2021 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mDuo13/14b0d26924db1845dcaa2fcfab8fb9a6 to your computer and use it in GitHub Desktop.
Save mDuo13/14b0d26924db1845dcaa2fcfab8fb9a6 to your computer and use it in GitHub Desktop.
Max AccountRoot size
https://xrpl.org/accountroot.html
Field Size (bits)
================================
index 256
LedgerEntryType 16
Account 160
Balance 64
PreviousTxnID 256
PreviousTxnLgrSeq 32
Sequence 32
--------------------------------
REQUIRED FIELDS SUBTOTAL: 816 bits (102 bytes)
AccountTxnID 256
Domain 2048* (variable; max 256 bytes)
Flags 32 (omitted if the value is 0)
EmailHash 128
MessageKey 264
OwnerCount 32 (omitted if it's 0)
RegularKey 160
TicketCount 32* (requires Tickets amendment; can't currently be set)
TickSize 8
TransferRate 32
WalletLocator 256
--------------------------------
MAXIMUM THEORETICAL SIZE: 4064 bits (508 bytes)
WalletSize (32 bits) omitted because no current transaction can set this field and no extant accounts have it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment