You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -160,7 +160,7 @@ See the [wiki](https://ripple.com/wiki/JSON_Messages#subscribe) for details on s
160
160
Submitting a payment transaction to the Ripple network involves connecting to a `Remote`, creating a transaction, signing it with the user's secret, and submitting it to the `rippled` server. Note that the `Amount` module is used to convert human-readable amounts like '1XRP' or '10.50USD' to the type of Amount object used by the Ripple network.
161
161
162
162
```js
163
-
/* Loading ripple-lib Remote and Amount modules in Node.js */
163
+
/* Loading ripple-lib Remote and Amount modules in Node.js */
164
164
var Remote =require('ripple-lib').Remote;
165
165
var Amount =require('ripple-lib').Amount;
166
166
@@ -179,8 +179,8 @@ remote.connect(function() {
179
179
remote.setSecret(MY_ADDRESS, MY_SECRET);
180
180
181
181
var transaction =remote.createTransaction('Payment', {
182
-
account:MY_ADDRESS,
183
-
destination:RECIPIENT,
182
+
account:MY_ADDRESS,
183
+
destination:RECIPIENT,
184
184
amount:AMOUNT
185
185
});
186
186
@@ -201,12 +201,12 @@ Since the fee required for a transaction may change between the time when the or
201
201
The [`max_fee`](REFERENCE.md#1-remote-options) option can be used to avoid submitting a transaction to a server that is charging unreasonably high fees.
202
202
203
203
204
-
##4. Submitting a trade offer to the network
204
+
##Submitting a trade offer to the network
205
205
206
-
Submitting a trade offer to the network is similar to submitting a payment transaction. Here is an example for a trade that expires in 24 hours where you are offering to sell 1 USD in exchange for 100 XRP:
206
+
Submitting a trade offer to the network is similar to submitting a payment transaction. Here is an example offering to sell 1 USD in exchange for 100 XRP:
207
207
208
208
```js
209
-
/* Loading ripple-lib Remote and Amount modules in Node.js */
209
+
/* Loading ripple-lib Remote and Amount modules in Node.js */
210
210
var Remote =require('ripple-lib').Remote;
211
211
var Amount =require('ripple-lib').Amount;
212
212
@@ -225,7 +225,7 @@ remote.connect(function() {
225
225
226
226
var transaction =remote.createTransaction('OfferCreate', {
0 commit comments