Jump to content

FleXRP - A tool to setup an XRP account for the Flare Spark Airdrop


DevNullProd
 Share

Recommended Posts

5 hours ago, DevNullProd said:

This tool will setup your XRP account in such a way that you will automatically receive the FlareNetworks spark token when it is released. If you like this, and other efforts by DevNullProd please consider retweeting this announcement and following us on twitter for futher product updates... Happy Zerping!

I cloned the repo and (having inspected the code for backdoors!) would like to run the nodejs stuff without installing your rpm/deb package. I'm not familiar with nodejs - is it possible to simply load the main.html page into a browser and run the tool to experiment? (I managed to install all the dependencies by doing an `node install .` or something of that kind in the root folder of the repo and it seemed to work. But now I do not know how to run the tool itself - can you help please?

if I simply use `node main.js` then I get

document.addEventListener("DOMContentLoaded", function(){
^

ReferenceError: document is not defined
    at Object.<anonymous> (/home/biddisco/src/xrp/flexrp/main.js:246:1)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

which seems fair since I'm not in a browser, so it can't get a DOM.

I'd like to try out your tool as the wallets I look after are paper ones and it's a bit tedious signing things and uploading the blobs if this can make it easier.

Many thanks.

Link to comment
Share on other sites

43 minutes ago, jbjnr said:

I cloned the repo and (having inspected the code for backdoors!) would like to run the nodejs stuff without installing your rpm/deb package. I'm not familiar with nodejs - is it possible to simply load the main.html page into a browser and run the tool to experiment? (I managed to install all the dependencies by doing an `node install .` or something of that kind in the root folder of the repo and it seemed to work. But now I do not know how to run the tool itself - can you help please?

if I simply use `node main.js` then I get



document.addEventListener("DOMContentLoaded", function(){
^

ReferenceError: document is not defined
    at Object.<anonymous> (/home/biddisco/src/xrp/flexrp/main.js:246:1)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

which seems fair since I'm not in a browser, so it can't get a DOM.

I'd like to try out your tool as the wallets I look after are paper ones and it's a bit tedious signing things and uploading the blobs if this can make it easier.

Many thanks.

 

Hi @jbjnr, thanks for the interest. At some point I'll add developer instructions to the README or a similar file to assist with running the project from source. But for the time being I'll help here. Before I begin, what platform are you running locally? Knowing this will help me craft specific instructions to get you going.

 

The application is based off of the electron framework which facilitates the creation of desktop apps using web technologies. It seems like you already have nodejs installed, you will also need to install the yarn package manager to install dependencies and run the application.

Once installed, you can simply run the yarn command to install the prerequisites and then yarn start to run the application. Obviously you will need to do this in a graphical environment as this is a desktop application.

 

Let me know how that goes and I will help further if needed. Overall the main entry point is index.js (as specified in package.json the nodejs configuration module), this gets loaded first and starts the application. main.html and correspondingly main.js are the first windows that get shown, containing the XRP secret and ETH address inputs, and other controls.

 

 

Edited by DevNullProd
Link to comment
Share on other sites

7 minutes ago, DevNullProd said:

Once installed, you can simply run the yarn command to install the prerequisites and then yarn start to run the application. Obviously you will need to do this in a graphical environment as this is a desktop application.

Thank you very much. Got it working now. FYI, I'm on a system 76 laptop, running "Pop! OS" - which is basically ubuntu plus stuff.

pop-os:~/src/xrp/flexrp (main %=)$ cat /etc/*release
DISTRIB_ID=Pop
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Pop!_OS 20.04 LTS"
NAME="Pop!_OS"
VERSION="20.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
LOGO=distributor-logo-pop-os

I will try out the tool now. Thanks again.

Link to comment
Share on other sites

Glad to help. Another tip that may assist in debugging the logic is that menus are disabled in index.js for example here

 

If you comment out these lines (will need to be done for each window independenty) the menus will be re-enabled meaning you can press CTRL-SHIFT-I to open the developer console allowing you to inspect and edit the DOM and view the javascript console to debug errors and such.

 

Let me know if there is anything else I can help with!

Link to comment
Share on other sites

FleXRP 1.0.1 has been released! Updates include:

- The addition of an XRP Address field allowing you to explicitly specify the account to setup. Useful in the case where the account being configured is different than the account signing the transaction (for example is a RegularKey is set)

- MacOS support has been added

- Developer instructions added to the README.

Installation and usage instructions can be found here. If you find this useful please show support by spreading the word!

Screenshot from 2020-11-25 12-20-54.png

Edited by DevNullProd
Link to comment
Share on other sites

On 11/25/2020 at 7:25 PM, DevNullProd said:

FleXRP 1.0.1 has been released! Updates include:

- The addition of an XRP Address field allowing you to explicitly specify the account to setup. Useful in the case where the account being configured is different than the account signing the transaction (for example is a RegularKey is set)

- MacOS support has been added

- Developer instructions added to the README.

Installation and usage instructions can be found here. If you find this useful please show support by spreading the word!

Screenshot from 2020-11-25 12-20-54.png

As an end-user I like it! Especially the eth adress generator. So first of all: thank you for this!

I wanna sign an air-gapped Transaction, so I dont have to expose my private keys on an online computer. Seems pretty straight forward until I have to specify the three additional fields:

  • Fee - the amount of XRP to pay in fees (Do I set it to 1 xrp to be sure? To 0.00002 like in the xrpl api example? Do I research what transactions usually cost and go slightly above or under?)
  • Sequence - the sequence number to assign to the transaction (This one is clear to me: I'll use the last transaction no.+1)
  • Max Ledger Version - the highest ledger number which this transaction can be included in (Do I put in "null", "validated" or a number for use on the "official" XRPL?)

I looked around a little on google and checked the xrpl api documentation, but could not find answers to my questions.

Link to comment
Share on other sites

On 11/27/2020 at 7:49 AM, Muellhart said:

As an end-user I like it! Especially the eth adress generator. So first of all: thank you for this!

I wanna sign an air-gapped Transaction, so I dont have to expose my private keys on an online computer. Seems pretty straight forward until I have to specify the three additional fields:

  • Fee - the amount of XRP to pay in fees (Do I set it to 1 xrp to be sure? To 0.00002 like in the xrpl api example? Do I research what transactions usually cost and go slightly above or under?)
  • Sequence - the sequence number to assign to the transaction (This one is clear to me: I'll use the last transaction no.+1)
  • Max Ledger Version - the highest ledger number which this transaction can be included in (Do I put in "null", "validated" or a number for use on the "official" XRPL?)

I looked around a little on google and checked the xrpl api documentation, but could not find answers to my questions.

Hello @Muellhart, thanks for reaching out. I'm happy to say that is is possible to set these fields with FleXRP and use it completely in offline mode!

Start the application and click the gear icon in the upper right.

Click "Offline mode (only sign transaction, will not submit)"

Three additional settings will pop up, corresponding to the three fields you mentioned above (fee, sequence, and max ledger version)

Fill these out and close the settings window.

Proceed with the rest of the process (entering your XRP secret, ETH address, etc)

Click submit.

---

FleXRP will setup and sign the transaction according to your specification. It will be displayed on screen but not submitted to the network. Make sure to copy this transaction to another computer that is online and submit it to complete the process.

After that you are done... your XRP account will be setup and you will receive Flare Spark tokens on the date of the airdrop!

settings-control.png

Screenshot from 2020-11-28 13-43-58.png

signed-tx.png

Link to comment
Share on other sites

On 11/27/2020 at 7:49 AM, Muellhart said:

As an end-user I like it! Especially the eth adress generator. So first of all: thank you for this!

I wanna sign an air-gapped Transaction, so I dont have to expose my private keys on an online computer. Seems pretty straight forward until I have to specify the three additional fields:

  • Fee - the amount of XRP to pay in fees (Do I set it to 1 xrp to be sure? To 0.00002 like in the xrpl api example? Do I research what transactions usually cost and go slightly above or under?)
  • Sequence - the sequence number to assign to the transaction (This one is clear to me: I'll use the last transaction no.+1)
  • Max Ledger Version - the highest ledger number which this transaction can be included in (Do I put in "null", "validated" or a number for use on the "official" XRPL?)

I looked around a little on google and checked the xrpl api documentation, but could not find answers to my questions.

As far as specific values for those fields:

  • The standard fee is currently: 0.000012 XRP (enter 0.000012 in the field)
  • Yes, set the Sequence # to the number of the last transaction of the signing account plus 1 (so for example if the last transaction is 123, set it to 124)
  • Set max ledger version to that a ledger number which will give you time to submit the transaction on an online computer. For example the current ledger is 59863606 (closed at 2020-11-28 18:50:12 UTC), given an average of 22,232 ledgers closed per day (https://xrpintel.com/reports/day/ledgers), setting the max ledger version to 59885838 will give you until tomorrow (2020-11-29 18:50:12 UTC approximately) to submit it.
Edited by DevNullProd
Link to comment
Share on other sites

On 11/28/2020 at 7:58 PM, DevNullProd said:

As far as specific values for those fields:

  • The standard fee is currently: 0.000012 XRP (enter 0.000012 in the field)
  • Yes, set the Sequence # to the number of the last transaction of the signing account plus 1 (so for example if the last transaction is 123, set it to 124)
  • Set max ledger version to that a ledger number which will give you time to submit the transaction on an online computer. For example the current ledger is 59863606 (closed at 2020-11-28 18:50:12 UTC), given an average of 22,232 ledgers closed per day (https://xrpintel.com/reports/day/ledgers), setting the max ledger version to 59885838 will give you until tomorrow (2020-11-29 18:50:12 UTC approximately) to submit it.

Thank you very much!

This seems really easy, I was just missing the relevant information to put into the mentioned fields. This will be the way I am going to set up for the drop. I will also recommend it to my family and friends.

Link to comment
Share on other sites

Thanks again @DevNullProd - I just spent some time this afternoon generating ethereum wallets and setting the xrpl message key using your tool. All appears good on bithomp, I can see the flare address is picked up and displayed. (I used my own ethereum key generator, but it's really nice that you added that in to the flexrp tool as I'm sure it'll save others some tedious work).

Edited by jbjnr
typo
Link to comment
Share on other sites

2 minutes ago, jbjnr said:

Thanks again @DevNullProd - I just spent some time this afternoon generating ethereum wallets and setting the xrpl message key using your tool. All appears good on bithomp, I can see the flare address is picked up and displayed. (I used my own ethereum key generator, but it's really nice that you added that in to the flexrp tool as I'm sure it'll save others some tedious work).

Glad to be of assistance!

Link to comment
Share on other sites

  • 4 months later...

This was really a awesome tool did as per ur instructions and created a new flare key and submitted it also said successful,  but when i scan in XRPscan it says flare address not registered set message key, and when i went to xrptoolkit to set where message key is set (the address which your tool generated) so my doubt is whether i need to add this flare key in any wallet, kindly guide me

Regards

Andrew

1.jpg

2.jpg

Link to comment
Share on other sites

  • 2 weeks later...
On 4/16/2021 at 9:58 AM, Netfreak said:

This was really a awesome tool did as per ur instructions and created a new flare key and submitted it also said successful,  but when i scan in XRPscan it says flare address not registered set message key, and when i went to xrptoolkit to set where message key is set (the address which your tool generated) so my doubt is whether i need to add this flare key in any wallet, kindly guide me

Regards

Andrew

1.jpg

2.jpg

Bumping this as I hae the same question.


I'm having the same question after following the instructions carefully. When I look at XRPScan it looks just like the above poster. But when looking at my XRP address on https://livenet.xrpl.org/ it says "account set".

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.