Class TransferFee

java.lang.Object
org.xrpl.xrpl4j.model.immutables.Wrapper<com.google.common.primitives.UnsignedInteger>
org.xrpl.xrpl4j.model.transactions.TransferFee
All Implemented Interfaces:
Serializable, Comparable<Wrapper<com.google.common.primitives.UnsignedInteger>>

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class TransferFee extends Wrapper<com.google.common.primitives.UnsignedInteger>
A wrapped UnsignedInteger containing the TransferFee.

Valid values for this field are between 0 and 50000 inclusive, allowing transfer rates of between 0.00% and 50.00% in increments of 0.001. If this field is provided in a NfTokenMint transaction, the transaction MUST have the tfTransferable flag enabled.

See Also:
  • Method Details

    • value

      public com.google.common.primitives.UnsignedInteger value()
      The wrapped value.
      Specified by:
      value in class Wrapper<com.google.common.primitives.UnsignedInteger>
      Returns:
      The wrapped value.
    • of

      public static TransferFee of(com.google.common.primitives.UnsignedInteger value)
      Construct a new immutable TransferFee instance.
      Parameters:
      value - The value for the value attribute
      Returns:
      An immutable TransferFee instance
    • toString

      public String toString()
      Overrides:
      toString in class Wrapper<com.google.common.primitives.UnsignedInteger>
    • ofPercent

      public static TransferFee ofPercent(BigDecimal percent)
      Construct TransferFee as a percentage value.

      The given percentage value must have at most 3 decimal places of precision, and must be between 0 and 50.000.

      Parameters:
      percent - of type BigDecimal
      Returns:
      TransferFee
    • validateBounds

      @Check public void validateBounds()
      Validates that a NfTokenId value's length is equal to 64 characters.