 I've published a second release of MIT licensed [steem-client-rs client](https://github.com/cyberpunk-ventures/steem-client-rs) which improves module apis, adds proper exception handling, better testing and latest cargo packages update. [Github Repo](https://github.com/cyberpunk-ventures/steem-client-rs) # How to use Steem-client-rs hasn't been graduated to crates.io yet, so you'll need to use a git dependency. ```rust [dependencies] steem-client = { git = "https://github.com/cyberpunk-ventures/steem-client-rs" } ``` Example code ```rust extern crate steem_client; use steem_client::*; let api = steem_client::SteemApi::DatabaseApi; let api_method = "get_dynamic_global_properties".to_string(); let args = vec![]; let response: Result<serde_json::Value, SteemError> = steem_client::call(api, api_method, args); response["result"]["head_block_number"].as_u64().unwrap() > 10000000; // true ``` My Rust experience is limited so I'm sure the code is sub-optimal. Nevertheless, the module works and tests pass. I will be improving the library as I gain deeper understanding of idiomatic Rust code. # About Rust [Rust](https://www.rust-lang.org) is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety. It was names as "most loved" programming language by developers in annual Stack Overflow survey, so make sure to check it out! # Roadmap * Implement futures * Investigate json_rpc crate from eth_core implementation in Ethereum's Parity * Add more utility functions * Investigate WS and evented approach * Add more response structs and types for different JSONRPC apis and methods * More tests and docs
author | ontofractal |
---|---|
permlink | steem-client-rs-v0-2-released-open-source-rust-client-library-for-steem |
category | steemdev |
json_metadata | {"tags":["steemdev","steem","open-source","rust","steemstem"],"image":["http://i.imgur.com/3QBLPi2.jpg"],"links":["https://github.com/cyberpunk-ventures/steem-client-rs","https://www.rust-lang.org"],"app":"steemit/0.1","format":"markdown"} |
created | 2017-03-26 16:20:21 |
last_update | 2017-03-26 16:23:03 |
depth | 0 |
children | 6 |
last_payout | 2017-04-27 02:40:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 53.274 HBD |
curator_payout_value | 6.696 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,720 |
author_reputation | 61,670,850,962,884 |
root_title | "Steem-client-rs v0.2 released: open source Rust client library for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,852,335 |
net_rshares | 22,095,571,753,648 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
fminerten1 | 0 | 81,949,417,626 | 69% | ||
smooth | 0 | -3,518,412,269,531 | -14% | ||
berniesanders | 0 | -85,754,198,494 | -50% | ||
blocktrades | 0 | 3,892,833,198,717 | 6% | ||
samupaha | 0 | 2,086,426,776,445 | 100% | ||
abit | 0 | -3,708,274,644,828 | -14% | ||
rossco99 | 0 | 1,019,583,741,496 | 100% | ||
liondani | 0 | 1,634,954,748,959 | 100% | ||
boy | 0 | 5,802,606,201 | 100% | ||
bue-witness | 0 | 7,074,860,539 | 100% | ||
bunny | 0 | 1,125,535,637 | 100% | ||
ajvest | 0 | 386,313,016,292 | 100% | ||
bue | 0 | 113,718,571,859 | 100% | ||
mini | 0 | 3,101,704,264 | 100% | ||
moon | 0 | 394,690,686 | 100% | ||
benjojo | 0 | 1,406,023,042,951 | 100% | ||
boatymcboatface | 0 | 566,328,422,992 | 100% | ||
pairmike | 0 | 3,768,102,864 | 1% | ||
pheonike | 0 | 11,013,625,527 | 6% | ||
proctologic | 0 | 3,800,470,177 | 1% | ||
healthcare | 0 | 1,156,407,277 | 100% | ||
daniel.pan | 0 | 1,829,011,578 | 100% | ||
konelectric | 0 | 415,969,829 | 1% | ||
helen.tan | 0 | 529,055,244 | 100% | ||
craig-grant | 0 | 1,115,614,481,303 | 100% | ||
carlos-cabeza | 0 | 4,620,303,623 | 100% | ||
jademont | 0 | 18,691,624,644 | 99% | ||
kingscrown | 0 | 229,473,725,538 | 100% | ||
dimimp | 0 | 1,560,029,881,928 | 100% | ||
hipster | 0 | 383,962,718,835 | 50% | ||
forrestwillie | 0 | 498,653,952 | 1% | ||
cryptoctopus | 0 | 1,691,113,354,857 | 100% | ||
lola-carola | 0 | 1,674,700,166 | 100% | ||
acidyo | 0 | 41,497,387,435 | 50% | ||
theshell | 0 | 78,140,609,686 | 100% | ||
stellabelle | 0 | 1,450,676,780,981 | 100% | ||
andrei | 0 | 235,482,043 | 1% | ||
infovore | 0 | 902,569,789,759 | 100% | ||
proglobyte | 0 | 4,105,819,759 | 100% | ||
grandpere | 0 | 83,053,771,889 | 100% | ||
christoryan | 0 | 7,207,883,634 | 50% | ||
geoffrey | 0 | 270,697,141,353 | 100% | ||
christoph3 | 0 | 2,484,344,278 | 50% | ||
angusleung100 | 0 | 6,194,031,288 | 100% | ||
fyrstikken | 0 | 52,891,136,180 | 1% | ||
catchfire | 0 | 3,963,281,912 | 14% | ||
michaellamden68 | 0 | 153,326,888 | 1% | ||
ericvancewalton | 0 | 734,071,629,473 | 100% | ||
robrigo | 0 | 336,301,187,215 | 100% | ||
stranger27 | 0 | 13,460,088,722 | 100% | ||
trees | 0 | 859,966,420 | 50% | ||
strawhat | 0 | 2,985,851,186 | 50% | ||
cryptochannel | 0 | 1,406,917,973 | 50% | ||
slowwalker | 0 | 231,840,168,338 | 10% | ||
furion | 0 | 262,726,660,182 | 55% | ||
mirspirs | 0 | 231,868,639 | 100% | ||
mrgreen | 0 | 1,081,678,010 | 50% | ||
ausbitbank | 0 | 141,028,228,619 | 100% | ||
ardina | 0 | 4,135,965,046 | 100% | ||
speda | 0 | 158,266,134,883 | 100% | ||
jamesjarman | 0 | 1,708,064,387 | 1% | ||
igster | 0 | 34,499,442,807 | 100% | ||
transisto | 0 | 7,413,026,844,567 | 100% | ||
juvyjabian | 0 | 711,022,049 | 1% | ||
karenmckersie | 0 | 2,311,023,205 | 1% | ||
luisucv34 | 0 | 11,409,753,948 | 100% | ||
krystle | 0 | 35,925,858,058 | 100% | ||
inertia | 0 | 245,896,597,938 | 100% | ||
demotruk | 0 | 885,740,978,796 | 100% | ||
sauravrungta | 0 | 154,316,060,896 | 100% | ||
pokemon | 0 | 142,279,995 | 50% | ||
seb | 0 | 137,505,252 | 100% | ||
sergey44 | 0 | 313,336,531 | 100% | ||
kooshikoo | 0 | 23,929,909,249 | 100% | ||
ace108 | 0 | 14,858,353,191 | 32% | ||
youngkim | 0 | 471,080,043 | 1% | ||
tommyhansen | 0 | 72,225,669,891 | 100% | ||
dirty.hera | 0 | 56,020,131 | 1% | ||
gomeravibz | 0 | 1,795,253,664 | 1% | ||
craigslist | 0 | 782,623,514 | 100% | ||
sykochica | 0 | 53,785,020,895 | 100% | ||
timelapse | 0 | 463,443,482 | 1% | ||
andrew0 | 0 | 17,540,316,415 | 100% | ||
ssm1810 | 0 | 324,780,808,683 | 100% | ||
kurtbeil | 0 | 94,642,434,303 | 100% | ||
steemleak | 0 | 2,044,468,949 | 100% | ||
capper2016 | 0 | 116,546,593,952 | 87% | ||
ekitcho | 0 | 736,492,925,321 | 100% | ||
bigsambucca | 0 | 308,584,474 | 100% | ||
future24 | 0 | 33,182,466,638 | 100% | ||
steemitqa | 0 | 290,005,135 | 1% | ||
darthnava | 0 | 436,491,252 | 1% | ||
jrcornel | 0 | 795,722,849,305 | 100% | ||
bryan-imhoff | 0 | 47,842,453,439 | 100% | ||
virtualgrowth | 0 | 8,929,798,241 | 30% | ||
neptun | 0 | 191,365,183,256 | 100% | ||
lasseehlers | 0 | 1,198,936,088 | 1% | ||
shadowspub | 0 | 593,036,646 | 1% | ||
ontofractal | 0 | 28,563,772,157 | 100% | ||
etcmike | 0 | 73,894,620,410 | 25% | ||
barrydutton | 0 | 69,035,588,850 | 100% | ||
stephenkendal | 0 | 60,816,934,600 | 100% | ||
esecholo | 0 | 1,468,419,560 | 100% | ||
carrinm | 0 | 178,009,123,018 | 100% | ||
steemitguide | 0 | 616,209,037 | 1% | ||
richardcrill | 0 | 1,360,219,516 | 1% | ||
team101 | 0 | 349,985,294 | 100% | ||
aggroed | 0 | 62,135,752,531 | 100% | ||
sponge-bob | 0 | 398,612,713,009 | 60% | ||
doitvoluntarily | 0 | 157,357,693,845 | 100% | ||
tfeldman | 0 | 31,486,549,810 | 100% | ||
thecyclist | 0 | -2,602,738,710,777 | -50% | ||
jacobts | 0 | 352,074,216 | 1% | ||
mindhunter | 0 | 1,509,657,746 | 1% | ||
patelincho | 0 | 259,647,454 | 1% | ||
heroic15397 | 0 | 13,754,006,900 | 100% | ||
steempowerwhale | 0 | 10,278,440,473 | 100% | ||
ocrdu | 0 | 17,880,337,709 | 50% | ||
thegame | 0 | 1,564,829,085 | 30% | ||
ssekulji | 0 | 12,915,071,599 | 100% | ||
surpassinggoogle | 0 | 527,375,874 | 1% | ||
lighteye | 0 | 4,038,720,870 | 100% | ||
steembets | 0 | 1,865,763,878 | 30% | ||
bonvivan | 0 | 6,864,121,535 | 44% | ||
viktorcapulet | 0 | 457,813,557 | 100% | ||
steemsports | 0 | 127,758,517,522 | 49% | ||
ianstrat | 0 | 9,307,939,732 | 100% | ||
giantbear | 0 | 1,367,056,280 | 1% | ||
stray | 0 | 483,954,115 | 1% | ||
sochul | 0 | 1,211,379,199,036 | 100% | ||
meanpeoplesuck | 0 | 139,785,574 | 100% | ||
ebryans | 0 | 17,187,891,117 | 50% | ||
daisyd | 0 | 391,583,747 | 1% | ||
steemland.com | 0 | 1,593,177,704 | 30% | ||
voronoi | 0 | 125,181,863,494 | 100% | ||
angel76 | 0 | 21,686,401,605 | 100% | ||
whatageek | 0 | 871,186,782 | 1% | ||
crowdfundedwhale | 0 | 43,784,533,748 | 65% | ||
breezin | 0 | 4,928,443,100 | 100% | ||
doodleman | 0 | 8,589,727,789 | 100% | ||
gutzofter | 0 | 99,935,925,493 | 100% | ||
acah1999 | 0 | 2,311,250,572 | 100% | ||
steemprentice | 0 | 17,590,946,658 | 30% | ||
butan | 0 | 105,140,854 | 1% | ||
engagement | 0 | -5,303,379,010,316 | -50% | ||
ourlifestory | 0 | 48,113,836,361 | 100% | ||
seablue | 0 | 2,100,890,523 | 1% | ||
meysam | 0 | 645,248,130 | 1% | ||
tamersameeh | 0 | 607,274,551 | 100% | ||
inber | 0 | 26,720,777,706 | 100% | ||
destbest | 0 | 527,153,683 | 100% | ||
detlef-s | 0 | 1,254,886,611 | 100% | ||
alexandergomez | 0 | 18,345,221,264 | 100% | ||
driptorchpress | 0 | 91,405,999 | 1% | ||
barvon | 0 | 3,973,981,584 | 100% | ||
marieta88 | 0 | 8,226,374,310 | 100% | ||
noagenda | 0 | 335,371,445,797 | 100% | ||
lukinsawyer | 0 | 6,430,667,439 | 100% | ||
riskdebonair | 0 | 1,104,695,418 | 1% | ||
firesteem | 0 | 425,302,306 | 100% | ||
corvuscoraxx | 0 | 62,120,895 | 100% | ||
elgeko | 0 | 3,525,462,618 | 15% | ||
janmarysmith | 0 | 375,720,383 | 100% | ||
smalltalk | 0 | 230,340,343 | 5% | ||
theghost1980 | 0 | 8,490,044,070 | 85% | ||
javirid | 0 | 733,925,404 | 100% | ||
resnullius | 0 | 50,044,014 | 33.33% | ||
sciampa | 0 | 364,811,631 | 100% | ||
radiv | 0 | 102,389,164 | 1% | ||
peuhaba2020 | 0 | 2,172,727,353 | 100% | ||
zurvanic | 0 | 375,373,961,849 | 100% | ||
cwatch | 0 | 150,963,964 | 1% | ||
willsplace | 0 | 64,334,855 | 1% | ||
ambyr00 | 0 | 3,024,823,898 | 1% | ||
rckymaulana | 0 | 1,737,417,610 | 100% | ||
evildeathcore | 0 | 935,608,999 | 50% | ||
gogogadget | 0 | 11,881,457,513 | 100% | ||
speckofdust | 0 | 1,421,296,082 | 100% | ||
hagbardceline | 0 | 33,117,187,135 | 100% | ||
banjo | 0 | 927,594,042 | 100% | ||
mycryptomark | 0 | 67,466,728 | 1% | ||
cyfi | 0 | 1,803,855,890 | 100% | ||
cybertiger | 0 | 784,543,074 | 100% | ||
oleg888 | 0 | 386,214,143 | 100% | ||
anri-avgustino | 0 | 1,937,754,190 | 100% | ||
funkit | 0 | 2,617,630,721 | 100% | ||
elenka | 0 | 865,246,747 | 100% | ||
inna-yatsuk | 0 | 245,208,842 | 100% | ||
chiefmcconnell | 0 | 1,672,449,339 | 100% | ||
yatogami | 0 | 340,724,490 | 100% | ||
saarman | 0 | 540,011,214 | 100% | ||
xinta | 0 | 441,681,568 | 100% | ||
yakuhi | 0 | 713,545,472 | 100% | ||
ven123 | 0 | 467,299,788 | 100% | ||
trafalgar | 0 | 1,215,367,346,408 | 100% | ||
fernwehninja | 0 | 958,456,926 | 100% | ||
ljpaez | 0 | 311,772,030 | 100% | ||
halfdime | 0 | 898,279,291 | 100% | ||
amrsaeed | 0 | 355,205,005 | 100% | ||
darkysasha | 0 | 383,473,506 | 100% | ||
jaychems | 0 | 469,147,234 | 100% | ||
eirik | 0 | 324,004,457 | 100% | ||
nlaskin | 0 | 291,134,498 | 100% | ||
thomasgutierrez | 0 | 123,726,691 | 100% | ||
dreamon | 0 | 0 | 100% |
thank
author | ardina |
---|---|
permlink | re-ontofractal-steem-client-rs-v0-2-released-open-source-rust-client-library-for-steem-20170326t164016596z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2017-03-26 16:40:18 |
last_update | 2017-03-26 16:40:18 |
depth | 1 |
children | 0 |
last_payout | 2017-04-27 02:40:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 5 |
author_reputation | 1,182,671,789,406 |
root_title | "Steem-client-rs v0.2 released: open source Rust client library for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,852,578 |
net_rshares | 0 |
oh i love Rust, not that im good with it but been learning
author | kingscrown |
---|---|
permlink | re-ontofractal-steem-client-rs-v0-2-released-open-source-rust-client-library-for-steem-20170326t200915060z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2017-03-26 20:09:18 |
last_update | 2017-03-26 20:09:18 |
depth | 1 |
children | 1 |
last_payout | 2017-04-27 02:40:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.078 HBD |
curator_payout_value | 0.026 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 58 |
author_reputation | 2,115,800,977,100,594 |
root_title | "Steem-client-rs v0.2 released: open source Rust client library for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,854,952 |
net_rshares | 228,057,897,443 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kingscrown | 0 | 228,057,897,443 | 100% |
:D same here, @kingscrown
author | ontofractal |
---|---|
permlink | re-kingscrown-re-ontofractal-steem-client-rs-v0-2-released-open-source-rust-client-library-for-steem-20170327t121107739z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"users":["kingscrown"],"app":"steemit/0.1"} |
created | 2017-03-27 12:11:09 |
last_update | 2017-03-27 12:11:09 |
depth | 2 |
children | 0 |
last_payout | 2017-04-27 02:40:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 25 |
author_reputation | 61,670,850,962,884 |
root_title | "Steem-client-rs v0.2 released: open source Rust client library for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,861,950 |
net_rshares | 0 |
great post :)
author | ssekulji |
---|---|
permlink | re-ontofractal-steem-client-rs-v0-2-released-open-source-rust-client-library-for-steem-20170326t213359955z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2017-03-26 21:33:51 |
last_update | 2017-03-26 21:33:51 |
depth | 1 |
children | 1 |
last_payout | 2017-04-27 02:40:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 13 |
author_reputation | 1,213,051,817,377,797 |
root_title | "Steem-client-rs v0.2 released: open source Rust client library for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,855,841 |
net_rshares | 0 |
thanks :)
author | ontofractal |
---|---|
permlink | re-ssekulji-re-ontofractal-steem-client-rs-v0-2-released-open-source-rust-client-library-for-steem-20170327t125753163z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2017-03-27 12:57:54 |
last_update | 2017-03-27 12:57:54 |
depth | 2 |
children | 0 |
last_payout | 2017-04-27 02:40:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 9 |
author_reputation | 61,670,850,962,884 |
root_title | "Steem-client-rs v0.2 released: open source Rust client library for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,862,408 |
net_rshares | 0 |
Good work!
author | ven123 |
---|---|
permlink | re-ontofractal-steem-client-rs-v0-2-released-open-source-rust-client-library-for-steem-20170326t170856951z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2017-03-26 17:08:57 |
last_update | 2017-03-26 17:08:57 |
depth | 1 |
children | 0 |
last_payout | 2017-04-27 02:40:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 10 |
author_reputation | 145,538,364,326 |
root_title | "Steem-client-rs v0.2 released: open source Rust client library for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,852,902 |
net_rshares | 0 |