EOSIO / eosjs

General purpose library for the EOSIO blockchain.
http://eosio.github.io/eosjs
MIT License
1.43k stars 463 forks source link

How to add options ? #235

Closed anil215 closed 6 years ago

anil215 commented 6 years ago

I was trying to do a standard eos transaction via eosjs , but i was unable to find an example on how to add options like setting the expiration, adding the don't broadcast etc. The format i am using currently is this. screen shot 2018-07-03 at 3 04 10 pm

jcalfee commented 6 years ago

Expiration and broadcast can do into the config in the constructor: eosClient = Eos(config) .. https://github.com/EOSIO/eosjs#configuration

anil215 commented 6 years ago

added broadcast: false and expireInSeconds: 60 to the config of eosjs, still the transaction is being broadcasted to the network and visible in the output of cleos get actions, why is it happening?

jcalfee commented 6 years ago

please provide your example code