Interface AccountInfoRequestParams
-
- All Superinterfaces:
XrplRequestParams
- All Known Implementing Classes:
ImmutableAccountInfoRequestParams
@Immutable public interface AccountInfoRequestParams extends XrplRequestParams
Request parameters for the "account_info" API method.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Address
account()
A uniqueAddress
for the account.static ImmutableAccountInfoRequestParams.Builder
builder()
Construct a builder for this class.Optional<Hash256>
ledgerHash()
Deprecated.Ledger hash should be specified inledgerSpecifier()
.LedgerIndex
ledgerIndex()
Deprecated.Ledger index and any shortcut values should be specified inledgerSpecifier()
.default LedgerSpecifier
ledgerSpecifier()
Specifies the ledger version to request.static AccountInfoRequestParams
of(Address account)
Constructs anAccountInfoRequestParams
for a specified account, with all other fields set to their defaults.default boolean
queue()
If true, and the FeeEscalation amendment is enabled, also returns stats about queued transactions associated with this account.default boolean
signerLists()
If true, and the MultiSign amendment is enabled, also returns anySignerListObject
s associated with this account.default boolean
strict()
-
-
-
Method Detail
-
builder
static ImmutableAccountInfoRequestParams.Builder builder()
Construct a builder for this class.- Returns:
- An
ImmutableAccountInfoRequestParams.Builder
.
-
of
static AccountInfoRequestParams of(Address account)
Constructs anAccountInfoRequestParams
for a specified account, with all other fields set to their defaults.- Parameters:
account
- TheAddress
of the account.- Returns:
- An
AccountInfoRequestParams
for the specified account.
-
ledgerHash
@Deprecated @Auxiliary Optional<Hash256> ledgerHash()
Deprecated.Ledger hash should be specified inledgerSpecifier()
.A 20-byte hex string for the ledger version to use.- Returns:
- An optionally-present
Hash256
.
-
ledgerIndex
@Deprecated @Nullable @Auxiliary LedgerIndex ledgerIndex()
Deprecated.Ledger index and any shortcut values should be specified inledgerSpecifier()
.The ledger index of the ledger to use, or a shortcut string to choose a ledger automatically.- Returns:
- A
LedgerIndex
. Defaults toLedgerIndex.CURRENT
.
-
ledgerSpecifier
@Default default LedgerSpecifier ledgerSpecifier()
Specifies the ledger version to request. A ledger version can be specified by ledger hash, numerical ledger index, or a shortcut value.- Returns:
- A
LedgerSpecifier
specifying the ledger version to request.
-
strict
@Derived default boolean strict()
A boolean indicating if theaccount()
field only accepts a public key or XRP LedgerAddress
. Always true, asaccount()
is always anAddress
.- Returns:
true
if the account field only accepts a public key or XRP Ledger address, otherwisefalse
. Defaults totrue
.
-
queue
@Default default boolean queue()
If true, and the FeeEscalation amendment is enabled, also returns stats about queued transactions associated with this account. Can only be used when querying for the data from the current open ledger.- Returns:
true
if queue transactions should be returned in the response,false
if not. Defaults tofalse
.
-
signerLists
@Default default boolean signerLists()
If true, and the MultiSign amendment is enabled, also returns anySignerListObject
s associated with this account.- Returns:
true
if signer lists should be returns,false
if not. Defaults totrue
.
-
-