diff --git a/.ci-config/rippled.cfg b/.ci-config/rippled.cfg index ab4418963a..41b6a97f53 100644 --- a/.ci-config/rippled.cfg +++ b/.ci-config/rippled.cfg @@ -164,3 +164,6 @@ F1ED6B4A411D8B872E65B9DCB4C8B100375B0DD3D62D07192E011D6D7F339013 fixTrustLinesTo 2E2FB9CF8A44EB80F4694D38AADAE9B8B7ADAFD2F092E10068E61C98C4F092B0 fixUniversalNumber 75A7E01C505DD5A179DFE3E000A9B6F1EDDEB55A12F95579A23E15B15DC8BE5A ImmediateOfferKilled 93E516234E35E08CA689FA33A6D38E103881F8DCB53023F728C307AA89D515A7 XRPFees +# 1.12.0-b1 Amendments +56B241D7A43D40354D02A9DC4C8DF5C7A1F930D92A9035C4E12291B3CA3E1C2B featureClawback +27CD95EE8E1E5A537FF2F89B6CEB7C622E78E9374EBD7DCBEDFAE21CD6F16E0A fixReducedOffersV1 diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index a2e57cdb40..070f796098 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -57,7 +57,7 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x, 20.x] + node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 @@ -98,14 +98,14 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x, 20.x] + node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 - name: Run docker in background run: | - docker run --detach --rm --name rippled-service -p 6006:6006 --volume "${{ github.workspace }}/.ci-config/":"/config/" --health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s --env "ENV_ARGS=-a --start" --env GITHUB_ACTIONS=true --env CI=true xrpllabsofficial/xrpld:latest + docker run --detach --rm --name rippled-service -p 6006:6006 --volume "${{ github.workspace }}/.ci-config/":"/config/" --health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s --env "ENV_ARGS=-a --start" --env GITHUB_ACTIONS=true --env CI=true xrpllabsofficial/xrpld:1.12.0-b1 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 @@ -162,7 +162,7 @@ jobs: - name: Run docker in background run: | - docker run --detach --rm --name rippled-service -p 6006:6006 --volume "${{ github.workspace }}/.ci-config/":"/config/" --health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s --env "ENV_ARGS=-a --start" --env GITHUB_ACTIONS=true --env CI=true xrpllabsofficial/xrpld:latest + docker run --detach --rm --name rippled-service -p 6006:6006 --volume "${{ github.workspace }}/.ci-config/":"/config/" --health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s --env "ENV_ARGS=-a --start" --env GITHUB_ACTIONS=true --env CI=true xrpllabsofficial/xrpld:1.12.0-b1 - name: Setup npm version 9 run: | @@ -202,7 +202,7 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x, 20.x] + node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 diff --git a/.nvmrc b/.nvmrc index 958b5a36e1..6f7f377bf5 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v14 +v16 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 24c60464b9..28a4c444d0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -47,7 +47,7 @@ npm run lint ## Running Tests -For integration and browser tests, we use a `rippled` node in standalone mode to test xrpl.js code against. To set this up, you can either configure and run `rippled` locally, or set up the Docker container `xrpllabsofficial/xrpld:latest` by [following these instructions](#integration-tests). The latter will require you to [install Docker](https://docs.docker.com/get-docker/). +For integration and browser tests, we use a `rippled` node in standalone mode to test xrpl.js code against. To set this up, you can either configure and run `rippled` locally, or set up the Docker container `xrpllabsofficial/1.12.0-b1` by [following these instructions](#integration-tests). The latter will require you to [install Docker](https://docs.docker.com/get-docker/). ### Unit Tests @@ -64,7 +64,7 @@ From the top-level xrpl.js folder (one level above `packages`), run the followin ```bash npm install # sets up the rippled standalone Docker container - you can skip this step if you already have it set up -docker run -p 6006:6006 --interactive -t --volume $PWD/.ci-config:/config/ xrpllabsofficial/xrpld:latest -a --start +docker run -p 6006:6006 --interactive -t --volume $PWD/.ci-config:/config/ xrpllabsofficial/1.12.0-b1 -a --start npm run build npm run test:integration ``` @@ -74,7 +74,7 @@ Breaking down the command: * `--interactive` allows you to interact with the container. * `-t` starts a terminal in the container for you to send commands to. * `--volume $PWD/.ci-config:/config/` identifies the `rippled.cfg` and `validators.txt` to import. It must be an absolute path, so we use `$PWD` instead of `./`. -* `xrpllabsofficial/xrpld:latest` is an image that is regularly updated with the latest `rippled` releases and can be found here: https://github.com/WietseWind/docker-rippled +* `xrpllabsofficial/1.12.0-b1` is an image that is regularly updated with the latest `rippled` releases and can be found here: https://github.com/WietseWind/docker-rippled * `-a` starts `rippled` in standalone mode * `--start` signals to start `rippled` with the specified amendments in `rippled.cfg` enabled immediately instead of voting for 2 weeks on them. @@ -91,7 +91,7 @@ This should be run from the `xrpl.js` top level folder (one above the `packages` ```bash npm run build # sets up the rippled standalone Docker container - you can skip this step if you already have it set up -docker run -p 6006:6006 -it -v $PWD/.ci-config:/config/ xrpllabsofficial/xrpld:latest -a --start +docker run -p 6006:6006 -it -v $PWD/.ci-config:/config/ xrpllabsofficial/1.12.0-b1 -a --start npm run test:browser ``` diff --git a/README.md b/README.md index 34f3f0e278..ecf1f544d7 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,13 @@ See the full reference documentation for all classes, methods, and utilities. 4. Subscribing to changes in the ledger ([Ex. ledger, transactions, & more...](https://xrpl.org/subscribe.html)) 5. Parsing ledger data into more convenient formats ([`xrpToDrops`](https://js.xrpl.org/functions/xrpToDrops.html) and [`rippleTimeToISOTime`](https://js.xrpl.org/functions/rippleTimeToISOTime.html)) -All of which works in Node.js (tested for v14+) & web browsers (tested for Chrome). +All of which works in Node.js (tested for v16+) & web browsers (tested for Chrome). # Quickstart ### Requirements -+ **[Node.js v16](https://nodejs.org/)** is recommended. We also support v14, v18 and v20. Other versions may work but are not frequently tested. ++ **[Node.js v16](https://nodejs.org/)** is recommended. We also support v18 and v20. Other versions may work but are not frequently tested. ### Installing xrpl.js diff --git a/docs/classes/BroadcastClient.html b/docs/classes/BroadcastClient.html index ea4df8c67b..bf2ce89628 100644 --- a/docs/classes/BroadcastClient.html +++ b/docs/classes/BroadcastClient.html @@ -39,7 +39,7 @@
Optional
Returns Promise<{ Optional
Returns Promise<{ Optional
Returns Promise<string>Optional
Returns Promise<T>Optional
Returns Promise<SubmitResponse>Optional
Returns Promise<TxResponse<T>>Optional
Returns Promise<{ Readonly
Readonly
maxReadonly
Inherited from Client.url
Event handler for subscription streams.
@@ -518,7 +518,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:456
on(event, listener): BroadcastClient
Inherited from Client.on
-- Defined in packages/xrpl/src/client/index.ts:456
+Event handler for subscription streams.
@@ -547,7 +547,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:457
on(event, listener): BroadcastClient
Inherited from Client.on
-- Defined in packages/xrpl/src/client/index.ts:457
+Event handler for subscription streams.
@@ -576,7 +576,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:461
on(event, listener): BroadcastClient
Inherited from Client.on
-- Defined in packages/xrpl/src/client/index.ts:461
+Event handler for subscription streams.
@@ -605,7 +605,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:465
on(event, listener): BroadcastClient
Inherited from Client.on
-- Defined in packages/xrpl/src/client/index.ts:465
+Event handler for subscription streams.
@@ -634,7 +634,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:469
on(event, listener): BroadcastClient
Inherited from Client.on
-- Defined in packages/xrpl/src/client/index.ts:469
+Event handler for subscription streams.
@@ -663,7 +663,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:473
on(event, listener): BroadcastClient
Inherited from Client.on
-- Defined in packages/xrpl/src/client/index.ts:473
+Event handler for subscription streams.
@@ -692,7 +692,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:477
on(event, listener): BroadcastClient
Inherited from Client.on
-- Defined in packages/xrpl/src/client/index.ts:477
+Event handler for subscription streams.
@@ -721,7 +721,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:481
on(event, listener): BroadcastClient
Defined in packages/xrpl/src/client/index.ts:305
request(r): Promise<AccountCurrenciesResponse>
Inherited from Client.on
-- Defined in packages/xrpl/src/client/index.ts:481
+Event handler for subscription streams.
@@ -750,7 +750,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:483
+Inherited from Client.on
-- Defined in packages/xrpl/src/client/index.ts:483
+request
@@ -764,7 +764,7 @@
r: Returns Promise<AccountChannelsResponse>
Makes a request to the client with the given command and @@ -779,7 +779,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:308
request(r): Promise<AccountInfoResponse>
Makes a request to the client with the given command and @@ -794,7 +794,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:311
request(r): Promise<AccountLinesResponse>
Makes a request to the client with the given command and @@ -809,7 +809,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:312
request(r): Promise<AccountNFTsResponse>
Makes a request to the client with the given command and @@ -824,7 +824,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:313
request(r): Promise<AccountObjectsResponse>
Makes a request to the client with the given command and @@ -839,7 +839,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:314
request(r): Promise<AccountOffersResponse>
Makes a request to the client with the given command and @@ -854,7 +854,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:317
request(r): Promise<AccountTxResponse>
Makes a request to the client with the given command and @@ -869,7 +869,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:318
request(r): Promise<BookOffersResponse>
Makes a request to the client with the given command and @@ -884,7 +884,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:319
request(r): Promise<ChannelVerifyResponse>
Makes a request to the client with the given command and @@ -899,7 +899,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:320
request(r): Promise<DepositAuthorizedResponse>
Makes a request to the client with the given command and @@ -914,7 +914,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:321
request(r): Promise<FeeResponse>
Makes a request to the client with the given command and @@ -929,7 +929,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:324
request(r): Promise<GatewayBalancesResponse>
Makes a request to the client with the given command and @@ -944,7 +944,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:325
request(r): Promise<LedgerResponse>
Makes a request to the client with the given command and @@ -959,7 +959,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:328
request(r): Promise<LedgerClosedResponse>
Makes a request to the client with the given command and @@ -974,7 +974,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:329
request(r): Promise<LedgerCurrentResponse>
Makes a request to the client with the given command and @@ -989,7 +989,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:330
request(r): Promise<LedgerDataResponse>
Makes a request to the client with the given command and @@ -1004,7 +1004,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:331
request(r): Promise<LedgerEntryResponse>
Makes a request to the client with the given command and @@ -1019,7 +1019,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:332
request(r): Promise<ManifestResponse>
Makes a request to the client with the given command and @@ -1034,7 +1034,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:333
request(r): Promise<NFTBuyOffersResponse>
Makes a request to the client with the given command and @@ -1049,7 +1049,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:334
request(r): Promise<NFTSellOffersResponse>
Makes a request to the client with the given command and @@ -1064,7 +1064,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:335
request(r): Promise<NFTInfoResponse>
Makes a request to the client with the given command and @@ -1079,7 +1079,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:336
request(r): Promise<NFTHistoryResponse>
Makes a request to the client with the given command and @@ -1094,7 +1094,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:337
request(r): Promise<NoRippleCheckResponse>
Makes a request to the client with the given command and @@ -1109,7 +1109,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:338
request(r): Promise<PathFindResponse>
Makes a request to the client with the given command and @@ -1124,7 +1124,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:339
request(r): Promise<PingResponse>
Makes a request to the client with the given command and @@ -1139,7 +1139,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:340
request(r): Promise<RandomResponse>
Makes a request to the client with the given command and @@ -1154,7 +1154,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:341
request(r): Promise<RipplePathFindResponse>
Makes a request to the client with the given command and @@ -1169,7 +1169,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:342
request(r): Promise<ServerInfoResponse>
+Defined in packages/xrpl/src/client/index.ts:298
+Defined in packages/xrpl/src/client/index.ts:618
+Defined in packages/xrpl/src/client/index.ts:645
+Defined in packages/xrpl/src/client/index.ts:659
on(event, listener): Client
Makes a request to the client with the given command and @@ -1184,7 +1184,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:345
request(r): Promise<ServerStateResponse>
+ Defined in packages/xrpl/src/client/index.ts:206
@@ -395,7 +395,7 @@
Makes a request to the client with the given command and @@ -1199,7 +1199,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:346
request(r): Promise<SubmitResponse>
+ Defined in packages/xrpl/src/client/index.ts:198
FeeXRP
max FeeXRP: string
@@ -382,7 +382,7 @@
Makes a request to the client with the given command and @@ -1214,7 +1214,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:347
request(r): Promise<SubmitMultisignedResponse>
+ Defined in packages/xrpl/src/client/index.ts:705
@@ -374,7 +374,7 @@
Makes a request to the client with the given command and @@ -1229,7 +1229,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:348
request(r): Promise<SubscribeResponse>
Makes a request to the client with the given command and @@ -1244,7 +1244,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:351
request(r): Promise<UnsubscribeResponse>
+ Defined in packages/xrpl/src/client/index.ts:675
@@ -364,7 +364,7 @@ Context?: string
Makes a request to the client with the given command and @@ -1259,7 +1259,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:352
request(r): Promise<TransactionEntryResponse>
Makes a request to the client with the given command and @@ -1274,7 +1274,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:353
request(r): Promise<TxResponse<Transaction>>
+ Defined in packages/xrpl/src/client/index.ts:671
submit And Wait: (<T>(this, transaction, opts?) => Promise<TxResponse<T>>) = submitAndWait
@@ -331,7 +331,7 @@
Makes a request to the client with the given command and @@ -1289,7 +1289,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:356
request<R, T>(r): Promise<T>
Defined in packages/xrpl/src/client/index.ts:499
request All(req): Promise<AccountLinesResponse[]>
+ Defined in packages/xrpl/src/client/index.ts:666
submit: ((this, transaction, opts?) => Promise<SubmitResponse>) = submit
@@ -297,7 +297,7 @@
Makes a request to the client with the given command and @@ -1311,7 +1311,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:357
+request All
@@ -1325,7 +1325,7 @@
req: Returns Promise<AccountChannelsResponse[]>
Makes multiple paged requests to the client to return a given number of @@ -1349,7 +1349,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:502
request All(req): Promise<AccountObjectsResponse[]>
Makes multiple paged requests to the client to return a given number of @@ -1373,7 +1373,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:505
request All(req): Promise<AccountOffersResponse[]>
+ Defined in packages/xrpl/src/client/index.ts:685
@@ -268,7 +268,7 @@
Makes multiple paged requests to the client to return a given number of @@ -1397,7 +1397,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:508
request All(req): Promise<AccountTxResponse[]>
Makes multiple paged requests to the client to return a given number of @@ -1421,7 +1421,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:511
request All(req): Promise<BookOffersResponse[]>
+ Defined in packages/xrpl/src/client/index.ts:695
get Xrp Balance: ((this, address, options?) => Promise<string>) = getXrpBalance
@@ -239,7 +239,7 @@ index?: LedgerIndex
Makes multiple paged requests to the client to return a given number of @@ -1445,7 +1445,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:512
request All(req): Promise<LedgerDataResponse[]>
Defined in packages/xrpl/src/client/index.ts:389
request Next Page(req, resp): Promise<AccountLinesResponse>
+ Defined in packages/xrpl/src/client/index.ts:700
get Orderbook: ((this, currency1, currency2, options?) => Promise<{
@@ -212,7 +212,7 @@
Makes multiple paged requests to the client to return a given number of @@ -1469,7 +1469,7 @@
Returns Promise< +Defined in packages/xrpl/src/client/index.ts:513
+request Next Page
@@ -1485,7 +1485,7 @@
resp: Returns Promise<AccountChannelsResponse>
Requests the next page of data.
@@ -1505,7 +1505,7 @@Returns Promise< +Defined in packages/xrpl/src/client/index.ts:393
request Next Page(req, resp): Promise<AccountObjectsResponse>
Requests the next page of data.
@@ -1525,7 +1525,7 @@Returns Promise< +Defined in packages/xrpl/src/client/index.ts:397
request Next Page(req, resp): Promise<AccountOffersResponse>
+ Defined in packages/xrpl/src/client/index.ts:690
get Ledger Index: ((this) => Promise<number>) = getLedgerIndex
@@ -179,7 +179,7 @@
Requests the next page of data.
@@ -1545,7 +1545,7 @@Returns Promise< +Defined in packages/xrpl/src/client/index.ts:401
request Next Page(req, resp): Promise<AccountTxResponse>
+Defined in packages/xrpl/src/client/index.ts:228
@@ -161,7 +161,7 @@
Requests the next page of data.
@@ -1565,7 +1565,7 @@Returns Promise< +Defined in packages/xrpl/src/client/index.ts:405
request Next Page(req, resp): Promise<LedgerDataResponse>
+ Defined in packages/xrpl/src/client/index.ts:680
Rejection Symbol
capture Rejection Symbol: typeof captureRejectionSymbol
+Defined in packages/xrpl/src/client/BroadcastClient.ts:66
+Defined in packages/xrpl/src/client/index.ts:586
+Defined in packages/xrpl/src/client/index.ts:186
Requests the next page of data.
@@ -1585,7 +1585,7 @@Returns Promise< +Defined in packages/xrpl/src/client/index.ts:409
@@ -1595,18 +1595,18 @@
+Defined in packages/xrpl/src/client/index.ts:218
clients: Client[]
+Defined in packages/xrpl/src/client/BroadcastClient.ts:19
connection: Connection
+Defined in packages/xrpl/src/client/index.ts:190
networkID: undefined | number
@@ -1614,7 +1614,7 @@
+Defined in packages/xrpl/src/client/index.ts:212
prepare Transaction: (<T>(this, transaction, signersCount?) => Promise<T>) = autofill
@@ -1645,7 +1645,7 @@
Other
build Version
Private
Readonly
clientsReadonly
connectionnetworkID
networkID
Inherited from Client.networkID
-- Defined in packages/xrpl/src/client/index.ts:212
prepare Transaction
Optional
Returns Promise<T>Static
Readonly
captureget Server Info
@@ -1761,7 +1761,7 @@
get Server Info
Returns Promise<void>
Inherited from Client.getServerInfo
-- Defined in packages/xrpl/src/client/index.ts:586
listener Count
@@ -2340,6 +2340,9 @@
-- Defined in packages/xrpl/src/client/index.ts:186
@@ -128,7 +128,7 @@
options: Returns Client
Overrides EventEmitter.constructor
-- Defined in packages/xrpl/src/client/index.ts:228
Abstraction
Optional
Optional peer?: stringReturns Promise<{
currency: string;
issuer?: string;
value: string;
}[]>
-- Defined in packages/xrpl/src/client/index.ts:690
get Ledger Index
Parameters
this: Client
Returns Promise<number>
-- Defined in packages/xrpl/src/client/index.ts:700
get Orderbook
buy: BookOffer[];
sell: BookOffer[];
}>) = getOrderbook
Optional
Optional taker?: null | stringReturns Promise<{
buy: BookOffer[];
sell: BookOffer[];
}>
-- Defined in packages/xrpl/src/client/index.ts:695
get Xrp Balance
Optional
Optional ledger_Returns Promise<string>
-- Defined in packages/xrpl/src/client/index.ts:685
Core
transaction: Optional signersCount: number
Returns Promise<T>
-- Defined in packages/xrpl/src/client/index.ts:666
submit
Optional
Optional wallet?: WalletReturns Promise<SubmitResponse>
-- Defined in packages/xrpl/src/client/index.ts:671
submit And Wait
Optional
Optional wallet?: WalletReturns Promise<TxResponse<T>>
-- Defined in packages/xrpl/src/client/index.ts:675
Faucet
Optional
Optional usageReturns Promise<{
balance: number;
wallet: Wallet;
}>
-- Defined in packages/xrpl/src/client/index.ts:705
Fee
Readonly
-- Defined in packages/xrpl/src/client/index.ts:198
Readonly
maxReadonly
-- Defined in packages/xrpl/src/client/index.ts:206
Network
urlReturns string
The URL of the server this client is connected to.
-- Defined in packages/xrpl/src/client/index.ts:298
connect
@@ -412,7 +412,7 @@
Example
Client.connect() establishes a connection between a Client ob
Returns Promise<void>
A promise that resolves with a void value when a connection is established.
-- Defined in packages/xrpl/src/client/index.ts:618
disconnect
@@ -429,7 +429,7 @@
Example
To use the disconnect() method, you first need to create a ne
Returns Promise<void>
A promise that resolves with a void value when a connection is destroyed.
-- Defined in packages/xrpl/src/client/index.ts:645
is Connected
@@ -440,7 +440,7 @@
is ConnectedReturns boolean
Whether the client instance is connected.
-- Defined in packages/xrpl/src/client/index.ts:659
on
@@ -467,7 +467,7 @@
+- Defined in packages/xrpl/src/client/index.ts:455
Returns voidReturns Client
Overrides EventEmitter.on
-- Defined in packages/xrpl/src/client/index.ts:455
Event handler for subscription streams.
@@ -496,7 +496,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:456
on(event, listener): Client
Overrides EventEmitter.on
-- Defined in packages/xrpl/src/client/index.ts:456
+Event handler for subscription streams.
@@ -525,7 +525,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:457
on(event, listener): Client
Overrides EventEmitter.on
-- Defined in packages/xrpl/src/client/index.ts:457
+Event handler for subscription streams.
@@ -554,7 +554,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:461
on(event, listener): Client
Overrides EventEmitter.on
-- Defined in packages/xrpl/src/client/index.ts:461
+Event handler for subscription streams.
@@ -583,7 +583,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:465
on(event, listener): Client
Overrides EventEmitter.on
-- Defined in packages/xrpl/src/client/index.ts:465
+Event handler for subscription streams.
@@ -612,7 +612,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:469
on(event, listener): Client
Overrides EventEmitter.on
-- Defined in packages/xrpl/src/client/index.ts:469
+Event handler for subscription streams.
@@ -641,7 +641,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:473
on(event, listener): Client
Overrides EventEmitter.on
-- Defined in packages/xrpl/src/client/index.ts:473
+Event handler for subscription streams.
@@ -670,7 +670,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:477
on(event, listener): Client
Overrides EventEmitter.on
-- Defined in packages/xrpl/src/client/index.ts:477
+Event handler for subscription streams.
@@ -699,7 +699,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:481
on(event, listener): Client
+Defined in packages/xrpl/src/client/index.ts:305
request(r): Promise<AccountCurrenciesResponse>
+Defined in packages/xrpl/src/client/index.ts:308
request(r): Promise<AccountInfoResponse>
+Defined in packages/xrpl/src/client/index.ts:311
request(r): Promise<AccountLinesResponse>
+Defined in packages/xrpl/src/client/index.ts:312
request(r): Promise<AccountNFTsResponse>
+Defined in packages/xrpl/src/client/index.ts:313
request(r): Promise<AccountObjectsResponse>
+Defined in packages/xrpl/src/client/index.ts:314
request(r): Promise<AccountOffersResponse>
+Defined in packages/xrpl/src/client/index.ts:317
request(r): Promise<AccountTxResponse>
+Defined in packages/xrpl/src/client/index.ts:318
request(r): Promise<BookOffersResponse>
+Defined in packages/xrpl/src/client/index.ts:319
request(r): Promise<ChannelVerifyResponse>
+Defined in packages/xrpl/src/client/index.ts:320
request(r): Promise<DepositAuthorizedResponse>
+Defined in packages/xrpl/src/client/index.ts:321
request(r): Promise<FeeResponse>
+Defined in packages/xrpl/src/client/index.ts:324
request(r): Promise<GatewayBalancesResponse>
+Defined in packages/xrpl/src/client/index.ts:325
request(r): Promise<LedgerResponse>
+Defined in packages/xrpl/src/client/index.ts:328
request(r): Promise<LedgerClosedResponse>
+Defined in packages/xrpl/src/client/index.ts:329
request(r): Promise<LedgerCurrentResponse>
+Defined in packages/xrpl/src/client/index.ts:330
request(r): Promise<LedgerDataResponse>
+Defined in packages/xrpl/src/client/index.ts:331
request(r): Promise<LedgerEntryResponse>
+Defined in packages/xrpl/src/client/index.ts:332
request(r): Promise<ManifestResponse>
+Defined in packages/xrpl/src/client/index.ts:333
request(r): Promise<NFTBuyOffersResponse>
+Defined in packages/xrpl/src/client/index.ts:334
request(r): Promise<NFTSellOffersResponse>
+Defined in packages/xrpl/src/client/index.ts:335
request(r): Promise<NFTInfoResponse>
+Defined in packages/xrpl/src/client/index.ts:336
request(r): Promise<NFTHistoryResponse>
+Defined in packages/xrpl/src/client/index.ts:337
request(r): Promise<NoRippleCheckResponse>
+Defined in packages/xrpl/src/client/index.ts:338
request(r): Promise<PathFindResponse>
+Defined in packages/xrpl/src/client/index.ts:339
request(r): Promise<PingResponse>
+Defined in packages/xrpl/src/client/index.ts:340
request(r): Promise<RandomResponse>
+Defined in packages/xrpl/src/client/index.ts:341
request(r): Promise<RipplePathFindResponse>
+Defined in packages/xrpl/src/client/index.ts:342
request(r): Promise<ServerInfoResponse>
+Defined in packages/xrpl/src/client/index.ts:345
request(r): Promise<ServerStateResponse>
+Defined in packages/xrpl/src/client/index.ts:346
request(r): Promise<SubmitResponse>
+Defined in packages/xrpl/src/client/index.ts:347
request(r): Promise<SubmitMultisignedResponse>
+Defined in packages/xrpl/src/client/index.ts:348
request(r): Promise<SubscribeResponse>
+Defined in packages/xrpl/src/client/index.ts:351
request(r): Promise<UnsubscribeResponse>
+Defined in packages/xrpl/src/client/index.ts:352
request(r): Promise<TransactionEntryResponse>
+Defined in packages/xrpl/src/client/index.ts:353
request(r): Promise<TxResponse<Transaction>>
+Defined in packages/xrpl/src/client/index.ts:356
request<R, T>(r): Promise<T>
Overrides EventEmitter.on
-- Defined in packages/xrpl/src/client/index.ts:481
+Event handler for subscription streams.
@@ -728,7 +728,7 @@ReturnsDefined in packages/xrpl/src/client/index.ts:483
Overrides EventEmitter.on
-- Defined in packages/xrpl/src/client/index.ts:483
+request
@@ -741,7 +741,7 @@
Parameters
r: AccountChannelsRequest
Returns Promise<AccountChannelsResponse>
-- Defined in packages/xrpl/src/client/index.ts:305
Makes a request to the client with the given command and @@ -755,7 +755,7 @@
r: Returns Promise<AccountCurrenciesResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:308
Makes a request to the client with the given command and @@ -769,7 +769,7 @@
r: Returns Promise<AccountInfoResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:311
Makes a request to the client with the given command and @@ -783,7 +783,7 @@
r: Returns Promise<AccountLinesResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:312
Makes a request to the client with the given command and @@ -797,7 +797,7 @@
r: Returns Promise<AccountNFTsResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:313
Makes a request to the client with the given command and @@ -811,7 +811,7 @@
r: Returns Promise<AccountObjectsResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:314
Makes a request to the client with the given command and @@ -825,7 +825,7 @@
r: Returns Promise<AccountOffersResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:317
Makes a request to the client with the given command and @@ -839,7 +839,7 @@
r: Returns Promise<AccountTxResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:318
Makes a request to the client with the given command and @@ -853,7 +853,7 @@
r: Returns Promise<BookOffersResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:319
Makes a request to the client with the given command and @@ -867,7 +867,7 @@
r: Returns Promise<ChannelVerifyResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:320
Makes a request to the client with the given command and @@ -881,7 +881,7 @@
r: Returns Promise<DepositAuthorizedResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:321
Makes a request to the client with the given command and @@ -895,7 +895,7 @@
r: Returns Promise<FeeResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:324
Makes a request to the client with the given command and @@ -909,7 +909,7 @@
r: Returns Promise<GatewayBalancesResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:325
Makes a request to the client with the given command and @@ -923,7 +923,7 @@
r: Returns Promise<LedgerResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:328
Makes a request to the client with the given command and @@ -937,7 +937,7 @@
r: Returns Promise<LedgerClosedResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:329
Makes a request to the client with the given command and @@ -951,7 +951,7 @@
r: Returns Promise<LedgerCurrentResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:330
Makes a request to the client with the given command and @@ -965,7 +965,7 @@
r: Returns Promise<LedgerDataResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:331
Makes a request to the client with the given command and @@ -979,7 +979,7 @@
r: Returns Promise<LedgerEntryResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:332
Makes a request to the client with the given command and @@ -993,7 +993,7 @@
r: Returns Promise<ManifestResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:333
Makes a request to the client with the given command and @@ -1007,7 +1007,7 @@
r: Returns Promise<NFTBuyOffersResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:334
Makes a request to the client with the given command and @@ -1021,7 +1021,7 @@
r: Returns Promise<NFTSellOffersResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:335
Makes a request to the client with the given command and @@ -1035,7 +1035,7 @@
r: Returns Promise<NFTInfoResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:336
Makes a request to the client with the given command and @@ -1049,7 +1049,7 @@
r: Returns Promise<NFTHistoryResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:337
Makes a request to the client with the given command and @@ -1063,7 +1063,7 @@
r: Returns Promise<NoRippleCheckResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:338
Makes a request to the client with the given command and @@ -1077,7 +1077,7 @@
r: Returns Promise<PathFindResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:339
Makes a request to the client with the given command and @@ -1091,7 +1091,7 @@
r: Returns Promise<PingResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:340
Makes a request to the client with the given command and @@ -1105,7 +1105,7 @@
r: Returns Promise<RandomResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:341
Makes a request to the client with the given command and @@ -1119,7 +1119,7 @@
r: Returns Promise<RipplePathFindResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:342
Makes a request to the client with the given command and @@ -1133,7 +1133,7 @@
r: Returns Promise<ServerInfoResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:345
Makes a request to the client with the given command and @@ -1147,7 +1147,7 @@
r: Returns Promise<ServerStateResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:346
Makes a request to the client with the given command and @@ -1161,7 +1161,7 @@
r: Returns Promise<SubmitResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:347
Makes a request to the client with the given command and @@ -1175,7 +1175,7 @@
r: Returns Promise<SubmitMultisignedResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:348
Makes a request to the client with the given command and @@ -1189,7 +1189,7 @@
r: Returns Promise<SubscribeResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:351
Makes a request to the client with the given command and @@ -1203,7 +1203,7 @@
r: Returns Promise<UnsubscribeResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:352
Makes a request to the client with the given command and @@ -1217,7 +1217,7 @@
r: Returns Promise<TransactionEntryResponse>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:353
Makes a request to the client with the given command and @@ -1231,7 +1231,7 @@
r: Returns Promise<TxResponse<Transaction>>
The response from the server.
-- Defined in packages/xrpl/src/client/index.ts:356
Makes a request to the client with the given command and @@ -1252,7 +1252,7 @@
r: Returns Promise<T>
The response from the server.
-- Defined in