파이썬 beem을 이용해서 현재 블럭 번호 조회
파이썬 beem을 이용해서 스팀 블럭체인의 현재 블럭 번호를 조회할 수 있습니다. Blockchain 객체의 get_current_block_num() 함수를 이용합니다.
조회되는 블럭 번호는 정수(int) 형식이며 가장 최근의 블럭에 할당된 번호입니다. 예제 코드는 아래와 같습니다.
from beem.steem import Steem
from beem.blockchain import Blockchain
steem_nodes = ["https://api.steemit.com"]
steem = Steem(node=steem_nodes)
bc = Blockchain(blockchain_instance=steem)
# 현재 블럭 번호를 변수 bn에 할당
bn = bc.get_current_block_num()
print("현재 블럭 번호:", str(bn))
@joviansummer의 스팀 프로젝트
스팀 증인노드를 운영중입니다. @jswit에 증인투표해 주시면 감사하겠습니다.
(https://steemitwallet.com/~witnesses)
jsup 서비스에 큐레이션 보상 분배 기능이 추가되었습니다.
jSTEEM 프로젝트 - 텔레그램 챗봇으로 구현하는 스팀 블럭체인 탐색기
Posted through the AVLE Dapp (https://avle.io)
Hello friend!


I'm @steem.history, who is steem witness.
Thank you for witnessvoting for me.
please click it!
(Go to https://steemit.com/~witnesses and type fbslo at the bottom of the page)
Upvoted! Thank you for supporting witness @jswit.
오늘도 하나 배워갑니다~
@추천해
감사합니다!
안녕하세요.
이 글은 SteemitKorea팀(@jungjunghoon)님께서 저자이신 @joviansummer님을 추천하는 글입니다.
소정의 보팅을 해드렸습니다 ^^ 항상 좋은글 부탁드립니다
SteemitKorea팀에서는 보다 즐거운 steemit 생활을 위해 노력하고 있습니다.
이 글은 다음날 다시 한번 포스팅을 통해 소개 될 예정입니다. 감사합니다!
감사합니다!