STEEM POWER retention ratio of top 50 witnesses

by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/steem-power-retention-ratio-of-top-50-witnesses Hello, this is @joviansummer(witness: @jswit). Some time ago there was a bit of discussion on discord witness chanel about witnesses' power-down/cashing-out. So out of curiosity I just checked current ratio of witnesses' own STEEM POWER(VESTS) and all-time producer reward(VESTS). The ratio is calculated by the following simple formula: ratio(%) = account's own SP(MV) / all-time producer reward SP(MV) * 100% Ratio value less than 100% indicates power-down. If witness does additional power-up or gets other types of reward(e.g., curation reward), the ratio may exceed 100%. This does not take witness' other accounts into consideration. All-time producer reward data is from @steemchiller's SDS API. Here is the result: rank account own_sp prod_sp ratio 1 justyy 2188.411MV 1284.2MV 170.41% 2 steemchiller 982.134MV 124...

SDS를 통해 조회한 스팀잇 포스트 정보의 타임스탬프 시간대(timezone)

by joviansummer
original STEEMIT post: https://steemit.com/blog/@joviansummer/sds-timezone


우선 파이썬과 SDS를 이용한 스팀잇 포스트 정보 조회 방법은 이전 포스트를 참고하시기 바랍니다. 아래의 링크입니다.

파이썬과 SDS를 이용한 스팀잇 포스트 정보 조회

스팀잇 포스트 정보를 스팀 API 노드에서 조회할 경우, 타임스탬프(timestamp)의 시간대(timezone)는 GMT(UTC)입니다. 따라서 한국 시간 기준으로 9시간이 느립니다(한국 시간은 GMT+9시간입니다).

흥미롭게도, SDS를 통해서 포스트 정보를 가져오면 타임스탬프의 시간대가 지역 시간, 즉 한국 시간(GMT+9)입니다. IP주소를 가지고 지역 시간대로 환산해서 응답을 주는 것인지 다른 방식을 사용하는 것인지 모르겠지만 어쨌든 시간이 한국 시간 기준으로 조회됩니다.

앞에서 언급한 이전 포스트의 예제 코드를 다시 가져와 보면 아래와 같습니다.

import requests
import json

author = 'joviansummer'
permlink = 'f7bf32-print'

sds_url = 'https://sds1.steemworld.org/posts_api/getPost/' + author + '/' + permlink

res = requests.get(sds_url)
res_dict = json.loads(res.text)

포스트 작성 시간은 아래와 같이 "result"의 "created" 키(key)에서 확인할 수 있습니다.

print(res_dict['result']['created'])

마지막으로 수정한 시간은 "last_update" 키에 있습니다.

print(res_dict['result']['last_update'])

유닉스 타임스탬프 형식이므로, datetime 객체로 변환해서 활용하면 되겠습니다. datetime 객체로 변환하는 방법은 아래의 링크를 참고하시기 바랍니다.

파이썬에서 유닉스 타임스탬프를 datetime 객체로 변환


@joviansummer의 스팀 프로젝트

스팀 증인노드를 운영중입니다. @jswit에 증인투표해 주시면 감사하겠습니다.
(https://steemitwallet.com/~witnesses)

jswit 증인 노드 프로젝트를 시작합니다.

jsup 업보팅(upvoting) 서비스 소개

jsup 수혜자 지정 기능 추가

jsup 서비스에 큐레이션 보상 분배 기능이 추가되었습니다.

jSTEEM 프로젝트 - 텔레그램 챗봇으로 구현하는 스팀 블럭체인 탐색기

STEEM.NFT - 디지털 아트 보존 프로젝트



Posted through the AVLE Dapp (https://avle.io)

Comments

Popular posts from this blog

스티미언의 영향력 지수 계산

jsup/avle code update - you don't have to write post everyday

jsup/avle 보팅 코드 갱신 - 1일1포스팅 강박에서 벗어나기