Creating an Offer | XRPL Development in JavaScript - Level 3
This guide explains cross-currency payments using issuer A’s A.USD
and issuer B’s B.EUR
.
To proceed with learning cross-currency payments, you first need to create an offer to provide liquidity.
Prerequisites
At this stage, Alice holds issuer A’s A.USD
and issuer B’s B.EUR
.
We proceed under the assumption that Alice wants to exchange issuer A’s A.USD
for issuer B’s B.EUR
.
- Alice will create an offer to sell
A.USD
and buyB.EUR
.
Method to Use
We will use the following general method created earlier.
Creating the Script
-
Create a new file named
createOffer.js
in your project directory. -
Paste the following code into
createOffer.js
.
Running the Script
-
Execute the following command in the command line to run the script.
-
If you see the following console log, the process was successful.