by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/eng-steem-security-receive-steem-alert-messages-via-discord Hello, this is @joviansummer(witness: @jswit). I'd like to introduce my new experimental project, "STEEM Security." I started this dev project for my personal use, but decided to overhaul the code to make it available to all steemians. This is a Discord bot which will send STEEM security alert to you. Currently, the bot will send an alert message if the following operations happen: - sending STEEM/SBD to another account - changing SP delegation - account update Here is how you set up the Discord bot: Login to Discord and join my STEEM_SECURITY server: https://discord.gg/pawu8YTAvm If you check the member list, you will see "STEEM_SECURITY" bot account. Right-click the bot account and select "Message" to open a DM(direct message) channel with it. On DM channel, register your steem account by sending &q
파이썬 beem에서 블러트 계정 트랜잭션 이력 조회
- Get link
- X
- Other Apps
by joviansummer
original STEEMIT post: https://steemit.com/blog/@joviansummer/6i5qna-beem
파이선 beem 모듈을 이용해서 블러트 계정의 트랜잭션(transaction) 이력을 조회할 수 있습니다. Account 객체의 get_history_reverse()를 사용합니다.
from beem import Blurt
from beem.account import Account
blurt_node = ["https://rpc.blurt.world"]
blurt = Blurt(node=blurt_node)
account = Account('joviansummer', blockchain_instance=blurt)
# 계정의 최근 트랜잭션을 가져오기 위한 제네레이터
r_hist = account.history_reverse(raw_output=True)
# 최근 5개의 트랜잭션 출력
for i in range(5):
hist_item = next(r_hist)
print(hist_item)
위의 예시에서 출력 결과는 딕셔너리(dict) 형식이며, 아래의 예시와 같은 형태로 가져옵니다.
[1487, {'trx_id': '0000000000000000000000000000000000000000', 'block': 15167787, 'trx_in_block': 4294967295, 'op_in_trx': 0, 'virtual_op': 1, 'timestamp': '2021-12-23T05:37:27', 'op': {'type': 'producer_reward_operation', 'value': {'producer': 'joviansummer', 'vesting_shares': {'amount': '1567350', 'precision': 6, 'nai': '@@000000037'}}}}]
필요한 항목을 가져와서 활용하면 됩니다.
# 블럭 번호 출력
print(hist_item[1]['block'])
# operation 식별자 출력
print(hist_item[1]['op']['type'])
@joviansummer의 스팀 프로젝트
스팀 증인노드를 운영중입니다. @jswit에 증인투표해 주시면 감사하겠습니다.
(https://steemitwallet.com/~witnesses)
Popular posts from this blog
Nuitka - 파이썬 스크립트를 바이너리 실행 파일로 변환
by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/nuitka 파이썬과 관련해서 재미 있는 프로젝트를 찾았습니다. Nuitka라는 프로젝트입니다. https://github.com/Nuitka/Nuitka 파이썬 스크립트를 C언어로 변환한 후에 컴파일하여 바이너리 실행 파일로 만들어준다고 합니다. 아직 사용해 보진 않았는데요. 라즈베리파이처럼 작은 컴퓨터에서 컴퓨팅 자원이 아쉬운 상황이라면 파이썬 스크립트를 직접 실행하는 것보다 Nuitka로 컴파일한 바이너리를 실행하면 자원이 절약될 것 같기도 합니다. 소스 코드를 공개하지 않아야 할 경우(코드에 패스워드가 포함되어 있는 경우 등)에도 사용할 수 있을 것 같네요. 어쨌든 나중에 필요할 수도 있을 듯해서 여기에 메모해 둡니다. @joviansummer의 스팀 프로젝트 스팀 증인노드를 운영중입니다. @jswit에 증인투표해 주시면 감사하겠습니다. ( https://steemitwallet.com/~witnesses ) jswit 증인 노드 프로젝트를 시작합니다. jsup 업보팅(upvoting) 서비스 소개 jsup 수혜자 지정 기능 추가 jSTEEM 프로젝트 - 텔레그램 챗봇으로 구현하는 스팀 블럭체인 탐색기 STEEM.NFT - 디지털 아트 보존 프로젝트
[ENG] jsup 2.0 - make your upvote great again
by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/eng-jsup-2-0-make-your-upvote-great-again Hello, this is @joviansummer, developer of @jsup service. Beneficiary feature of @jsup service has been updated. For more information about the beneficiary feature, please check the following post: How to support your family members and friends with @jsup curation project Previously, if you specified beneficiary, the beneficiary also received curation reward generated by upvote. Now, there are 2 modes of support for beneficiary. Upvote only: Daily upvote goes to the beneficiary, but curation/passive reward goes to the delegator. If the beneficiary does not write post, passive reward goes to the delegator. Full support: Same as before. Curation/passive reward goes to the beneficiary. You can specify beneficiary by replying to the latest post of @jsup or @joviansummer. Default mode is upvote only. If you want go give full support to your beneficiary, please
[EN] STEEM-services: dapps/services webpage with sort and search functions
by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/en-steem-services-dapps-services-webpage-with-sort-and-search-functions Hello, this is @joviansummer(witness: @jswit). I expanded Steemit-Search website and made a simple webpage to list STEEM services. You can sort and search the records to find specific service. Here is the link: https://steemit.vercel.app/svcs If you want to add your service/dapp to the list, please write a reply to this post with the following information: category: social, nft, tool, voting, api, etc name: service/dapp name description: brief description for your service/dapp (preferably in English, less than 500 chars) link: link to your corresponding steemit post or webpage dev/admin: developer or admin account @steemchiller and @ety001, I took the liberty of adding SteemWorld, SDS API, and Steem Backup Data Server because I think they are essential services. If you want to add/modify/remove anything, please let me now. Than
Comments
Post a Comment