create account

SteemIt Bot Update: Showing Your Payout in Last 7 Days - 机器人更新:查询过去7天的收益 by dailychina

View this thread on: hive.blogpeakd.comecency.com
· @dailychina · (edited)
$5.45
SteemIt Bot Update: Showing Your Payout in Last 7 Days - 机器人更新:查询过去7天的收益
## Motivation
How many of you sometimes want to know how much you have been paid by writing good contents? Especially for those regular writers or even full time steemians, they want to know [how much payout per week](https://helloacm.com/steemit-bot-update-showing-your-payout-in-last-7-days/).

I am adding these to the [steemit discord](https://helloacm.com/the-steemit-discord-bot-upgrade-and-api/) bot and the wechat channel.

## The SteemIt Discord Bot
Adding steemit bot to your discord server:

https://discordapp.com/oauth2/authorize?client_id=418196534660694037&permissions=522304&scope=bot

## Your Payout in Last 7 Days Explained
These information are now included in the profile lookup query such as `?steemit_account`
![image.png](https://gateway.ipfs.io/ipfs/Qmef1gJ1aXf5VaUgrqimC1ewascffwxabQxZb1ofWVVboh)

SBD - The Steem Dollars
SP - The Steem Power via Curation or 100% Power up (These are locked up via 13 week if you power down)
STEEM - These tradeable tokens can be transferred anywhere but they are not usually given per post payout.

## How to Do this?
via SBDS ([MySQL](https://helloacm.com/how-to-connect-to-steem-blockchain-database-service-mysql-using-linqpad/)): 


```
select 
  account, 
  sum(reward_steem) as "STEEM", 
  sum(reward_sbd) as "SBD", 
  sum(reward_vests) as "SP" 
from 
  sbds_tx_claim_reward_balances
where
  account in ('justyy')  and 
  datediff(UTC_Date(), timestamp) between 0 and 7 
group by account
```

or [SteemSQL](https://helloacm.com/steemsql-tutorial-i-have-spent-800-sbd-7000-usd-buying-votes/) ([MSSQL](https://helloacm.com/how-to-check-if-steemsql-is-synchronized-with-steem-blockchain/)):

```
select 
  account, 
  sum(reward_steem) as "STEEM", 
  sum(reward_sbd) as "SBD", 
  sum(reward_vests) as "SP" 
from 
  TxClaimRewardBalances( NOLOCK)
where
  account in ('justyy') and 
  datediff(hour, timestamp, getutcdate()) between 0 and 24*7 
group by 
  account
```

## Wechat Channel `justyyuk`
![image.png](https://gateway.ipfs.io/ipfs/QmVtVJauwYHSdUC7K9UF2L8Bs9VRihEynepciTG8cgpcW4)

------------------------------------------------
Support me and my work as a [witness](https://steemit.com/witness-category/@justyy/justyy-just-another-witness) by
1. voting me [here, or](https://steemconnect.com/sign/account_witness_vote?approve=1&witness=justyy)
2. voting me as a [proxy](https://v2.steemconnect.com/sign/account-witness-proxy?proxy=justyy&approve=1)

Some of my contributions: **[SteemIt Tools, Bots, APIs and Tutorial](https://helloacm.com/tools/steemit/)**


-----------------------------------------------------------
## 动机
有一些时候,我们想了解到我们在STEEM平台上一周得到的奖励。特别是对于一些全职在STEEM上的贡献者来说,他们想了解到是否能通过[STEEM](https://justyy.com/archives/6278)来得到足够养家的收入。

现在,DISCORD的[机器人](https://justyy.com/archives/6091) steemit 还有微信公众号 justyyuk 都将支持查询:过去7天收益。

## SteemIt 机器人
把 steemit 添加到你的 discord 频道上:

https://discordapp.com/oauth2/authorize?client_id=418196534660694037&permissions=522304&scope=bot

## 怎么样查询
只需要和以前一样 输入 `?steemit_account` 即可查询
![image.png](https://gateway.ipfs.io/ipfs/Qmef1gJ1aXf5VaUgrqimC1ewascffwxabQxZb1ofWVVboh)

SBD - 流动性很强
SP - 这些是通过点赞或者你100% POWER UP 得到的奖赏,取出来需要13周(power down)
STEEM - 这可以被转换成SBD或者其它货币,但是文章奖励很少情况下会变成STEEM给你。

## 如何实现查询的?
通过 SBDS 的[MYSQL](https://justyy.com/archives/5918)查询:

```
select 
  account, 
  sum(reward_steem) as "STEEM", 
  sum(reward_sbd) as "SBD", 
  sum(reward_vests) as "SP" 
from 
  sbds_tx_claim_reward_balances
where
  account in ('justyy')  and 
  datediff(UTC_Date(), timestamp) between 0 and 7 
group by account
```

或者[STEEMSQL](https://justyy.com/archives/5908)的 [MSSQL](https://justyy.com/archives/5928)

```
select 
  account, 
  sum(reward_steem) as "STEEM", 
  sum(reward_sbd) as "SBD", 
  sum(reward_vests) as "SP" 
from 
  TxClaimRewardBalances( NOLOCK)
where
  account in ('justyy') and 
  datediff(hour, timestamp, getutcdate()) between 0 and 24*7 
group by 
  account
```

## 微信公众号 `justyyuk`
![image.png](https://gateway.ipfs.io/ipfs/QmVtVJauwYHSdUC7K9UF2L8Bs9VRihEynepciTG8cgpcW4)

------------------------------------------------

## 支持我的工作 支持我成为 [见证人](https://steemit.com/cn/@justyy/5h6gyv-cn) 
1. [请在 这里 投我一票](https://steemconnect.com/sign/account_witness_vote?approve=1&witness=justyy), 或者
2. 设置我 [为代理](https://v2.steemconnect.com/sign/account-witness-proxy?proxy=justyy&approve=1).

我的一些贡献: **[SteemIt 工具、API接口、机器人和教程](https://helloacm.com/tools/steemit-tools/)**
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authordailychina
permlinksteemit-bot-update-showing-your-payout-in-last-7-days-7
categorysteemapps
json_metadata{"community":"busy","app":"steemit/0.1","format":"markdown","tags":["steemapps","cn-reader","cn","cn-programming","programming"],"links":["https://helloacm.com/steemit-bot-update-showing-your-payout-in-last-7-days/","https://helloacm.com/the-steemit-discord-bot-upgrade-and-api/","https://discordapp.com/oauth2/authorize?client_id=418196534660694037&permissions=522304&scope=bot","https://helloacm.com/how-to-connect-to-steem-blockchain-database-service-mysql-using-linqpad/","https://helloacm.com/steemsql-tutorial-i-have-spent-800-sbd-7000-usd-buying-votes/","https://helloacm.com/how-to-check-if-steemsql-is-synchronized-with-steem-blockchain/","https://steemit.com/witness-category/@justyy/justyy-just-another-witness","https://steemconnect.com/sign/account_witness_vote?approve=1&witness=justyy","https://v2.steemconnect.com/sign/account-witness-proxy?proxy=justyy&approve=1","https://helloacm.com/tools/steemit/","https://justyy.com/archives/6278","https://justyy.com/archives/6091","https://justyy.com/archives/5918","https://justyy.com/archives/5908","https://justyy.com/archives/5928","https://steemit.com/cn/@justyy/5h6gyv-cn","https://helloacm.com/tools/steemit-tools/"],"image":["https://gateway.ipfs.io/ipfs/Qmef1gJ1aXf5VaUgrqimC1ewascffwxabQxZb1ofWVVboh","https://gateway.ipfs.io/ipfs/QmVtVJauwYHSdUC7K9UF2L8Bs9VRihEynepciTG8cgpcW4"]}
created2018-04-29 08:58:48
last_update2018-04-29 18:07:12
depth0
children13
last_payout2018-05-06 08:58:48
cashout_time1969-12-31 23:59:59
total_payout_value4.474 HBD
curator_payout_value0.974 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,397
author_reputation50,124,640,567,504
root_title"SteemIt Bot Update: Showing Your Payout in Last 7 Days - 机器人更新:查询过去7天的收益"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,792,135
net_rshares856,777,057,425
author_curate_reward""
vote details (55)
@a-0-0 ·
Read my profile if you want me to resteem your last blog post to my 36,000+ followers free. https://steemit.com/@a-0-0
properties (22)
authora-0-0
permlinkre-dailychina-steemit-bot-update-showing-your-payout-in-last-7-days-7-20180429t085900727z
categorysteemapps
json_metadata{"tags":["steemapps"],"links":["https://steemit.com/@a-0-0"],"app":"steemit/0.1"}
created2018-04-29 08:58:57
last_update2018-04-29 08:58:57
depth1
children0
last_payout2018-05-06 08:58:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length118
author_reputation-4,863,186,238,920
root_title"SteemIt Bot Update: Showing Your Payout in Last 7 Days - 机器人更新:查询过去7天的收益"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,792,146
net_rshares0
@chrislyr · (edited)
This is very useful. Is it possible to add incoming reward as well? I have discord server and it is already using your cryptocurrency bot. I also plan to use this bot so I hope you can consider the question above. Thanks for always bringing useful tools to the community.
properties (22)
authorchrislyr
permlinkre-dailychina-steemit-bot-update-showing-your-payout-in-last-7-days-7-20180429t125026172z
categorysteemapps
json_metadata{"tags":["steemapps"],"app":"steemit/0.1"}
created2018-04-29 12:50:33
last_update2018-04-29 12:50:54
depth1
children5
last_payout2018-05-06 12:50:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length271
author_reputation19,289,148,102,808
root_title"SteemIt Bot Update: Showing Your Payout in Last 7 Days - 机器人更新:查询过去7天的收益"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,823,505
net_rshares0
@justyy ·
$0.06
Thanks. what do you mean by incoming rewards?
👍  , , , ,
properties (23)
authorjustyy
permlinkre-chrislyr-re-dailychina-steemit-bot-update-showing-your-payout-in-last-7-days-7-20180429t152714455z
categorysteemapps
json_metadata{"tags":["steemapps"],"app":"steemit/0.1"}
created2018-04-29 15:27:15
last_update2018-04-29 15:27:15
depth2
children4
last_payout2018-05-06 15:27:15
cashout_time1969-12-31 23:59:59
total_payout_value0.062 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length45
author_reputation280,616,224,641,976
root_title"SteemIt Bot Update: Showing Your Payout in Last 7 Days - 机器人更新:查询过去7天的收益"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,850,294
net_rshares10,387,500,510
author_curate_reward""
vote details (5)
@chrislyr · (edited)
My bad, I mean upcoming payout or total payout for the next 7 days, similar to steem.supply. It doesn't need to be as complicated as steem.supply, just a simple breakdown would do.

Edit: After re-reading it seems the bot is already doing that, except I can't seem to make it work. Maybe I'm using the wrong command? I tried writing my username with @ and without @ at discord chat, but the bot does not respond. Am I doing it wrong? I hope you can assist. Thanks
properties (22)
authorchrislyr
permlinkre-justyy-re-chrislyr-re-dailychina-steemit-bot-update-showing-your-payout-in-last-7-days-7-20180429t233530711z
categorysteemapps
json_metadata{"tags":["steemapps"],"app":"steemit/0.1"}
created2018-04-29 23:35:36
last_update2018-04-29 23:41:36
depth3
children3
last_payout2018-05-06 23:35:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length463
author_reputation19,289,148,102,808
root_title"SteemIt Bot Update: Showing Your Payout in Last 7 Days - 机器人更新:查询过去7天的收益"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,919,331
net_rshares0
@cnbuddy ·
你好cn区点赞机器人 @cnbuddy 这厢有礼了。如果我打扰到你,请回复“取消”。
properties (22)
authorcnbuddy
permlinkre-dailychina-steemit-bot-update-showing-your-payout-in-last-7-days-7-20180429t161619994z
categorysteemapps
json_metadata""
created2018-04-29 16:16:21
last_update2018-04-29 16:16:21
depth1
children0
last_payout2018-05-06 16:16:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length42
author_reputation-1,449,160,991,441
root_title"SteemIt Bot Update: Showing Your Payout in Last 7 Days - 机器人更新:查询过去7天的收益"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,858,835
net_rshares0
@cryptocurator ·
Hey @justyy - that is really useful. Some clever programming there. I wondered if you would time to have a look at my blog today  - it follows a recent conversation we had in London.....
properties (22)
authorcryptocurator
permlinkre-dailychina-steemit-bot-update-showing-your-payout-in-last-7-days-7-20180429t202730233z
categorysteemapps
json_metadata{"tags":["steemapps"],"users":["justyy"],"app":"steemit/0.1"}
created2018-04-29 20:27:36
last_update2018-04-29 20:27:36
depth1
children0
last_payout2018-05-06 20:27:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length186
author_reputation29,866,721,457,384
root_title"SteemIt Bot Update: Showing Your Payout in Last 7 Days - 机器人更新:查询过去7天的收益"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,896,540
net_rshares0
@sphenix ·
is the SBDS mysql stop update? notice last update until 19april18
properties (22)
authorsphenix
permlinkre-dailychina-steemit-bot-update-showing-your-payout-in-last-7-days-7-20180510t111111494z
categorysteemapps
json_metadata{"tags":["steemapps"],"app":"steemit/0.1"}
created2018-05-10 11:11:12
last_update2018-05-10 11:11:12
depth1
children3
last_payout2018-05-17 11:11:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length65
author_reputation5,748,533,947,935
root_title"SteemIt Bot Update: Showing Your Payout in Last 7 Days - 机器人更新:查询过去7天的收益"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id54,935,417
net_rshares0
@justyy ·
$0.06
https://helloacm.com/api/steemit/blocknumber/sbds/
```
{"timestamp": "2018-04-19 18:06:45 (UTC)", "query_time": 0, "block_num": 21710750, "seconds": 74552}
```
So 20 hours. basically useless.
👍  , , , , ,
properties (23)
authorjustyy
permlinkre-sphenix-re-dailychina-steemit-bot-update-showing-your-payout-in-last-7-days-7-20180510t150620571z
categorysteemapps
json_metadata{"tags":["steemapps"],"links":["https://helloacm.com/api/steemit/blocknumber/sbds/"],"app":"steemit/0.1"}
created2018-05-10 15:06:21
last_update2018-05-10 15:06:21
depth2
children2
last_payout2018-05-17 15:06:21
cashout_time1969-12-31 23:59:59
total_payout_value0.055 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length191
author_reputation280,616,224,641,976
root_title"SteemIt Bot Update: Showing Your Payout in Last 7 Days - 机器人更新:查询过去7天的收益"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id54,971,712
net_rshares12,079,955,203
author_curate_reward""
vote details (6)
@sphenix ·
not only 20hrs, is last month data >.<
properties (22)
authorsphenix
permlinkre-justyy-re-sphenix-re-dailychina-steemit-bot-update-showing-your-payout-in-last-7-days-7-20180511t044643454z
categorysteemapps
json_metadata{"tags":["steemapps"],"app":"steemit/0.1"}
created2018-05-11 04:46:54
last_update2018-05-11 04:46:54
depth3
children1
last_payout2018-05-18 04:46:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length38
author_reputation5,748,533,947,935
root_title"SteemIt Bot Update: Showing Your Payout in Last 7 Days - 机器人更新:查询过去7天的收益"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id55,076,178
net_rshares0