## Need more Javascript Since we still don't have an open-source Javascript library for constructing and signing transactions, I've spent some time over the last week to build one, starting from [graphenejs-lib](https://github.com/svk31/graphenejs-lib). The result is now out on NPM and Github and can be used to quickly and easily create bots using Node.js, or to start building custom trading solutions or posting platforms. The library can be installed with npm or cloned from github: ``` npm install steemjs-lib ``` [https://github.com/svk31/steemjs-lib](https://github.com/svk31/steemjs-lib)  I will be releasing some specific use cases in the near future (who wants a "vote-as" bot?), and I might also use this to integrate actual trading in my [Live market page](https://steemit.com/steem/@svk/live-market-page). For now however the easiest way to figure out how to use it is to look at the tests, which can be found [here](https://github.com/svk31/steemjs-lib/tree/master/test). ## Usage Three sub-libraries are included: `ECC`, `Chain` and `Serializer`. Generally only the `ECC` and `Chain` libraries need to be used directly. ### Chain The Chain library contains utility functions related to the chain state, as well as a transaction builder and a login class. #### Transaction builder The transaction builder can be used to construct any transaction, sign it, and broadcast it. To broadcast a transaction you need to be connected to a `steemd` node with the `network_broadcast_api` enabled. For an example of how to create transaction, see below: ``` let login = new Login(); let tr = new TransactionBuilder(); tr.add_type_operation("vote", { voter: "myaccount, author: "seshadga", permlink: "bitcoin-price-sustainability-looks-on-track", weight: 100 }); tr.process_transaction(login, null, false); ``` The third argument is `process_transaction` is `broadcast`. Setting it to false will simply construct the transaction and serialize it, without broadcasting it. #### Login The Chain library includes the Login class that can be used to "log in" using an account name and a corresponding password or private key. Logging in here simply means verifying that the private key or password provided can be used to generate the private key for that account. The verification checks the public keys of the given account. The password used on [https://steemit.com](https://steemit.com) is compatible with this library. To run the Login tests, copy config.example.js and create a config.js. In this file you must provide two accounts, one with a password and one with a private key. The corresponding public keys can be found on [https://steemd.com](https://steemd.com). The Login class uses the following format to generate private keys from account names and passwords: ``` keySeed = accountName + role + password ``` Where `role` can be one of `active, owner, posting, memo`. Using this seed, private keys are generated for either the default roles `active, owner, posting, memo`, or as specified. A minimum password length of 12 characters is enforced, but an even longer password is recommended. Three methods are provided: ``` generateKeys(account, password, [roles]) fromPrivKey(accountName, privateKey, [roles]) checkKeys({accountName, password, privateKey, auths}) signTransaction(tr) getRoles() setRoles([roles]) ``` The auths object should contain the auth arrays from the account object. An example is this: ``` { active: [ ["GPH5Abm5dCdy3hJ1C5ckXkqUH2Me7dXqi9Y7yjn9ACaiSJ9h8r8mL", 1] ] } ``` If checkKeys is successful, you can use signTransaction to sign a TransactionBuilder transaction using the private keys for that account.
author | svk |
---|---|
permlink | ann-steemjs-steemjs-lib |
category | steem |
json_metadata | {"tags":["steem","crypto","bots"],"links":["https://github.com/svk31/graphenejs-lib"]} |
created | 2016-07-11 20:39:00 |
last_update | 2016-07-11 20:39:00 |
depth | 0 |
children | 11 |
last_payout | 2016-08-23 12:26:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 681.426 HBD |
curator_payout_value | 19.854 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 3,802 |
author_reputation | 28,721,479,690,952 |
root_title | "[ANN] SteemJS (steemjs-lib)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 80,600 |
net_rshares | 199,095,595,069,688 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
steempty | 0 | 7,193,579,560,291 | 100% | ||
anonymous | 0 | 944,877,469,295 | 100% | ||
rainman | 0 | 17,673,042,248,044 | 100% | ||
summon | 0 | 8,000,236,788,006 | 100% | ||
blocktrades | 0 | 42,147,111,879,274 | 100% | ||
dan | 0 | 49,421,518,142,868 | 100% | ||
butterfly | 0 | 1,547,934,545,408 | 100% | ||
riverhead | 0 | 5,815,358,597,561 | 100% | ||
xeldal | 0 | 5,185,658,191,366 | 100% | ||
pharesim | 0 | 7,487,430,407,699 | 100% | ||
lafona-miner | 0 | 2,972,875,058,084 | 100% | ||
enki | 0 | 5,623,414,209,510 | 100% | ||
lafona | 0 | 354,643,905,056 | 100% | ||
bitcube | 0 | 3,039,409,949,802 | 100% | ||
kushed | 0 | 3,395,052,564,060 | 100% | ||
svk | 0 | 139,067,294,122 | 100% | ||
abit | 0 | 5,412,735,170,054 | 100% | ||
liondani | 0 | 629,539,092,526 | 100% | ||
cyrano.witness | 0 | 815,869,899,321 | 100% | ||
jabbasteem | 0 | 1,202,567,413,978 | 100% | ||
wang | 0 | 4,619,760,527,180 | 100% | ||
xeroc | 0 | 1,709,674,210,263 | 100% | ||
bunny | 0 | 3,259,887,440 | 100% | ||
steemychicken1 | 0 | 1,332,540,810,899 | 100% | ||
clayop | 0 | 4,969,067,587,076 | 100% | ||
ajvest | 0 | 174,658,262,600 | 100% | ||
val | 0 | 63,166,889,413 | 100% | ||
witness.svk | 0 | 4,465,232,365,457 | 100% | ||
joseph | 0 | 526,877,559,215 | 100% | ||
aizensou | 0 | 8,269,200,622 | 100% | ||
b0y2k | 0 | 99,937,840,359 | 100% | ||
masteryoda | 0 | 501,729,109,237 | 100% | ||
bonapartist | 0 | 107,917,852,012 | 100% | ||
betax | 0 | 41,194,905,691 | 100% | ||
steempower | 0 | 1,122,854,937,392 | 100% | ||
officialfuzzy | 0 | 258,832,792,599 | 100% | ||
cass | 0 | 481,514,361,965 | 100% | ||
pheonike | 0 | 202,674,424,086 | 100% | ||
proctologic | 0 | 12,447,281,770 | 100% | ||
jpb3 | 0 | 11,903,575,542 | 100% | ||
jsc | 0 | 26,264,684,225 | 100% | ||
dab | 0 | 10,000,512,965 | 100% | ||
hcf27 | 0 | 21,398,961,809 | 100% | ||
dedriss | 0 | 16,960,559,564 | 100% | ||
fbsvk | 0 | 8,696,884,152 | 100% | ||
jazzycrypt | 0 | 674,378,022 | 100% | ||
team | 0 | 127,082,157,518 | 100% | ||
k-rapper | 0 | 10,265,093,523 | 100% | ||
fusan | 0 | 812,369,942 | 100% | ||
ash | 0 | 285,996,402,234 | 100% | ||
chitty | 0 | 166,281,210,473 | 100% | ||
linouxis9 | 0 | 74,623,651,131 | 100% | ||
pnc | 0 | 62,475,581,604 | 100% | ||
jupiter00000 | 0 | 9,976,330,552 | 100% | ||
jbrukh | 0 | 53,595,332,349 | 100% | ||
acidsun | 0 | 43,095,798,574 | 100% | ||
makishart | 0 | 11,837,251,842 | 100% | ||
gregory-f | 0 | 12,453,587,853 | 100% | ||
ppitonak | 0 | 4,102,832,394 | 100% | ||
atomrigs | 0 | 2,328,069,452 | 100% | ||
grumpymutt | 0 | 20,516,875,276 | 100% | ||
cryptorune | 0 | 8,071,742,191 | 100% | ||
hbhades | 0 | 1,245,003,586 | 100% | ||
steemship | 0 | 708,644,521,943 | 100% | ||
eeks | 0 | 544,573,410,083 | 100% | ||
bryner | 0 | 6,776,229,624 | 100% | ||
ereismatias | 0 | 470,812,875 | 100% | ||
hipster | 0 | 987,622,550,913 | 100% | ||
spaninv | 0 | 4,607,854,011 | 100% | ||
gekko | 0 | 193,476,386 | 100% | ||
macrochip | 0 | 9,217,595,008 | 100% | ||
algo-rythm | 0 | 66,327,726 | 100% | ||
pal | 0 | 285,813,377,125 | 100% | ||
avarice | 0 | 58,969,251,923 | 100% | ||
nasato | 0 | 368,508,826 | 100% | ||
vadimberkut8 | 0 | 26,396,351,892 | 100% | ||
asch | 0 | 41,077,578,576 | 100% | ||
kevinwong | 0 | 359,756,648,879 | 100% | ||
sevcsik | 0 | 422,606,428 | 100% | ||
creator | 0 | 2,341,079,460,486 | 100% | ||
tie-warutho | 0 | 2,773,468,972 | 100% | ||
dmitry | 0 | 920,191,153 | 100% | ||
blakemiles84 | 0 | 277,269,913,835 | 100% | ||
ombc | 0 | 16,846,930,109 | 100% | ||
marta-zaidel | 0 | 5,880,054,416 | 100% | ||
ranko-k | 0 | 46,208,532,759 | 100% | ||
franco-cappello | 0 | 372,860,079 | 100% | ||
crypton | 0 | 3,045,582,431 | 100% | ||
shelly-dawson | 0 | 33,623,149,265 | 100% | ||
lightninggears | 0 | 367,844,452 | 100% | ||
billbutler | 0 | 166,850,831,895 | 100% | ||
justtryme90 | 0 | 15,559,890,329 | 100% | ||
zebbra2014 | 0 | 99,066,997 | 100% | ||
robi-rusmana | 0 | 411,720,346 | 100% | ||
johnerfx | 0 | 10,507,543,040 | 100% | ||
taoteh1221 | 0 | 254,740,622,343 | 100% | ||
stiletto | 0 | 354,491,881 | 100% | ||
arwani-wawan | 0 | 326,912,427 | 100% | ||
killerstorm | 0 | 153,184,544,498 | 100% | ||
the-alien | 0 | 348,184,609,347 | 100% | ||
wingz | 0 | 145,478,910,983 | 100% | ||
tim-beck | 0 | 344,094,142 | 100% | ||
lynda-j-leonard | 0 | 337,224,633 | 100% | ||
kenny-crane | 0 | 91,739,134,539 | 100% | ||
will-zewe | 0 | 131,962,058,606 | 100% | ||
kaylinart | 0 | 252,371,497,354 | 100% | ||
kingofchaos | 0 | 5,630,868,956 | 100% | ||
hendra-khaidir | 0 | 329,023,826 | 100% | ||
trogdor | 0 | 76,433,918,404 | 100% | ||
foma17 | 0 | 2,014,438,802 | 100% | ||
michaelx | 0 | 13,674,509,979 | 100% | ||
thedashguy | 0 | 41,416,890,667 | 100% | ||
coinhoarder | 0 | 333,533,071 | 100% | ||
nicolaswsk | 0 | 1,246,037,715 | 100% | ||
geoffrey | 0 | 18,589,910,570 | 100% | ||
kimziv | 0 | 147,880,888,275 | 100% | ||
graystone | 0 | 1,413,395,255 | 100% | ||
lukestokes | 0 | 43,331,029,473 | 100% | ||
honeythief | 0 | 11,808,028,646 | 100% | ||
jparty | 0 | 31,337,190,746 | 100% | ||
djleo | 0 | 1,110,753,996 | 0% | ||
mauricemikkers | 0 | 218,831,266,235 | 100% | ||
true-profit | 0 | 11,495,952,633 | 100% | ||
gtg | 0 | 15,138,176,947 | 100% | ||
ultralord | 0 | 14,488,268,895 | 100% | ||
acassity | 0 | 4,354,952,158 | 100% | ||
greatguardian100 | 0 | 1,206,080,696 | 100% | ||
bigs21024 | 0 | 1,007,122,387 | 100% | ||
gerber | 0 | 253,439,980 | 100% | ||
qauz | 0 | 338,500,602 | 100% | ||
chetlanin | 0 | 260,987,997 | 100% | ||
spikykevin | 0 | 2,514,232,397 | 100% | ||
ucing | 0 | 1,171,007,603 | 100% | ||
bacchist | 0 | 6,060,025,838 | 100% | ||
michaellamden68 | 0 | 632,445,529 | 100% | ||
felixq | 0 | 261,522,571 | 100% | ||
kosimoos | 0 | 226,572,649 | 100% | ||
jholdsworthy | 0 | 247,702,994 | 100% | ||
sudisetan | 0 | 314,272,898 | 100% | ||
good-karma | 0 | 1,598,448,878 | 100% | ||
billykeed | 0 | 1,328,454,324 | 100% | ||
teego | 0 | 1,108,629,139 | 100% | ||
lobo86 | 0 | 1,196,985,972 | 100% | ||
lehard | 0 | 8,048,144,790 | 100% | ||
garik100 | 0 | 245,155,126 | 100% | ||
getssidetracked | 0 | 1,999,372,992 | 100% | ||
aeico | 0 | 3,167,316,221 | 100% | ||
diego24 | 0 | 247,898,888 | 100% | ||
riscadox | 0 | 355,230,851 | 100% | ||
hitmeasap | 0 | 1,707,044,320 | 100% | ||
krypto | 0 | 48,567,122,366 | 100% | ||
stealthtrader | 0 | 208,478,557 | 100% | ||
rambogoham | 0 | 179,469,875 | 100% | ||
chekimon | 0 | 243,767,898 | 100% | ||
nikolay | 0 | 248,355,676 | 100% | ||
heverton | 0 | 243,372,549 | 100% | ||
aidar88 | 0 | 198,254,037 | 100% | ||
cokaum | 0 | 2,848,794,241 | 100% | ||
auxon | 0 | 10,495,113,190 | 100% | ||
jasonmcz | 0 | 242,320,312 | 100% | ||
constellation | 0 | 494,913,728 | 100% | ||
qip | 0 | 276,659,454 | 100% | ||
sonsy | 0 | 24,529,800,837 | 100% | ||
zerohero | 0 | 246,280,637 | 100% | ||
r4fken | 0 | 15,966,241,546 | 100% | ||
bolanath | 0 | 245,143,545 | 100% | ||
endaksi1 | 0 | 872,192,777 | 100% | ||
mikemiziner | 0 | 36,529,436,379 | 100% | ||
qamarpinkpanda | 0 | 5,036,244,091 | 100% | ||
krispy123 | 0 | 267,331,060 | 100% | ||
jatochnietdan | 0 | 46,161,277,356 | 100% | ||
mary777 | 0 | 242,765,366 | 100% | ||
gatoso | 0 | 4,504,174,234 | 100% | ||
kirill7 | 0 | 43,627,922 | 100% | ||
rankine | 0 | 207,964,282 | 100% | ||
mirspirs | 0 | 159,394,877 | 100% | ||
lawrenlag | 0 | 227,012,976 | 100% | ||
shilpa | 0 | 240,755,960 | 100% | ||
satanic.stoner | 0 | 163,552,948 | 100% | ||
kovatelj | 0 | 240,285,514 | 100% | ||
rolik | 0 | 141,747,720 | 100% | ||
tarust777 | 0 | 235,313,889 | 100% | ||
ethereums1 | 0 | 7,080,433,980 | 100% | ||
ardina | 0 | 62,386,663 | 100% | ||
hotwings | 0 | 225,388,487 | 100% | ||
suren0881 | 0 | 38,362,336 | 100% | ||
warplat | 0 | 215,766,234 | 100% | ||
dillon.mcbride87 | 0 | 239,601,927 | 100% | ||
esepinche | 0 | 215,608,374 | 100% | ||
spaced | 0 | 205,825,111 | 100% | ||
traderjeff | 0 | 8,714,493,725 | 100% | ||
marcgodard | 0 | 234,139,421 | 100% | ||
alexpimania | 0 | 224,307,192 | 100% | ||
ozbay1 | 0 | 229,053,056 | 100% | ||
flatulentfox | 0 | 238,587,469 | 100% | ||
surf4life | 0 | 62,028,223 | 100% | ||
murderistic | 0 | 185,945,825 | 100% | ||
sanekvin | 0 | 224,061,322 | 100% | ||
ph111p | 0 | 18,143,546,572 | 100% | ||
vkoreshkoff | 0 | 209,665,843 | 100% | ||
jayrellmendoza | 0 | 238,228,997 | 100% | ||
insa | 0 | 214,341,045 | 100% | ||
tereska | 0 | 237,946,304 | 100% | ||
steemtest | 0 | 209,305,445 | 100% | ||
barriexy | 0 | 185,520,524 | 100% | ||
sascha2 | 0 | 237,837,515 | 100% | ||
keepcodingsimple | 0 | 237,727,933 | 100% | ||
agente | 0 | 228,207,245 | 100% | ||
repholder | 0 | 97,022,716,584 | 100% | ||
fedor | 0 | 228,015,498 | 100% | ||
e42 | 0 | 2,973,283,511 | 100% | ||
megabotan | 0 | 71,205,656 | 100% | ||
qwertas | 0 | 123,341,236 | 100% | ||
bdavid | 0 | 227,687,656 | 100% | ||
paco | 0 | 232,398,285 | 100% | ||
juliano | 0 | 218,161,391 | 100% | ||
showmethecoinz | 0 | 6,620,899,960 | 100% | ||
swaghetti | 0 | 161,137,749 | 100% | ||
kapiw | 0 | 232,211,101 | 100% | ||
thelindvall | 0 | 232,197,721 | 100% | ||
agusnb | 0 | 232,188,691 | 100% | ||
alexhanh | 0 | 241,491,229 | 100% | ||
riswanjana | 0 | 241,481,163 | 100% | ||
d3v667 | 0 | 236,735,074 | 100% | ||
nikskin | 0 | 241,354,649 | 100% | ||
icaro | 0 | 241,274,298 | 100% | ||
bunix | 0 | 236,539,207 | 100% | ||
shuon23 | 0 | 236,537,935 | 100% | ||
spirit | 0 | 231,802,162 | 100% | ||
rcosta4540 | 0 | 4,729,960 | 0% | ||
bob23 | 0 | 4,729,620 | 0% | ||
enapiuz | 0 | 236,438,818 | 100% | ||
danya | 0 | 236,377,845 | 100% | ||
rulirius | 0 | 240,998,382 | 100% | ||
deviedev | 0 | 236,269,137 | 100% | ||
phantomraviolis | 0 | 240,993,497 | 100% | ||
steg | 0 | 236,228,493 | 100% | ||
rolis | 0 | 236,212,969 | 100% | ||
kaptainkrayola | 0 | 236,208,359 | 100% | ||
mrisosika | 0 | 231,454,040 | 100% | ||
willytrader | 0 | 192,007,649 | 100% | ||
gribgo | 0 | 102,337,868 | 100% | ||
cliro | 0 | 629,493,673 | 100% | ||
qonq99 | 0 | 6,963,965 | 100% | ||
maurizio | 0 | 11,640,622 | 100% | ||
tokyo3 | 0 | 116,297,020 | 100% | ||
laivi | 0 | 114,478,009 | 100% | ||
fabien | 0 | 100,125,230 | 100% | ||
alrx6918 | 0 | 63,907,194 | 100% | ||
asdes | 0 | 35,692,463 | 100% | ||
mrrafik | 0 | 61,631,305 | 100% | ||
someguy123 | 0 | 16,125,797,447 | 100% | ||
sandra16 | 0 | 0 | 100% | ||
nomadsteem | 0 | 0 | 100% |
thanks , let's go this my information about bitcoin https://steemit.com/bitcoin/@arwani-wawan/bitcoin-core-version-0-12-1-is-now-available
author | arwani-wawan |
---|---|
permlink | re-svk-ann-steemjs-steemjs-lib-20160711t224633974z |
category | steem |
json_metadata | {"tags":["steem"],"links":["https://steemit.com/bitcoin/@arwani-wawan/bitcoin-core-version-0-12-1-is-now-available"]} |
created | 2016-07-11 22:46:33 |
last_update | 2016-07-11 22:46:33 |
depth | 1 |
children | 0 |
last_payout | 2016-08-23 12:26:45 |
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 | 138 |
author_reputation | 1,778,169,012,577 |
root_title | "[ANN] SteemJS (steemjs-lib)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 81,195 |
net_rshares | 57,256,821 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
surf4life | 0 | 57,256,821 | 100% |
Nice
author | dicov |
---|---|
permlink | re-svk-ann-steemjs-steemjs-lib-20160712t101743547z |
category | steem |
json_metadata | {"tags":["steem"]} |
created | 2016-07-12 10:17:42 |
last_update | 2016-07-12 10:17:42 |
depth | 1 |
children | 0 |
last_payout | 2016-08-23 12:26:45 |
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 | 4 |
author_reputation | 1,440,584,959,387 |
root_title | "[ANN] SteemJS (steemjs-lib)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 84,439 |
net_rshares | 0 |
perfectly and check that you have gathered here, too)
author | ethereums1 |
---|---|
permlink | re-svk-ann-steemjs-steemjs-lib-20160712t181708670z |
category | steem |
json_metadata | {"tags":["steem"]} |
created | 2016-07-12 18:17:06 |
last_update | 2016-07-12 18:17:06 |
depth | 1 |
children | 0 |
last_payout | 2016-08-23 12:26:45 |
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 | 53 |
author_reputation | 89,020,079,608 |
root_title | "[ANN] SteemJS (steemjs-lib)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 87,031 |
net_rshares | 0 |
author | fusan |
---|---|
permlink | re-svk-ann-steemjs-steemjs-lib-20160712t025209656z |
category | steem |
json_metadata | {"tags":["steem"]} |
created | 2016-07-12 02:52:09 |
last_update | 2016-07-12 02:52:09 |
depth | 1 |
children | 0 |
last_payout | 2016-08-23 12:26:45 |
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 | 34 |
author_reputation | 13,477,391,966,419 |
root_title | "[ANN] SteemJS (steemjs-lib)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 82,418 |
net_rshares | 837,769,118 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
fusan | 0 | 780,512,297 | 100% | ||
surf4life | 0 | 57,256,821 | 100% |
some js love is good for us, thanks @svk !
author | gekko |
---|---|
permlink | re-svk-ann-steemjs-steemjs-lib-20160721t002929558z |
category | steem |
json_metadata | {"tags":["steem"],"users":["svk"]} |
created | 2016-07-21 00:29:30 |
last_update | 2016-07-21 00:29:30 |
depth | 1 |
children | 0 |
last_payout | 2016-08-23 12:26:45 |
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 | 42 |
author_reputation | 1,185,517,433,922 |
root_title | "[ANN] SteemJS (steemjs-lib)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 234,273 |
net_rshares | 193,476,386 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gekko | 0 | 193,476,386 | 100% |
Wow thats cool
author | joelinux |
---|---|
permlink | re-svk-ann-steemjs-steemjs-lib-20160711t215246523z |
category | steem |
json_metadata | {"tags":["steem"]} |
created | 2016-07-11 21:52:45 |
last_update | 2016-07-11 21:52:45 |
depth | 1 |
children | 0 |
last_payout | 2016-08-23 12:26:45 |
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 | 14 |
author_reputation | 4,604,092,068,298 |
root_title | "[ANN] SteemJS (steemjs-lib)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 80,934 |
net_rshares | 57,256,821 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
surf4life | 0 | 57,256,821 | 100% |
This is great! I'm researching the different ways of programmatically interacting with the steem blockchain and will add this to my list of things to study. I'm wondering how this compares with an existing steemjs at https://github.com/pharesim/steemjs I do prefer js code to python since I have done a lot of work with it. Do you think one language is better than the other, or just a matter of preference? Thanks for your work on this, and for sharing it!
author | kenny-crane |
---|---|
permlink | re-svk-ann-steemjs-steemjs-lib-20160711t211129703z |
category | steem |
json_metadata | {"tags":["steem"],"links":["https://github.com/pharesim/steemjs"]} |
created | 2016-07-11 21:11:30 |
last_update | 2016-07-11 21:11:30 |
depth | 1 |
children | 2 |
last_payout | 2016-08-23 12:26:45 |
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 | 464 |
author_reputation | 235,849,145,602,521 |
root_title | "[ANN] SteemJS (steemjs-lib)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 80,759 |
net_rshares | 164,855,241,333 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
billbutler | 0 | 163,445,712,876 | 100% | ||
djleo | 0 | 1,110,753,996 | 0% | ||
surf4life | 0 | 62,028,223 | 100% | ||
riswanjana | 0 | 236,746,238 | 100% |
Thanks. I have a [websocket rpc library](https://steemit.com/steem/@svk/steem-rpc-library-for-javascript-steem-rpc) available also that can be compared to pharesim's steemjs. This new library `steemjs-lib` provides completely different functionality as it lets you construct and sign transactions without needing the cli_wallet. You need a running `steemd` to broadcast transactions, but that could be a public one like xeroc's wss://this.piston.rocks.
author | svk |
---|---|
permlink | re-kenny-crane-re-svk-ann-steemjs-steemjs-lib-20160711t213833195z |
category | steem |
json_metadata | {"tags":["steem"],"links":["https://steemit.com/steem/@svk/steem-rpc-library-for-javascript-steem-rpc"]} |
created | 2016-07-11 21:38:33 |
last_update | 2016-07-11 21:38:33 |
depth | 2 |
children | 1 |
last_payout | 2016-08-23 12:26:45 |
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 | 453 |
author_reputation | 28,721,479,690,952 |
root_title | "[ANN] SteemJS (steemjs-lib)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 80,881 |
net_rshares | 241,927,222,456 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
killerstorm | 0 | 153,184,544,498 | 100% | ||
kenny-crane | 0 | 87,569,895,739 | 100% | ||
djleo | 0 | 1,110,753,996 | 0% | ||
surf4life | 0 | 62,028,223 | 100% |
Thanks for your excellent answer! I'm not there yet on a complete understanding, but I am getting there!
author | kenny-crane |
---|---|
permlink | re-svk-re-kenny-crane-re-svk-ann-steemjs-steemjs-lib-20160712t002748949z |
category | steem |
json_metadata | {"tags":["steem"]} |
created | 2016-07-12 00:27:48 |
last_update | 2016-07-12 00:27:48 |
depth | 3 |
children | 0 |
last_payout | 2016-08-23 12:26:45 |
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 | 105 |
author_reputation | 235,849,145,602,521 |
root_title | "[ANN] SteemJS (steemjs-lib)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 81,777 |
net_rshares | 62,028,223 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
surf4life | 0 | 62,028,223 | 100% |
Awesome! I'm gonna give this a go later tonight with some silly experiments. JavaScript never fails to make a quick and interesting entrance to any scene.
author | mjgrae |
---|---|
permlink | re-svk-ann-steemjs-steemjs-lib-20160713t183112645z |
category | steem |
json_metadata | {"tags":["steem"]} |
created | 2016-07-13 18:31:12 |
last_update | 2016-07-13 18:31:12 |
depth | 1 |
children | 0 |
last_payout | 2016-08-23 12:26:45 |
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 | 155 |
author_reputation | 1,247,707,052,821 |
root_title | "[ANN] SteemJS (steemjs-lib)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 98,807 |
net_rshares | 0 |
author | xeroc |
---|---|
permlink | re-svk-ann-steemjs-steemjs-lib-20160711t204344145z |
category | steem |
json_metadata | {"tags":["steem"]} |
created | 2016-07-11 20:43:48 |
last_update | 2016-07-11 20:43:48 |
depth | 1 |
children | 0 |
last_payout | 2016-08-23 12:26:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.398 HBD |
curator_payout_value | 0.285 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 14 |
author_reputation | 118,819,064,085,695 |
root_title | "[ANN] SteemJS (steemjs-lib)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 80,623 |
net_rshares | 7,863,830,207,925 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
summon | 0 | 7,703,931,721,784 | 100% | ||
team | 0 | 129,625,114,247 | 100% | ||
johnerfx | 0 | 10,301,512,784 | 100% | ||
robrigo | 0 | 19,675,691,466 | 100% | ||
marcgodard | 0 | 234,139,421 | 100% | ||
surf4life | 0 | 62,028,223 | 100% |