Dependence:
libcurl, lua
windows/msys compile:
gcc -shared steem.cpp -o steem.dll -lcurl -llua
Linux compile:
gcc -shared steem.cpp -o steem.so -lcurl -llua
Details
The Steem library for lua has been designed to allow lua/game developers to easily access Steem blockchain. The library is steem.cpp.
Finished and tested below functions, please see test.lua for how to use them.
All of below functions return 2 values, the first one is a json string, similar as the steemjs. the second one is the length of json string.
get_trending_tags
get_discussions_by_trending
get_discussions_by_created
get_discussions_by_active
get_discussions_by_cashout
get_discussions_by_payout
get_discussions_by_votes
get_discussions_by_children
get_discussions_by_hot
get_discussions_by_feed
get_discussions_by_blog
get_discussions_by_comments
get_block_header
get_block
get_state
get_config
get_feed_history
get_current_median_history_price
get_hardfork_version
get_next_scheduled_hardfork
get_reward_fund
get_vesting_delegations
get_key_references
get_accounts
get_account_references
lookup_account_names
lookup_accounts
get_account_count
get_conversion_requests
get_account_history
get_recovery_request
Test:
lua test.lua
Test result:
{"result":598618,"id":1}24.0
Submit screenshot:
Source code
Commit history
Posted on Utopian.io - Rewarding Open Source Contributors