Trait LedgerObjectCommonFields

Source
pub trait LedgerObjectCommonFields {
    // Provided methods
    fn get_ledger_index(&self, register_num: i32) -> Result<Hash256> { ... }
    fn get_flags(&self, register_num: i32) -> Result<u32> { ... }
    fn get_ledger_entry_type(&self) -> Result<u16> { ... }
}
Expand description

Trait providing access to common fields present in all ledger objects.

This trait defines methods to access standard fields that are common across different types of ledger objects in the XRP Ledger.

Provided Methods§

Source

fn get_ledger_index(&self, register_num: i32) -> Result<Hash256>

Retrieves the ledger index (unique identifier) of the ledger object.

§Arguments
  • register_num - The register number where the ledger object is stored
§Returns

The ledger index as a Hash256 value

Source

fn get_flags(&self, register_num: i32) -> Result<u32>

Retrieves the flags field of the ledger object.

§Arguments
  • register_num - The register number where the ledger object is stored
§Returns

The flags as a u32 value

Source

fn get_ledger_entry_type(&self) -> Result<u16>

Retrieves the ledger entry type of the object.

The value 0x0075, mapped to the string Escrow, indicates that this is an Escrow entry.

§Returns

The ledger entry type as a u16 value

Implementors§