Running the utility

Follow these steps to run the utility:

  1. Navigate to your nodejs project repository in your Terminal window. Run the CreateTrustline utility by running the following command:
node CreateTrustline.js

A successful response from the Stellar network after the transaction has been submitted indicates that the trustlines have been created. Let's verify this.

  1. Open a new tab in your internet browser. View any account on Horizon by going to the accounts link. You can do so by going to the following link:
http://localhost:8000/accounts/<Account ID>

For example, for receivingKeys1(GDW3IXTH3UFCU2KD6REURTLK7XVSUC4P4WDATMFPTW6YZFEAV7RWATAD) the link will be http://localhost:8000/accounts/GDW3IXTH3UFCU2KD6REURTLK7XVSUC4P4WDA
TMFPTW6YZFEAV7RWATAD

Scroll down and check the balances again. Notice how it shows balances for the USD asset and the native asset now?

Next, we'll write a Transfer utility to transfer these assets from the issuer account to the receiving account.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.190.144