mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-28 23:55:49 +00:00
More Permission Delegation edits per review
This commit is contained in:
@@ -10,15 +10,7 @@ These code samples demonstrate how to delegate permissions to another account an
|
||||
npm i
|
||||
```
|
||||
|
||||
2. Go to the [XRP Faucet](https://xrpl.org/resources/dev-tools/xrp-faucets) and generate a **Devnet** account to be your delegate account.
|
||||
|
||||
3. Edit `delegate-permisions.js` and change the following line to use the address you got from the faucet:
|
||||
|
||||
```js
|
||||
const delegate_address = "r9GAKojMTyexqvy8DXFWYq63Mod5k5wnkT"
|
||||
```
|
||||
|
||||
4. Run `delegate-permissions.js`.
|
||||
2. Run `delegate-permisions.js`.
|
||||
|
||||
```sh
|
||||
node delegate-permissions.js
|
||||
@@ -26,9 +18,9 @@ These code samples demonstrate how to delegate permissions to another account an
|
||||
|
||||
If it runs successfully, it should output several things including "Delegate successfully set." followed by an [account_objects API method](https://xrpl.org/docs/references/http-websocket-apis/public-api-methods/account-methods/account_objects) response showing the delegate permissions.
|
||||
|
||||
Take note of the `account` address in this output. That's the address of the delegator.
|
||||
Take note of the **Delegator address** and **Delegate seed** from the output.
|
||||
|
||||
5. Run `use-delegate-permissions.js` and provide both the delegator's address (from the previous step's output) and the delegate's secret key (from the devnet faucet earlier).
|
||||
3. Run `use-delegate-permissions.js` and provide both the delegator's address and the delegate's secret key that were output in the previous step.
|
||||
|
||||
If it runs successfully, it should output various things ending in the following:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user