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

by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/jsup-avle-code-update-you-don-t-have-to-write-post-everyday Hello, this is @joviansummer, developer of @jsup and@avle voting service. Voting service code for @jsup and @avle has been updated. I had been considering this update for a while, and recently I could come up with detailed implementation plan which resulted in a relatively swift code revision. The new added feature is capability to give daily upvote to the first thing you write for the day(timezone GMT+9) regardless of post or comment/reply. Writing a post everyday can be challenging. In that case, you can write a reply to receive daily upvote because writing a reply everyday is much easier and also a good way to engage in your community. Writing a post everyday just to get an upvote can be very tedious and exhausting, and post itself could easily become low-quality. There may be people who enjoy writing a post everyday, but we can't ignore th...

파이썬 beem에서 스팀파워(SP)를 VEST값으로 변환

by joviansummer
original STEEMIT post: https://steemit.com/blog/@joviansummer/beem-sp-vest


스팀 블럭체인에서 스팀파워(SP)는 VEST라는 단위로 바뀌어서 처리됩니다. 스팀파워는 사람이 읽기에 편리하지만 정확한 비율 계산을 위해서 내부적으로 처리하는 단위는 자리수가 훨씬 많은 VEST입니다. 관련 내용은 이전 포스팅을 참고하시기 바랍니다. 아래의 링크입니다.

파이썬 beem을 이용해서 현재 스팀파워(SP) 확인하기

위의 포스트에서는 계정의 스팀파워를 확인하기 위해 VEST값을 스팀파워로 변환하는 과정이 있는데, 여기에서는 반대로 스팀파워를 VEST값으로 변환하는 방법을 정리합니다. Steem 객체에서 sp_to_vests()라는 함수를 제공하기 때문에 간편하게 변환할 수 있습니다. 인자(argument)로 입력하는 스팀파워와 반환되는 VEST값 모두 부동소수점(float) 형식입니다.

예제 코드는 아래와 같습니다.

from beem import Steem

node_list = ["https://api.steemit.com"]
s = Steem(node=node_list)

# 10.5sp를 VEST로 변환하여 변수 vests_val에 할당
sp_val = 10.5
vests_val = s.sp_to_vests(sp_val)

@joviansummer의 스팀 프로젝트

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

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

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

jsup 수혜자 지정 기능 추가

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

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

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

Comments

Popular posts from this blog

Nuitka - 파이썬 스크립트를 바이너리 실행 파일로 변환

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

[EN] STEEM-services: dapps/services webpage with sort and search functions