steemlua -- the steem library for lua

in #utopian-io7 years ago (edited)

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:

图片.png

Source code

Commit history



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  
Loading...

Your contribution cannot be approved because it is not as informative as other contributions. See the Utopian Rules. Contributions need to be informative and descriptive in order to help readers and developers understand them.

On Utopian we want actively maintained and promising open source projects - not private projects. It is important that you provide all the required information about your work, and that your project has a quality README file.

You can contact us on Discord.
[utopian-moderator]

@dutch, thanks for reveiw!
I updated descriptions, please review it again.