Closed gaboesquivel closed 6 years ago
It has different utility .. That is light weight code to create a valid transaction header. It could be moved to eosjs but since it is very light weight and could be useful I included it in eosjs-api.
thanks.
It's still not clear to me the difference between eosApi.api.createTransaction
and esoApi.createTransaction
it's also not included in the API docs https://github.com/EOSIO/eosjs-api/blob/master/docs/api.md I can help with docs now that I'm interacting with the whole eosjs-api API.
I want to understand better your intention here with this two functions with same name.
.. yeah, I haven't read all the code :).
I see .. It is a mistake .. I will stop exporting the static version eosApi.api.createTransaction and keep the instance (that is configured): eosApi.createTransaction.
cool tks
Here's the wrapper in case someone is interested in this functionality as well. https://github.com/eoscostarica/eosjs-camel-api. It is a WIP for, it needs more testing.
Hi @jcalfee
I'm working on the camel wrapper for eosjs-api (ref https://github.com/EOSIO/eosjs/issues/277) and noticed the following:
output
Why is there an
api
object with acreateTransaction
function ?Is that a bug or does it have different utility ?