Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: SusPay warnings, offline mode, and other tweaks
- Loading branch information
Showing
13 changed files
with
102 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## Offline functionality | ||
|
||
RippleAPI can also function without internet connectivity. This can be useful in order to generate secrets and sign transactions from a secure, isolated machine. | ||
|
||
To instantiate RippleAPI in offline mode, use the following boilerplate code: | ||
|
||
```javascript | ||
const {RippleAPI} = require('ripple-lib'); | ||
|
||
const api = new RippleAPI(); | ||
/* insert code here */ | ||
``` | ||
|
||
Methods that depend on the state of the Ripple Consensus Ledger are unavailable in offline mode. To prepare transactions offline, you **must** specify the `fee`, `sequence`, and `maxLedgerVersion` parameters in the [transaction instructions](#transaction-instructions). The following methods should work offline: | ||
|
||
* [preparePayment](#preparepayment) | ||
* [prepareTrustline](#preparetrustline) | ||
* [prepareOrder](#prepareorder) | ||
* [prepareOrderCancellation](#prepareordercancellation) | ||
* [prepareSettings](#preparesettings) | ||
* [prepareSuspendedPaymentCreation](#preparesuspendedpaymentcreation) | ||
* [prepareSuspendedPaymentCancellation](#preparesuspendedpaymentcancellation) | ||
* [prepareSuspendedPaymentExecution](#preparesuspendedpaymentexecution) | ||
* [sign](#sign) | ||
* [generateAddress](#generateaddress) | ||
* [computeLedgerHash](#computeledgerhash) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.