Setting Trust Lines | XRPL Development in JavaScript - Level 3
Setting a trust line allows an account to receive a specific currency.
For basic knowledge of trust lines, please refer to this page.
This guide will explain the process using A.USD issued by Issuer A and B.EUR issued by Issuer B.
To proceed with learning about cross-currency payments, we need to perform some basic setups for the accounts created in the previous chapter. Please create and run the following script.
Methods to be Used
In this chapter, we will use the following methods created in the previous chapter.
Creating the Script
Create a new file named setTrustline.js in your project directory.
Paste the following code into setTrustline.js.
Running the Script
Run the following command in the command line to execute the script.
If you see console logs like the following, the execution should have been successful.