xrpl 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/xrpl-latest-min.js +1 -1
- package/build/xrpl-latest-min.js.map +1 -1
- package/build/xrpl-latest.js +728 -28
- package/build/xrpl-latest.js.map +1 -1
- package/dist/npm/Wallet/walletFromSecretNumbers.d.ts +7 -0
- package/dist/npm/Wallet/walletFromSecretNumbers.d.ts.map +1 -0
- package/dist/npm/Wallet/walletFromSecretNumbers.js +27 -0
- package/dist/npm/Wallet/walletFromSecretNumbers.js.map +1 -0
- package/dist/npm/client/index.d.ts +2 -1
- package/dist/npm/client/index.d.ts.map +1 -1
- package/dist/npm/client/index.js.map +1 -1
- package/dist/npm/index.d.ts +1 -0
- package/dist/npm/index.d.ts.map +1 -1
- package/dist/npm/index.js +3 -1
- package/dist/npm/index.js.map +1 -1
- package/dist/npm/models/common/index.d.ts +5 -0
- package/dist/npm/models/common/index.d.ts.map +1 -1
- package/dist/npm/models/ledger/AMM.d.ts +27 -0
- package/dist/npm/models/ledger/AMM.d.ts.map +1 -0
- package/dist/npm/models/ledger/AMM.js +3 -0
- package/dist/npm/models/ledger/AMM.js.map +1 -0
- package/dist/npm/models/ledger/AccountRoot.d.ts +2 -0
- package/dist/npm/models/ledger/AccountRoot.d.ts.map +1 -1
- package/dist/npm/models/ledger/AccountRoot.js +1 -0
- package/dist/npm/models/ledger/AccountRoot.js.map +1 -1
- package/dist/npm/models/ledger/LedgerEntry.d.ts +2 -1
- package/dist/npm/models/ledger/LedgerEntry.d.ts.map +1 -1
- package/dist/npm/models/methods/ammInfo.d.ts +39 -0
- package/dist/npm/models/methods/ammInfo.d.ts.map +1 -0
- package/dist/npm/models/methods/ammInfo.js +3 -0
- package/dist/npm/models/methods/ammInfo.js.map +1 -0
- package/dist/npm/models/methods/index.d.ts +4 -3
- package/dist/npm/models/methods/index.d.ts.map +1 -1
- package/dist/npm/models/methods/ledgerEntry.d.ts +10 -0
- package/dist/npm/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/models/transactions/AMMBid.d.ts +12 -0
- package/dist/npm/models/transactions/AMMBid.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMBid.js +56 -0
- package/dist/npm/models/transactions/AMMBid.js.map +1 -0
- package/dist/npm/models/transactions/AMMCreate.d.ts +11 -0
- package/dist/npm/models/transactions/AMMCreate.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMCreate.js +32 -0
- package/dist/npm/models/transactions/AMMCreate.js.map +1 -0
- package/dist/npm/models/transactions/AMMDelete.d.ts +9 -0
- package/dist/npm/models/transactions/AMMDelete.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMDelete.js +22 -0
- package/dist/npm/models/transactions/AMMDelete.js.map +1 -0
- package/dist/npm/models/transactions/AMMDeposit.d.ts +27 -0
- package/dist/npm/models/transactions/AMMDeposit.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMDeposit.js +51 -0
- package/dist/npm/models/transactions/AMMDeposit.js.map +1 -0
- package/dist/npm/models/transactions/AMMVote.d.ts +10 -0
- package/dist/npm/models/transactions/AMMVote.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMVote.js +32 -0
- package/dist/npm/models/transactions/AMMVote.js.map +1 -0
- package/dist/npm/models/transactions/AMMWithdraw.d.ts +31 -0
- package/dist/npm/models/transactions/AMMWithdraw.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMWithdraw.js +50 -0
- package/dist/npm/models/transactions/AMMWithdraw.js.map +1 -0
- package/dist/npm/models/transactions/common.d.ts +2 -1
- package/dist/npm/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/models/transactions/common.js +12 -1
- package/dist/npm/models/transactions/common.js.map +1 -1
- package/dist/npm/models/transactions/index.d.ts +6 -0
- package/dist/npm/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/models/transactions/index.js +5 -1
- package/dist/npm/models/transactions/index.js.map +1 -1
- package/dist/npm/models/transactions/transaction.d.ts +7 -1
- package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/models/transactions/transaction.js +24 -0
- package/dist/npm/models/transactions/transaction.js.map +1 -1
- package/dist/npm/models/utils/flags.d.ts.map +1 -1
- package/dist/npm/models/utils/flags.js +14 -21
- package/dist/npm/models/utils/flags.js.map +1 -1
- package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -1
- package/dist/npm/src/Wallet/walletFromSecretNumbers.d.ts +7 -0
- package/dist/npm/src/Wallet/walletFromSecretNumbers.d.ts.map +1 -0
- package/dist/npm/src/Wallet/walletFromSecretNumbers.js +27 -0
- package/dist/npm/src/Wallet/walletFromSecretNumbers.js.map +1 -0
- package/dist/npm/src/client/index.d.ts +2 -1
- package/dist/npm/src/client/index.d.ts.map +1 -1
- package/dist/npm/src/client/index.js.map +1 -1
- package/dist/npm/src/index.d.ts +1 -0
- package/dist/npm/src/index.d.ts.map +1 -1
- package/dist/npm/src/index.js +3 -1
- package/dist/npm/src/index.js.map +1 -1
- package/dist/npm/src/models/common/index.d.ts +5 -0
- package/dist/npm/src/models/common/index.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/AMM.d.ts +27 -0
- package/dist/npm/src/models/ledger/AMM.d.ts.map +1 -0
- package/dist/npm/src/models/ledger/AMM.js +3 -0
- package/dist/npm/src/models/ledger/AMM.js.map +1 -0
- package/dist/npm/src/models/ledger/AccountRoot.d.ts +2 -0
- package/dist/npm/src/models/ledger/AccountRoot.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/AccountRoot.js +1 -0
- package/dist/npm/src/models/ledger/AccountRoot.js.map +1 -1
- package/dist/npm/src/models/ledger/LedgerEntry.d.ts +2 -1
- package/dist/npm/src/models/ledger/LedgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ammInfo.d.ts +39 -0
- package/dist/npm/src/models/methods/ammInfo.d.ts.map +1 -0
- package/dist/npm/src/models/methods/ammInfo.js +3 -0
- package/dist/npm/src/models/methods/ammInfo.js.map +1 -0
- package/dist/npm/src/models/methods/index.d.ts +4 -3
- package/dist/npm/src/models/methods/index.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledgerEntry.d.ts +10 -0
- package/dist/npm/src/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/AMMBid.d.ts +12 -0
- package/dist/npm/src/models/transactions/AMMBid.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMBid.js +56 -0
- package/dist/npm/src/models/transactions/AMMBid.js.map +1 -0
- package/dist/npm/src/models/transactions/AMMCreate.d.ts +11 -0
- package/dist/npm/src/models/transactions/AMMCreate.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMCreate.js +32 -0
- package/dist/npm/src/models/transactions/AMMCreate.js.map +1 -0
- package/dist/npm/src/models/transactions/AMMDelete.d.ts +9 -0
- package/dist/npm/src/models/transactions/AMMDelete.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMDelete.js +22 -0
- package/dist/npm/src/models/transactions/AMMDelete.js.map +1 -0
- package/dist/npm/src/models/transactions/AMMDeposit.d.ts +27 -0
- package/dist/npm/src/models/transactions/AMMDeposit.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMDeposit.js +51 -0
- package/dist/npm/src/models/transactions/AMMDeposit.js.map +1 -0
- package/dist/npm/src/models/transactions/AMMVote.d.ts +10 -0
- package/dist/npm/src/models/transactions/AMMVote.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMVote.js +32 -0
- package/dist/npm/src/models/transactions/AMMVote.js.map +1 -0
- package/dist/npm/src/models/transactions/AMMWithdraw.d.ts +31 -0
- package/dist/npm/src/models/transactions/AMMWithdraw.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMWithdraw.js +50 -0
- package/dist/npm/src/models/transactions/AMMWithdraw.js.map +1 -0
- package/dist/npm/src/models/transactions/common.d.ts +2 -1
- package/dist/npm/src/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/common.js +12 -1
- package/dist/npm/src/models/transactions/common.js.map +1 -1
- package/dist/npm/src/models/transactions/index.d.ts +6 -0
- package/dist/npm/src/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/index.js +5 -1
- package/dist/npm/src/models/transactions/index.js.map +1 -1
- package/dist/npm/src/models/transactions/transaction.d.ts +7 -1
- package/dist/npm/src/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/transaction.js +24 -0
- package/dist/npm/src/models/transactions/transaction.js.map +1 -1
- package/dist/npm/src/models/utils/flags.d.ts.map +1 -1
- package/dist/npm/src/models/utils/flags.js +14 -21
- package/dist/npm/src/models/utils/flags.js.map +1 -1
- package/dist/npm/src/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/src/sugar/autofill.js +4 -3
- package/dist/npm/src/sugar/autofill.js.map +1 -1
- package/dist/npm/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/sugar/autofill.js +4 -3
- package/dist/npm/sugar/autofill.js.map +1 -1
- package/package.json +8 -6
- package/src/ECDSA.ts +6 -0
- package/src/Wallet/defaultFaucets.ts +82 -0
- package/src/Wallet/fundWallet.ts +344 -0
- package/src/Wallet/index.ts +504 -0
- package/src/Wallet/rfc1751.ts +190 -0
- package/src/Wallet/rfc1751Words.json +243 -0
- package/src/Wallet/signer.ts +173 -0
- package/src/Wallet/walletFromSecretNumbers.ts +37 -0
- package/src/client/BroadcastClient.ts +84 -0
- package/src/client/ConnectionManager.ts +40 -0
- package/src/client/ExponentialBackoff.ts +71 -0
- package/src/client/RequestManager.ts +194 -0
- package/src/client/WSWrapper.ts +106 -0
- package/src/client/connection.ts +593 -0
- package/src/client/index.ts +712 -0
- package/src/client/partialPayment.ts +153 -0
- package/src/errors.ts +161 -0
- package/src/index.ts +20 -0
- package/src/models/common/index.ts +149 -0
- package/src/models/index.ts +16 -0
- package/src/models/ledger/AMM.ts +78 -0
- package/src/models/ledger/AccountRoot.ts +217 -0
- package/src/models/ledger/Amendments.ts +45 -0
- package/src/models/ledger/BaseLedgerEntry.ts +3 -0
- package/src/models/ledger/Check.ts +70 -0
- package/src/models/ledger/DepositPreauth.ts +35 -0
- package/src/models/ledger/DirectoryNode.ts +46 -0
- package/src/models/ledger/Escrow.ts +74 -0
- package/src/models/ledger/FeeSettings.ts +52 -0
- package/src/models/ledger/Ledger.ts +65 -0
- package/src/models/ledger/LedgerEntry.ts +34 -0
- package/src/models/ledger/LedgerHashes.ts +24 -0
- package/src/models/ledger/NFTokenOffer.ts +16 -0
- package/src/models/ledger/NFTokenPage.ts +20 -0
- package/src/models/ledger/NegativeUNL.ts +34 -0
- package/src/models/ledger/Offer.ts +52 -0
- package/src/models/ledger/PayChannel.ts +107 -0
- package/src/models/ledger/RippleState.ts +88 -0
- package/src/models/ledger/SignerList.ts +56 -0
- package/src/models/ledger/Ticket.ts +36 -0
- package/src/models/ledger/index.ts +58 -0
- package/src/models/methods/accountChannels.ts +93 -0
- package/src/models/methods/accountCurrencies.ts +45 -0
- package/src/models/methods/accountInfo.ts +182 -0
- package/src/models/methods/accountLines.ts +137 -0
- package/src/models/methods/accountNFTs.ts +72 -0
- package/src/models/methods/accountObjects.ts +120 -0
- package/src/models/methods/accountOffers.ts +100 -0
- package/src/models/methods/accountTx.ts +109 -0
- package/src/models/methods/ammInfo.ts +145 -0
- package/src/models/methods/baseMethod.ts +58 -0
- package/src/models/methods/bookOffers.ts +96 -0
- package/src/models/methods/channelVerify.ts +41 -0
- package/src/models/methods/depositAuthorized.ts +56 -0
- package/src/models/methods/fee.ts +91 -0
- package/src/models/methods/gatewayBalances.ts +85 -0
- package/src/models/methods/index.ts +391 -0
- package/src/models/methods/ledger.ts +125 -0
- package/src/models/methods/ledgerClosed.ts +32 -0
- package/src/models/methods/ledgerCurrent.ts +31 -0
- package/src/models/methods/ledgerData.ts +78 -0
- package/src/models/methods/ledgerEntry.ts +177 -0
- package/src/models/methods/manifest.ts +54 -0
- package/src/models/methods/nftBuyOffers.ts +37 -0
- package/src/models/methods/nftHistory.ts +113 -0
- package/src/models/methods/nftInfo.ts +25 -0
- package/src/models/methods/nftSellOffers.ts +37 -0
- package/src/models/methods/norippleCheck.ts +82 -0
- package/src/models/methods/pathFind.ts +116 -0
- package/src/models/methods/ping.ts +21 -0
- package/src/models/methods/random.ts +23 -0
- package/src/models/methods/ripplePathFind.ts +81 -0
- package/src/models/methods/serverInfo.ts +257 -0
- package/src/models/methods/serverState.ts +77 -0
- package/src/models/methods/submit.ts +94 -0
- package/src/models/methods/submitMultisigned.ts +51 -0
- package/src/models/methods/subscribe.ts +435 -0
- package/src/models/methods/transactionEntry.ts +47 -0
- package/src/models/methods/tx.ts +69 -0
- package/src/models/methods/unsubscribe.ts +49 -0
- package/src/models/transactions/AMMBid.ts +140 -0
- package/src/models/transactions/AMMCreate.ts +80 -0
- package/src/models/transactions/AMMDelete.ts +55 -0
- package/src/models/transactions/AMMDeposit.ts +130 -0
- package/src/models/transactions/AMMVote.ts +71 -0
- package/src/models/transactions/AMMWithdraw.ts +126 -0
- package/src/models/transactions/NFTokenAcceptOffer.ts +104 -0
- package/src/models/transactions/NFTokenBurn.ts +48 -0
- package/src/models/transactions/NFTokenCancelOffer.ts +45 -0
- package/src/models/transactions/NFTokenCreateOffer.ts +145 -0
- package/src/models/transactions/NFTokenMint.ts +123 -0
- package/src/models/transactions/UNLModify.ts +20 -0
- package/src/models/transactions/accountDelete.ts +50 -0
- package/src/models/transactions/accountSet.ts +228 -0
- package/src/models/transactions/checkCancel.ts +34 -0
- package/src/models/transactions/checkCash.ts +73 -0
- package/src/models/transactions/checkCreate.ts +90 -0
- package/src/models/transactions/clawback.ts +49 -0
- package/src/models/transactions/common.ts +295 -0
- package/src/models/transactions/depositPreauth.ts +68 -0
- package/src/models/transactions/enableAmendment.ts +26 -0
- package/src/models/transactions/escrowCancel.ts +45 -0
- package/src/models/transactions/escrowCreate.ts +100 -0
- package/src/models/transactions/escrowFinish.ts +63 -0
- package/src/models/transactions/index.ts +66 -0
- package/src/models/transactions/metadata.ts +69 -0
- package/src/models/transactions/offerCancel.ts +37 -0
- package/src/models/transactions/offerCreate.ts +144 -0
- package/src/models/transactions/payment.ts +278 -0
- package/src/models/transactions/paymentChannelClaim.ts +165 -0
- package/src/models/transactions/paymentChannelCreate.ts +116 -0
- package/src/models/transactions/paymentChannelFund.ts +65 -0
- package/src/models/transactions/setFee.ts +48 -0
- package/src/models/transactions/setRegularKey.ts +33 -0
- package/src/models/transactions/signerListSet.ts +89 -0
- package/src/models/transactions/ticketCreate.ts +50 -0
- package/src/models/transactions/transaction.ts +303 -0
- package/src/models/transactions/trustSet.ts +146 -0
- package/src/models/utils/flags.ts +98 -0
- package/src/models/utils/index.ts +37 -0
- package/src/sugar/autofill.ts +373 -0
- package/src/sugar/balances.ts +123 -0
- package/src/sugar/getFeeXrp.ts +45 -0
- package/src/sugar/getLedgerIndex.ts +15 -0
- package/src/sugar/getOrderbook.ts +152 -0
- package/src/sugar/index.ts +11 -0
- package/src/sugar/submit.ts +305 -0
- package/src/sugar/utils.ts +29 -0
- package/src/utils/derive.ts +23 -0
- package/src/utils/getBalanceChanges.ts +186 -0
- package/src/utils/getNFTokenID.ts +97 -0
- package/src/utils/hashes/HashPrefix.ts +40 -0
- package/src/utils/hashes/README.md +65 -0
- package/src/utils/hashes/SHAMap/InnerNode.ts +124 -0
- package/src/utils/hashes/SHAMap/LeafNode.ts +69 -0
- package/src/utils/hashes/SHAMap/index.ts +41 -0
- package/src/utils/hashes/SHAMap/node.ts +14 -0
- package/src/utils/hashes/hashLedger.ts +236 -0
- package/src/utils/hashes/index.ts +187 -0
- package/src/utils/hashes/ledgerSpaces.ts +34 -0
- package/src/utils/hashes/sha512Half.ts +19 -0
- package/src/utils/index.ts +223 -0
- package/src/utils/parseNFTokenID.ts +84 -0
- package/src/utils/quality.ts +169 -0
- package/src/utils/signPaymentChannelClaim.ts +27 -0
- package/src/utils/stringConversion.ts +27 -0
- package/src/utils/timeConversion.ts +53 -0
- package/src/utils/verifyPaymentChannelClaim.ts +30 -0
- package/src/utils/xrpConversion.ts +104 -0
@@ -0,0 +1,109 @@
|
|
1
|
+
import { ResponseOnlyTxInfo } from '../common'
|
2
|
+
import { Transaction, TransactionMetadata } from '../transactions'
|
3
|
+
|
4
|
+
import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
|
5
|
+
|
6
|
+
/**
|
7
|
+
* The account_tx method retrieves a list of transactions that involved the
|
8
|
+
* specified account. Expects a response in the form of a {@link
|
9
|
+
* AccountTxResponse}.
|
10
|
+
*
|
11
|
+
* @category Requests
|
12
|
+
*/
|
13
|
+
export interface AccountTxRequest extends BaseRequest, LookupByLedgerRequest {
|
14
|
+
command: 'account_tx'
|
15
|
+
/** A unique identifier for the account, most commonly the account's address. */
|
16
|
+
account: string
|
17
|
+
/**
|
18
|
+
* Use to specify the earliest ledger to include transactions from. A value
|
19
|
+
* of -1 instructs the server to use the earliest validated ledger version
|
20
|
+
* available.
|
21
|
+
*/
|
22
|
+
ledger_index_min?: number
|
23
|
+
/**
|
24
|
+
* Use to specify the most recent ledger to include transactions from. A
|
25
|
+
* value of -1 instructs the server to use the most recent validated ledger
|
26
|
+
* version available.
|
27
|
+
*/
|
28
|
+
ledger_index_max?: number
|
29
|
+
/**
|
30
|
+
* If true, return transactions as hex strings instead of JSON. The default is
|
31
|
+
* false.
|
32
|
+
*/
|
33
|
+
binary?: boolean
|
34
|
+
/**
|
35
|
+
* If true, returns values indexed with the oldest ledger first. Otherwise,
|
36
|
+
* the results are indexed with the newest ledger first.
|
37
|
+
*/
|
38
|
+
forward?: boolean
|
39
|
+
/**
|
40
|
+
* Default varies. Limit the number of transactions to retrieve. The server
|
41
|
+
* is not required to honor this value.
|
42
|
+
*/
|
43
|
+
limit?: number
|
44
|
+
/**
|
45
|
+
* Value from a previous paginated response. Resume retrieving data where
|
46
|
+
* that response left off. This value is stable even if there is a change in
|
47
|
+
* the server's range of available ledgers.
|
48
|
+
*/
|
49
|
+
marker?: unknown
|
50
|
+
}
|
51
|
+
|
52
|
+
export interface AccountTxTransaction {
|
53
|
+
/** The ledger index of the ledger version that included this transaction. */
|
54
|
+
ledger_index: number
|
55
|
+
/**
|
56
|
+
* If binary is True, then this is a hex string of the transaction metadata.
|
57
|
+
* Otherwise, the transaction metadata is included in JSON format.
|
58
|
+
*/
|
59
|
+
meta: string | TransactionMetadata
|
60
|
+
/** JSON object defining the transaction. */
|
61
|
+
tx?: Transaction & ResponseOnlyTxInfo
|
62
|
+
/** Unique hashed String representing the transaction. */
|
63
|
+
tx_blob?: string
|
64
|
+
/**
|
65
|
+
* Whether or not the transaction is included in a validated ledger. Any
|
66
|
+
* transaction not yet in a validated ledger is subject to change.
|
67
|
+
*/
|
68
|
+
validated: boolean
|
69
|
+
}
|
70
|
+
|
71
|
+
/**
|
72
|
+
* Expected response from an {@link AccountTxRequest}.
|
73
|
+
*
|
74
|
+
* @category Responses
|
75
|
+
*/
|
76
|
+
export interface AccountTxResponse extends BaseResponse {
|
77
|
+
result: {
|
78
|
+
/** Unique Address identifying the related account. */
|
79
|
+
account: string
|
80
|
+
/**
|
81
|
+
* The ledger index of the earliest ledger actually searched for
|
82
|
+
* transactions.
|
83
|
+
*/
|
84
|
+
ledger_index_min: number
|
85
|
+
/**
|
86
|
+
* The ledger index of the most recent ledger actually searched for
|
87
|
+
* transactions.
|
88
|
+
*/
|
89
|
+
ledger_index_max: number
|
90
|
+
/** The limit value used in the request. */
|
91
|
+
limit: number
|
92
|
+
/**
|
93
|
+
* Server-defined value indicating the response is paginated. Pass this
|
94
|
+
* to the next call to resume where this call left off.
|
95
|
+
*/
|
96
|
+
marker?: unknown
|
97
|
+
/**
|
98
|
+
* Array of transactions matching the request's criteria, as explained
|
99
|
+
* below.
|
100
|
+
*/
|
101
|
+
transactions: AccountTxTransaction[]
|
102
|
+
/**
|
103
|
+
* If included and set to true, the information in this response comes from
|
104
|
+
* a validated ledger version. Otherwise, the information is subject to
|
105
|
+
* change.
|
106
|
+
*/
|
107
|
+
validated?: boolean
|
108
|
+
}
|
109
|
+
}
|
@@ -0,0 +1,145 @@
|
|
1
|
+
import { Amount, Currency, IssuedCurrencyAmount } from '../common'
|
2
|
+
|
3
|
+
import { BaseRequest, BaseResponse } from './baseMethod'
|
4
|
+
|
5
|
+
/**
|
6
|
+
* The `amm_info` method gets information about an Automated Market Maker (AMM) instance.
|
7
|
+
* Returns an {@link AMMInfoResponse}.
|
8
|
+
*
|
9
|
+
* @category Requests
|
10
|
+
*/
|
11
|
+
export interface AMMInfoRequest extends BaseRequest {
|
12
|
+
command: 'amm_info'
|
13
|
+
|
14
|
+
/**
|
15
|
+
* One of the assets of the AMM pool to look up.
|
16
|
+
*/
|
17
|
+
asset: Currency
|
18
|
+
|
19
|
+
/**
|
20
|
+
* The other asset of the AMM pool.
|
21
|
+
*/
|
22
|
+
asset2: Currency
|
23
|
+
}
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Response expected from an {@link AMMInfoRequest}.
|
27
|
+
*
|
28
|
+
* @category Responses
|
29
|
+
*/
|
30
|
+
export interface AMMInfoResponse extends BaseResponse {
|
31
|
+
result: {
|
32
|
+
amm: {
|
33
|
+
/**
|
34
|
+
* The address of the AMM Account.
|
35
|
+
*/
|
36
|
+
account: string
|
37
|
+
|
38
|
+
/**
|
39
|
+
* The total amount of one asset in the AMM's pool.
|
40
|
+
* (Note: This could be asset or asset2 from the request)
|
41
|
+
*/
|
42
|
+
amount: Amount
|
43
|
+
|
44
|
+
/**
|
45
|
+
* The total amount of the other asset in the AMM's pool.
|
46
|
+
* (Note: This could be asset or asset2 from the request)
|
47
|
+
*/
|
48
|
+
amount2: Amount
|
49
|
+
|
50
|
+
/**
|
51
|
+
* (Omitted for XRP) If true, the amount currency is currently frozen for asset.
|
52
|
+
*/
|
53
|
+
asset_frozen?: boolean
|
54
|
+
|
55
|
+
/**
|
56
|
+
* (Omitted for XRP) If true, the amount currency is currently frozen for asset2.
|
57
|
+
*/
|
58
|
+
asset2_frozen?: boolean
|
59
|
+
|
60
|
+
/**
|
61
|
+
* (May be omitted) An Auction Slot Object describing the current auction slot holder, if there is one.
|
62
|
+
*/
|
63
|
+
auction_slot?: {
|
64
|
+
/**
|
65
|
+
* The address of the account that owns the auction slot.
|
66
|
+
*/
|
67
|
+
account: string
|
68
|
+
|
69
|
+
/**
|
70
|
+
* A list of additional accounts that the auction slot holder has designated as being eligible
|
71
|
+
* of the discounted trading fee.
|
72
|
+
* Each member of this array is an object with one field, account, containing the address of the designated account.
|
73
|
+
*/
|
74
|
+
auth_accounts: Array<{
|
75
|
+
account: string
|
76
|
+
}>
|
77
|
+
|
78
|
+
/**
|
79
|
+
* The discounted trading fee that applies to the auction slot holder, and any eligible accounts
|
80
|
+
* when trading against this AMM.
|
81
|
+
* This is always 0.
|
82
|
+
*/
|
83
|
+
discounted_fee: number
|
84
|
+
|
85
|
+
/**
|
86
|
+
* The ISO 8601 UTC timestamp after which this auction slot expires.
|
87
|
+
* After expired, the auction slot does not apply (but the data can remain in the ledger
|
88
|
+
* until another transaction replaces it or cleans it up).
|
89
|
+
*/
|
90
|
+
expiration: string
|
91
|
+
|
92
|
+
/**
|
93
|
+
* The amount, in LP Tokens, that the auction slot holder paid to win the auction slot.
|
94
|
+
* This affects the price to outbid the current slot holder.
|
95
|
+
*/
|
96
|
+
price: Amount
|
97
|
+
|
98
|
+
/**
|
99
|
+
* The current 72-minute time interval this auction slot is in, from 0 to 19.
|
100
|
+
* The auction slot expires after 24 hours (20 intervals of 72 minutes)
|
101
|
+
* and affects the cost to outbid the current holder and how much the current holder is refunded if someone outbids them.
|
102
|
+
*/
|
103
|
+
time_interval: number
|
104
|
+
}
|
105
|
+
|
106
|
+
/**
|
107
|
+
* The total amount of this AMM's LP Tokens outstanding.
|
108
|
+
*/
|
109
|
+
lp_token: IssuedCurrencyAmount
|
110
|
+
|
111
|
+
/**
|
112
|
+
* The AMM's current trading fee, in units of 1/100,000; a value of 1 is equivalent to a 0.001% fee.
|
113
|
+
*/
|
114
|
+
trading_fee: number
|
115
|
+
|
116
|
+
/**
|
117
|
+
* (May be omitted) The current votes for the AMM's trading fee, as Vote Slot Objects.
|
118
|
+
*/
|
119
|
+
vote_slots?: Array<{
|
120
|
+
account: string
|
121
|
+
trading_fee: number
|
122
|
+
vote_weight: number
|
123
|
+
}>
|
124
|
+
}
|
125
|
+
|
126
|
+
/**
|
127
|
+
* The identifying hash of the ledger that was used to generate this
|
128
|
+
* response.
|
129
|
+
*/
|
130
|
+
ledger_hash?: string
|
131
|
+
|
132
|
+
/**
|
133
|
+
* The ledger index of the ledger version that was used to generate this
|
134
|
+
* response.
|
135
|
+
*/
|
136
|
+
ledger_index?: number
|
137
|
+
|
138
|
+
/**
|
139
|
+
* If included and set to true, the information in this response comes from
|
140
|
+
* a validated ledger version. Otherwise, the information is subject to
|
141
|
+
* change.
|
142
|
+
*/
|
143
|
+
validated?: boolean
|
144
|
+
}
|
145
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import { LedgerIndex } from '../common'
|
2
|
+
|
3
|
+
import type { Request } from '.'
|
4
|
+
|
5
|
+
export interface BaseRequest {
|
6
|
+
[x: string]: unknown
|
7
|
+
/**
|
8
|
+
* A unique value to identify this request. The response to this request uses
|
9
|
+
* the same id field. This way, even if responses arrive out of order, you
|
10
|
+
* know which request prompted which response.
|
11
|
+
*/
|
12
|
+
id?: number | string
|
13
|
+
/** The name of the API method. */
|
14
|
+
command: string
|
15
|
+
/** The API version to use. If omitted, use version 1. */
|
16
|
+
api_version?: number
|
17
|
+
}
|
18
|
+
|
19
|
+
export interface LookupByLedgerRequest {
|
20
|
+
/** A 20-byte hex string for the ledger version to use. */
|
21
|
+
ledger_hash?: string
|
22
|
+
/** The ledger index of the ledger to use, or a shortcut string. */
|
23
|
+
ledger_index?: LedgerIndex
|
24
|
+
}
|
25
|
+
|
26
|
+
export interface ResponseWarning {
|
27
|
+
id: number
|
28
|
+
message: string
|
29
|
+
details?: { [key: string]: string }
|
30
|
+
}
|
31
|
+
|
32
|
+
export interface BaseResponse {
|
33
|
+
id: number | string
|
34
|
+
status?: 'success' | string
|
35
|
+
type: 'response' | string
|
36
|
+
result: unknown
|
37
|
+
warning?: 'load'
|
38
|
+
warnings?: ResponseWarning[]
|
39
|
+
forwarded?: boolean
|
40
|
+
api_version?: number
|
41
|
+
}
|
42
|
+
|
43
|
+
/**
|
44
|
+
* The shape of an error response from rippled. xrpl.js handles rejections by
|
45
|
+
* throwing, and allowing the user to handle in the catch block of a promise.
|
46
|
+
*
|
47
|
+
* @category Responses
|
48
|
+
*/
|
49
|
+
export interface ErrorResponse {
|
50
|
+
id: number | string
|
51
|
+
status: 'error'
|
52
|
+
type: 'response' | string
|
53
|
+
error: string
|
54
|
+
error_code?: string
|
55
|
+
error_message?: string
|
56
|
+
request: Request
|
57
|
+
api_version?: number
|
58
|
+
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
import { Amount } from '../common'
|
2
|
+
import { Offer } from '../ledger'
|
3
|
+
|
4
|
+
import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
|
5
|
+
|
6
|
+
export interface BookOfferCurrency {
|
7
|
+
currency: string
|
8
|
+
issuer?: string
|
9
|
+
}
|
10
|
+
|
11
|
+
/**
|
12
|
+
* The book_offers method retrieves a list of offers, also known as the order.
|
13
|
+
* Book, between two currencies. Returns an {@link BookOffersResponse}.
|
14
|
+
*
|
15
|
+
* @category Requests
|
16
|
+
*/
|
17
|
+
export interface BookOffersRequest extends BaseRequest, LookupByLedgerRequest {
|
18
|
+
command: 'book_offers'
|
19
|
+
/**
|
20
|
+
* If provided, the server does not provide more than this many offers in the
|
21
|
+
* results. The total number of results returned may be fewer than the limit,
|
22
|
+
* because the server omits unfunded offers.
|
23
|
+
*/
|
24
|
+
limit?: number
|
25
|
+
/**
|
26
|
+
* The Address of an account to use as a perspective. Unfunded offers placed
|
27
|
+
* by this account are always included in the response.
|
28
|
+
*/
|
29
|
+
taker?: string
|
30
|
+
/**
|
31
|
+
* Specification of which currency the account taking the offer would
|
32
|
+
* receive, as an object with currency and issuer fields (omit issuer for
|
33
|
+
* XRP), like currency amounts.
|
34
|
+
*/
|
35
|
+
taker_gets: BookOfferCurrency
|
36
|
+
/**
|
37
|
+
* Specification of which currency the account taking the offer would pay, as
|
38
|
+
* an object with currency and issuer fields (omit issuer for XRP), like
|
39
|
+
* currency amounts.
|
40
|
+
*/
|
41
|
+
taker_pays: BookOfferCurrency
|
42
|
+
}
|
43
|
+
|
44
|
+
export interface BookOffer extends Offer {
|
45
|
+
/**
|
46
|
+
* Amount of the TakerGets currency the side placing the offer has available
|
47
|
+
* to be traded. (XRP is represented as drops; any other currency is
|
48
|
+
* represented as a decimal value.) If a trader has multiple offers in the
|
49
|
+
* same book, only the highest-ranked offer includes this field.
|
50
|
+
*/
|
51
|
+
owner_funds?: string
|
52
|
+
/**
|
53
|
+
* The maximum amount of currency that the taker can get, given the funding
|
54
|
+
* status of the offer.
|
55
|
+
*/
|
56
|
+
taker_gets_funded?: Amount
|
57
|
+
/**
|
58
|
+
* The maximum amount of currency that the taker would pay, given the funding
|
59
|
+
* status of the offer.
|
60
|
+
*/
|
61
|
+
taker_pays_funded?: Amount
|
62
|
+
/**
|
63
|
+
* The exchange rate, as the ratio taker_pays divided by taker_gets. For
|
64
|
+
* fairness, offers that have the same quality are automatically taken
|
65
|
+
* first-in, first-out.
|
66
|
+
*/
|
67
|
+
quality?: string
|
68
|
+
}
|
69
|
+
|
70
|
+
/**
|
71
|
+
* Expected response from a {@link BookOffersRequest}.
|
72
|
+
*
|
73
|
+
* @category Responses
|
74
|
+
*/
|
75
|
+
export interface BookOffersResponse extends BaseResponse {
|
76
|
+
result: {
|
77
|
+
/**
|
78
|
+
* The ledger index of the current in-progress ledger version, which was
|
79
|
+
* used to retrieve this information.
|
80
|
+
*/
|
81
|
+
ledger_current_index?: number
|
82
|
+
/**
|
83
|
+
* The ledger index of the ledger version that was used when retrieving
|
84
|
+
* this data, as requested.
|
85
|
+
*/
|
86
|
+
ledger_index?: number
|
87
|
+
/**
|
88
|
+
* The identifying hash of the ledger version that was used when retrieving
|
89
|
+
* this data, as requested.
|
90
|
+
*/
|
91
|
+
ledger_hash?: string
|
92
|
+
/** Array of offer objects, each of which has the fields of an Offer object. */
|
93
|
+
offers: BookOffer[]
|
94
|
+
validated?: boolean
|
95
|
+
}
|
96
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { BaseRequest, BaseResponse } from './baseMethod'
|
2
|
+
|
3
|
+
/**
|
4
|
+
* The `channel_verify` method checks the validity of a signature that can be
|
5
|
+
* used to redeem a specific amount of XRP from a payment channel. Expects a
|
6
|
+
* response in the form of a {@link ChannelVerifyResponse}.
|
7
|
+
*
|
8
|
+
* @category Requests
|
9
|
+
*/
|
10
|
+
export interface ChannelVerifyRequest extends BaseRequest {
|
11
|
+
command: 'channel_verify'
|
12
|
+
/** The amount of XRP, in drops, the provided signature authorizes. */
|
13
|
+
amount: string
|
14
|
+
/**
|
15
|
+
* The Channel ID of the channel that provides the XRP. This is a
|
16
|
+
* 64-character hexadecimal string.
|
17
|
+
*/
|
18
|
+
channel_id: string
|
19
|
+
/**
|
20
|
+
* The public key of the channel and the key pair that was used to create the
|
21
|
+
* signature, in hexadecimal or the XRP Ledger's base58 format.
|
22
|
+
*/
|
23
|
+
public_key: string
|
24
|
+
/** The signature to verify, in hexadecimal. */
|
25
|
+
signature: string
|
26
|
+
}
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Response expected from an {@link ChannelVerifyRequest}.
|
30
|
+
*
|
31
|
+
* @category Responses
|
32
|
+
*/
|
33
|
+
export interface ChannelVerifyResponse extends BaseResponse {
|
34
|
+
result: {
|
35
|
+
/**
|
36
|
+
* If true, the signature is valid for the stated amount, channel, and
|
37
|
+
* public key.
|
38
|
+
*/
|
39
|
+
signature_verified: boolean
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
|
2
|
+
|
3
|
+
/**
|
4
|
+
* The deposit_authorized command indicates whether one account is authorized to
|
5
|
+
* send payments directly to another. Expects a response in the form of a {@link
|
6
|
+
* DepositAuthorizedResponse}.
|
7
|
+
*
|
8
|
+
* @category Requests
|
9
|
+
*/
|
10
|
+
export interface DepositAuthorizedRequest
|
11
|
+
extends BaseRequest,
|
12
|
+
LookupByLedgerRequest {
|
13
|
+
command: 'deposit_authorized'
|
14
|
+
/** The sender of a possible payment. */
|
15
|
+
source_account: string
|
16
|
+
/** The recipient of a possible payment. */
|
17
|
+
destination_account: string
|
18
|
+
}
|
19
|
+
|
20
|
+
/**
|
21
|
+
* Expected response from a {@link DepositAuthorizedRequest}.
|
22
|
+
*
|
23
|
+
* @category Responses
|
24
|
+
*/
|
25
|
+
export interface DepositAuthorizedResponse extends BaseResponse {
|
26
|
+
result: {
|
27
|
+
/**
|
28
|
+
* Whether the specified source account is authorized to send payments
|
29
|
+
* directly to the destination account. If true, either the destination
|
30
|
+
* account does not require Deposit Authorization or the source account is
|
31
|
+
* preauthorized.
|
32
|
+
*/
|
33
|
+
deposit_authorized: boolean
|
34
|
+
/** The destination account specified in the request. */
|
35
|
+
destination_account: string
|
36
|
+
/**
|
37
|
+
* The identifying hash of the ledger that was used to generate this
|
38
|
+
* Response.
|
39
|
+
*/
|
40
|
+
ledger_hash?: string
|
41
|
+
/**
|
42
|
+
* The ledger index of the ledger version that was used to generate this
|
43
|
+
* Response.
|
44
|
+
*/
|
45
|
+
ledger_index?: number
|
46
|
+
/**
|
47
|
+
* The ledger index of the current in-progress ledger version, which was
|
48
|
+
* used to generate this response.
|
49
|
+
*/
|
50
|
+
ledger_current_index?: number
|
51
|
+
/** The source account specified in the request. */
|
52
|
+
source_account: string
|
53
|
+
/** If true, the information comes from a validated ledger version. */
|
54
|
+
validated?: boolean
|
55
|
+
}
|
56
|
+
}
|
@@ -0,0 +1,91 @@
|
|
1
|
+
import { BaseRequest, BaseResponse } from './baseMethod'
|
2
|
+
|
3
|
+
/**
|
4
|
+
* The `fee` command reports the current state of the open-ledger requirements
|
5
|
+
* for the transaction cost. This requires the FeeEscalation amendment to be
|
6
|
+
* enabled. Expects a response in the form of a {@link FeeResponse}.
|
7
|
+
*
|
8
|
+
* @example
|
9
|
+
* ```ts
|
10
|
+
* const feeRequest: FeeRequest = {
|
11
|
+
* command: 'fee'
|
12
|
+
* }
|
13
|
+
* ```
|
14
|
+
*
|
15
|
+
* @category Requests
|
16
|
+
*/
|
17
|
+
export interface FeeRequest extends BaseRequest {
|
18
|
+
command: 'fee'
|
19
|
+
}
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Response expected from a {@link FeeRequest}.
|
23
|
+
*
|
24
|
+
* @category Responses
|
25
|
+
*/
|
26
|
+
export interface FeeResponse extends BaseResponse {
|
27
|
+
result: {
|
28
|
+
/** Number of transactions provisionally included in the in-progress ledger. */
|
29
|
+
current_ledger_size: string
|
30
|
+
/** Number of transactions currently queued for the next ledger. */
|
31
|
+
current_queue_size: string
|
32
|
+
drops: {
|
33
|
+
/**
|
34
|
+
* The transaction cost required for a reference transaction to be
|
35
|
+
* included in a ledger under minimum load, represented in drops of XRP.
|
36
|
+
*/
|
37
|
+
base_fee: string
|
38
|
+
/**
|
39
|
+
* An approximation of the median transaction cost among transactions.
|
40
|
+
* Included in the previous validated ledger, represented in drops of XRP.
|
41
|
+
*/
|
42
|
+
median_fee: string
|
43
|
+
/**
|
44
|
+
* The minimum transaction cost for a reference transaction to be queued
|
45
|
+
* for a later ledger, represented in drops of XRP. If greater than
|
46
|
+
* base_fee, the transaction queue is full.
|
47
|
+
*/
|
48
|
+
minimum_fee: string
|
49
|
+
/**
|
50
|
+
* The minimum transaction cost that a reference transaction must pay to
|
51
|
+
* be included in the current open ledger, represented in drops of XRP.
|
52
|
+
*/
|
53
|
+
open_ledger_fee: string
|
54
|
+
}
|
55
|
+
/**
|
56
|
+
* The approximate number of transactions expected to be included in the
|
57
|
+
* current ledger. This is based on the number of transactions in the
|
58
|
+
* previous ledger.
|
59
|
+
*/
|
60
|
+
expected_ledger_size: string
|
61
|
+
/** The Ledger Index of the current open ledger these stats describe. */
|
62
|
+
ledger_current_index: number
|
63
|
+
levels: {
|
64
|
+
/**
|
65
|
+
* The median transaction cost among transactions in the previous
|
66
|
+
* validated ledger, represented in fee levels.
|
67
|
+
*/
|
68
|
+
median_level: string
|
69
|
+
/**
|
70
|
+
* The minimum transaction cost required to be queued for a future
|
71
|
+
* ledger, represented in fee levels.
|
72
|
+
*/
|
73
|
+
minimum_level: string
|
74
|
+
/**
|
75
|
+
* The minimum transaction cost required to be included in the current
|
76
|
+
* open ledger, represented in fee levels.
|
77
|
+
*/
|
78
|
+
open_ledger_level: string
|
79
|
+
/**
|
80
|
+
* The equivalent of the minimum transaction cost, represented in fee
|
81
|
+
* levels.
|
82
|
+
*/
|
83
|
+
reference_level: string
|
84
|
+
}
|
85
|
+
/**
|
86
|
+
* The maximum number of transactions that the transaction queue can
|
87
|
+
* currently hold.
|
88
|
+
*/
|
89
|
+
max_queue_size: string
|
90
|
+
}
|
91
|
+
}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
|
2
|
+
|
3
|
+
/**
|
4
|
+
* The gateway_balances command calculates the total balances issued by a given
|
5
|
+
* account, optionally excluding amounts held by operational addresses. Expects
|
6
|
+
* a response in the form of a {@link GatewayBalancesResponse}.
|
7
|
+
*
|
8
|
+
* @example
|
9
|
+
* ```ts
|
10
|
+
* const gatewayBalances: GatewayBalanceRequest = {
|
11
|
+
* "id": "example_gateway_balances_1",
|
12
|
+
* "command": "gateway_balances",
|
13
|
+
* "account": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q",
|
14
|
+
* "strict": true,
|
15
|
+
* "hotwallet": ["rKm4uWpg9tfwbVSeATv4KxDe6mpE9yPkgJ","ra7JkEzrgeKHdzKgo4EUUVBnxggY4z37kt"],
|
16
|
+
* "ledger_index": "validated"
|
17
|
+
* }
|
18
|
+
* ```
|
19
|
+
*
|
20
|
+
* @category Requests
|
21
|
+
*/
|
22
|
+
export interface GatewayBalancesRequest
|
23
|
+
extends BaseRequest,
|
24
|
+
LookupByLedgerRequest {
|
25
|
+
command: 'gateway_balances'
|
26
|
+
/** The Address to check. This should be the issuing address. */
|
27
|
+
account: string
|
28
|
+
/**
|
29
|
+
* If true, only accept an address or public key for the account parameter.
|
30
|
+
* Defaults to false.
|
31
|
+
*/
|
32
|
+
strict?: boolean
|
33
|
+
/**
|
34
|
+
* An operational address to exclude from the balances issued, or an array of
|
35
|
+
* Such addresses.
|
36
|
+
*/
|
37
|
+
hotwallet?: string | string[]
|
38
|
+
}
|
39
|
+
|
40
|
+
export interface GatewayBalance {
|
41
|
+
currency: string
|
42
|
+
value: string
|
43
|
+
}
|
44
|
+
|
45
|
+
/**
|
46
|
+
* Expected response from a {@link GatewayBalancesRequest}.
|
47
|
+
*
|
48
|
+
* @category Responses
|
49
|
+
*/
|
50
|
+
export interface GatewayBalancesResponse extends BaseResponse {
|
51
|
+
result: {
|
52
|
+
/** The address of the account that issued the balances. */
|
53
|
+
account: string
|
54
|
+
/**
|
55
|
+
* Total amounts issued to addresses not excluded, as a map of currencies
|
56
|
+
* to the total value issued.
|
57
|
+
*/
|
58
|
+
obligations?: { [currency: string]: string }
|
59
|
+
/**
|
60
|
+
* Amounts issued to the hotwallet addresses from the request. The keys are
|
61
|
+
* addresses and the values are arrays of currency amounts they hold.
|
62
|
+
*/
|
63
|
+
balances?: { [address: string]: GatewayBalance[] }
|
64
|
+
/**
|
65
|
+
* Total amounts held that are issued by others. In the recommended
|
66
|
+
* configuration, the issuing address should have none.
|
67
|
+
*/
|
68
|
+
assets?: { [address: string]: GatewayBalance[] }
|
69
|
+
/**
|
70
|
+
* The identifying hash of the ledger version that was used to generate
|
71
|
+
* this response.
|
72
|
+
*/
|
73
|
+
ledger_hash?: string
|
74
|
+
/**
|
75
|
+
* The ledger index of the ledger version that was used to generate this
|
76
|
+
* response.
|
77
|
+
*/
|
78
|
+
ledger_current_index?: number
|
79
|
+
/**
|
80
|
+
* The ledger index of the current in-progress ledger version, which was
|
81
|
+
* used to retrieve this information.
|
82
|
+
*/
|
83
|
+
ledger_index?: number
|
84
|
+
}
|
85
|
+
}
|