BitShares Forum

Main => General Discussion => Topic started by: yak on January 15, 2015, 08:05:26 pm

Title: user issued bitassets dividend question
Post by: yak on January 15, 2015, 08:05:26 pm
Hey, I'm wondering if there is a way to set up an asset that pays out dividends to all of the people who have shares, based on how many shares they have?
for example if i have a user issued asset called BLAH that has 10,000 shares unevenly distributed to 5 users:
user1 6000
user2 1500
user3 1000
user4 1000
user5 500

is there a way to get this information by querying the bitshares client?
Title: Re: user issued bitassets dividend question
Post by: pc on January 16, 2015, 09:30:51 am
Due to TITAN it is not possible to see which *user* owns specific assets.

But the assets are stored in the chain database with balance_ids, and these belong to an address. I. e. from a snapshot of the chain database you can compile a list of addresses and BLAH amounts and then pay out dividends to these addresses.

See also this thread: https://bitsharestalk.org/index.php?topic=13327.0
Title: Re: user issued bitassets dividend question
Post by: xeroc on January 16, 2015, 09:56:50 am
Dividends are nothing else than "increasing the market cap" ... which can be performed by simply buying up your own assets on the market ..

future UIA will have features that allow to identify holders ...
Title: Re: user issued bitassets dividend question
Post by: yak on January 16, 2015, 05:02:43 pm
Due to TITAN it is not possible to see which *user* owns specific assets.

But the assets are stored in the chain database with balance_ids, and these belong to an address. I. e. from a snapshot of the chain database you can compile a list of addresses and BLAH amounts and then pay out dividends to these addresses.

See also this thread: https://bitsharestalk.org/index.php?topic=13327.0

yea, i guess i should have clarified that i personally dont need to know the users, i just would need to know an address + balance and be able to send to them

thanks for the info reading that other link now ;)
Title: Re: user issued bitassets dividend question
Post by: xeroc on January 16, 2015, 05:49:57 pm
go through toast's recent posts and read about the balanceid of each UTXO that is NOT a address to send funds to but can be used to identify an address where you could send dividends to .. topic was opened by monsterer and is called sth with refund or so .. cant xpost atm
Title: Re: user issued bitassets dividend question
Post by: yak on January 17, 2015, 01:43:34 am
go through toast's recent posts and read about the balanceid of each UTXO that is NOT a address to send funds to but can be used to identify an address where you could send dividends to .. topic was opened by monsterer and is called sth with refund or so .. cant xpost atm

yup i think i've figured it out, i've tested it with bts and bitusd, now all i have to do is write something that can log all of the various send/receives of that specific asset in order to tally them up, then i can just send the right amount of whatever to the 'owner' of each
wallet_transfer_to_address 1 USD myaccount ownerspublicaddress
unless this is not the proper way to do it? (it worked, but not sure if there is a better way?)
Title: Re: user issued bitassets dividend question
Post by: clayop on February 12, 2015, 09:40:05 am
Is there a snapshot tool for UIAs?