Disabling the NoRipple Flag | XRPL Development in JavaScript Level 1
In the previous chapter, we introduced the reason why the transaction failed and the relationship between Rippling
and the NoRipple flag
.
To disable Alice’s NoRipple flag
from the issuer’s perspective, let’s change the state using a TrustSet
transaction!
Prerequisites
This guide proceeds with the following characters:
- Charlie (Token Issuer)
- Alice (Token Recipient)
Create the Script
-
Create a new file named
disable_noripple.js
in your project directory. -
Paste the following code into
disable_noripple.js
.So far, we have introduced samples defined as functions, but let’s now create a code pattern with more arguments.
This script disables the NoRipple flag for Alice from Charlie, the issuer.
- Enter Alice’s testnet address in
alice_wallet_address_here
. - Enter Charlie’s testnet secret key in
charlie_wallet_secret_here
.
- Enter Alice’s testnet address in
Run the Script
-
Run the following command in the command line to execute the script.
-
If successful, the console will display the following.
This successfully disabled the
NoRipple flag
for Alice from the issuer’s perspective.If the sending account’s
NoRipple flag
is disabled, the transfer can be made. In the next chapter, let’s retry theDOJ
token transfer from Alice to Bob that failed in this guide.