Nxt Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client 1.11.4 - NEW RELEASE: Ardor 2.0.2e TestNet IS LAUNCHED!

Pages: [1]

Author Topic: Dividend plugin  (Read 2638 times)

NxtSwe

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 659
    • View Profile
  • Karma: +119/-9
Dividend plugin
June 15, 2015, 10:08:13 am

Dividend plugin

Features
  • Show recieved NXT dividend transactions (the core type, not those payed by Dividend+)
  • Phased transactions safe
  • Shows full history (all dividend payments) to current accout

How to download?
Download link: https://github.com/libertyswede/dividend-plugin/archive/v1.01.zip
Unzip, and move the "dividend" folder to your nxt\html\ui\plugins - folder.

About
Have you ever wondered if you recieved any dividend from your assets?
Have you ever known that the asset has payed out a dividend, but you are not sure how much you got?
Then this plugin is for you!
It will show all dividend payments recieved by the current logged in account, and a summary showing the count & sum of all recieved dividend payments.

Version History
  • v1.01, Added summary box and minor fixes
  • v1.0, Initial release


It will need to process current accounts entire asset trade & asset transfer history to calculate number of shares at any given height.
So for some heavy trading users loading the list can take a minute or two from logging in to the client.
As an example, loading an account with 23'000 asset transfers took ~40 seconds on my local machine.

Please note that this plugin will only show the native dividend transaction (type=2, subtype=6), and NOT the ones payed by Dividends+ from MGW/superNET.
« Last Edit: June 15, 2015, 11:01:18 am by NxtSwe »
Check out the NxtLib, the .NET Framework API for the Nxt platform.

NxtSwe

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 659
    • View Profile
  • Karma: +119/-9
Re: Dividend plugin
June 15, 2015, 10:26:49 am

Reserved
Check out the NxtLib, the .NET Framework API for the Nxt platform.

chevdor

  • Full Member
  • ***
  • Offline Offline
  • Posts: 165
    • View Profile
  • Karma: +19/-0
Re: Dividend plugin
June 15, 2015, 02:35:00 pm

Nice one, I made a similar one that charts the results without showing you the details (https://nxtforum.org/index.php?topic=9373.0).

I like your solution as well. I will check it out.
Thanks for sharing!
NXT-YCLA-V44V-USJK-3GPJD
BM-2cXnA5HdtsDttGaPEAJd1oYX3zMbiKDewV

chevdor

  • Full Member
  • ***
  • Offline Offline
  • Posts: 165
    • View Profile
  • Karma: +19/-0
Re: Dividend plugin
June 15, 2015, 02:42:44 pm

Hey,

I just tested your plugin and it lists only ONE transaction for me. Somehow, it misses many transactions.
https://github.com/libertyswede/dividend-plugin/issues/1
NXT-YCLA-V44V-USJK-3GPJD
BM-2cXnA5HdtsDttGaPEAJd1oYX3zMbiKDewV

NxtSwe

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 659
    • View Profile
  • Karma: +119/-9
Re: Dividend plugin
June 15, 2015, 03:29:12 pm

Hey,

I just tested your plugin and it lists only ONE transaction for me. Somehow, it misses many transactions.
https://github.com/libertyswede/dividend-plugin/issues/1
Hi,

Thank you for your comment!
Is this the NXT address you are using?
NXT-YCLA-V44V-USJK-3GPJD
What dividend transactions are you missing?
Check out the NxtLib, the .NET Framework API for the Nxt platform.

NxtSwe

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 659
    • View Profile
  • Karma: +119/-9
Re: Dividend plugin
June 15, 2015, 08:12:37 pm

Hey,

I just tested your plugin and it lists only ONE transaction for me. Somehow, it misses many transactions.
https://github.com/libertyswede/dividend-plugin/issues/1
Hi,

Thank you for your comment!
Is this the NXT address you are using?
NXT-YCLA-V44V-USJK-3GPJD
What dividend transactions are you missing?
Hi,

I had a look at your problem, and it seem that the transaction you are referring to is a "ordinary payment" transaction type.
This plugin will only show the native NXT dividend payment type.

For instance, Dividends+ which is a part of supernet/multigateway is a popular way to send out dividends.
But it does so by creating 1 ordinary payment transaction to each recipient. These transactions will not be shown in this plugin, at least not in its current version.
Check out the NxtLib, the .NET Framework API for the Nxt platform.

chevdor

  • Full Member
  • ***
  • Offline Offline
  • Posts: 165
    • View Profile
  • Karma: +19/-0
Re: Dividend plugin
June 15, 2015, 09:24:05 pm

I understand the problem and I realise that unfortunately, it seems that 99% of all dividend payments are done thru ordinary payments for some reasons...
NXT-YCLA-V44V-USJK-3GPJD
BM-2cXnA5HdtsDttGaPEAJd1oYX3zMbiKDewV

whatnxt

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 502
    • View Profile
  • Karma: +48/-8
Re: Dividend plugin
June 16, 2015, 01:47:12 am

I understand the problem and I realise that unfortunately, it seems that 99% of all dividend payments are done thru ordinary payments for some reasons...

Time for everyone to get back to the Asset Issuers and tell them they can use native dividends safely now.
No more complaints about no dividend sent. No more accusations and no more arguments.
NXT-UAPC-3T43-FFT6-HW5BZ

NxtSwe

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 659
    • View Profile
  • Karma: +119/-9
Re: Dividend plugin
June 16, 2015, 05:17:39 am

I understand the problem and I realise that unfortunately, it seems that 99% of all dividend payments are done thru ordinary payments for some reasons...

Time for everyone to get back to the Asset Issuers and tell them they can use native dividends safely now.
No more complaints about no dividend sent. No more accusations and no more arguments.

Well, there are pro's and con's to each way of doing it.
The biggest advantage of the native dividend tx is that you only pay 1 NXT in fee, while the Dividend+ means you have to pay 1 NXT per recipient. On other hand, you can personalize the message with the , and you don't have to use a plugin to be able to see that you received something.
Check out the NxtLib, the .NET Framework API for the Nxt platform.

chevdor

  • Full Member
  • ***
  • Offline Offline
  • Posts: 165
    • View Profile
  • Karma: +19/-0
Re: Dividend plugin
June 16, 2015, 08:00:27 am

I realized that indeed. In this end the cool thing is that the "Dividend plugin" is using genuine dividends (which is nice and makes this plugin really needed!) while the plugin I wrote ("Dividends Scanner") takes care of the "Ordinary Payments". So with those 2 you are all set.
NXT-YCLA-V44V-USJK-3GPJD
BM-2cXnA5HdtsDttGaPEAJd1oYX3zMbiKDewV

farl4bit

  • Global Moderator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3291
  • Go Nxt!
    • View Profile
    • Blockchain Startpagina
  • Karma: +201/-42
Re: Dividend plugin
July 27, 2015, 02:23:59 pm

Is this safe? Can't my passphrase be compromised? This message keeps frightening me.   :o

valarmg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1778
    • View Profile
  • Karma: +177/-57
Re: Dividend plugin
July 27, 2015, 03:56:32 pm

Is this safe? Can't my passphrase be compromised? This message keeps frightening me.   :o


You have to trust the creator of the plugin or make sure that someone or several someones have reviewed the plugin. I believe someone is creating a site with "trusted" plugins.

https://nxtforum.org/nxt-plugins/nxtplugins-com/
« Last Edit: July 27, 2015, 03:59:12 pm by valarmg »
NXT-CSED-4PK5-AR4V-6UB5V

hodl129

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 22
    • View Profile
  • Karma: +4/-1
Re: Dividend plugin
July 29, 2015, 09:40:02 am

Is this safe? Can't my passphrase be compromised? This message keeps frightening me.   :o


Yes I also got worried from this message...but it's been over a month, hopefully this is considered safe to use.
Is there any open source version?

NxtSwe

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 659
    • View Profile
  • Karma: +119/-9
Re: Dividend plugin
July 30, 2015, 06:30:11 am

Is this safe? Can't my passphrase be compromised? This message keeps frightening me.   :o



Hi,
I would not consider this plugin safe, as I have made it and I am not a trusted member of this community.

However, Jones has chosen to add this plugin to his public node @ http://jnxt.org/nxt/ so I guess he has checked the source and deemed it safe.
Check out the NxtLib, the .NET Framework API for the Nxt platform.

NxtSwe

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 659
    • View Profile
  • Karma: +119/-9
Re: Dividend plugin
July 30, 2015, 06:33:41 am

Is this safe? Can't my passphrase be compromised? This message keeps frightening me.   :o


Yes I also got worried from this message...but it's been over a month, hopefully this is considered safe to use.
Is there any open source version?
Well, the zip-file contains non compiled files (javascript, html & css), so by just downloading the zip-file you are downloading the source.
And the zip-file is generated from the source which can be found of the github repo https://github.com/libertyswede/dividend-plugin/ so this is a open source version.
Check out the NxtLib, the .NET Framework API for the Nxt platform.
Pages: [1]