9 votes
Accepted

Which NodeJs UI Framework is most suitable for EOSJS

This is a very subjective thing. Personally I would recommend to learn React with Redux. Here is a little Tutorial The main advantage is that you can use React for the visual representation und ...
tmm's user avatar
  • 2,114
8 votes
Accepted

Reading table rows with EOSJS

You have several ways to retrieve data from eos chain as i know. They differs a lot, so you should find a better one for you case. #1. Get from table As you noted there is getTableRows method in ...
user1114775's user avatar
7 votes
Accepted

EOSJS HTTP CORS error

Just add the below param to your config file: access-control-allow-origin = "*" Or you can even run the nodeos command with this parameter, check mine: nodeos -e -p eosio --plugin eosio::...
Leo Ribeiro's user avatar
  • 3,023
6 votes

EOSJS tutorials

I think the best examples lives in Scatter-Demo repository: https://github.com/EOSEssentials/Scatter-Demos I have also built MonsterEOS where you can check another interaction with EOSJS and Scatter:...
Leo Ribeiro's user avatar
  • 3,023
5 votes

Which NodeJs UI Framework is most suitable for EOSJS

I heavily use eosjs with Vue.js+Vuex, it is much more developer friendly and easier to learn than React when you want to scale. The first EOS browser extension, Scatter, also uses Vue for the frontend ...
Jordi Goyanes's user avatar
4 votes

Where is the API for block producer voting in EOSJS?

There is a system contract for voting. It can be found here: https://github.com/EOSIO/eos/blob/master/contracts/eosio.system/voting.cpp ABI can be found here: https://github.com/EOSIO/eos/blob/...
Sergey Metelin's user avatar
3 votes

How to get operations history of account?

Of course, eosjs provides method getActions. Here's an example: const Eos = require('eosjs'); const api = new Eos({ httpEndpoint: 'https://eos.greymass.com', chainId: '...
oxfn's user avatar
  • 131
3 votes

How to get operations history of account?

You can simply request a node to give you the action history of an account. Using cleos: cleos --url https://api1.eosdublin.io get actions <EOS account name> Using eosjs: const eosjs = ...
Andres Berrios's user avatar
3 votes

Accessing EOS from the front-end Javascript without NodeJs backend or cleos

Basically nodeos is providing a REST interface which you can query and use for blockchain communication. You just need an address for your local or a public nodeos endpoint. However this is getting ...
tmm's user avatar
  • 2,114
3 votes
Accepted

How can I fetch the list of the active block producers and standby block producers using eosjs?

Yes, it is possible with eosjs. You can create an instance of Eos with a given config and then do getTableRows with the given parameters. You might find the api footprint here. Also check the github ...
Javier Mendonça's user avatar
3 votes

Where is the API for block producer voting in EOSJS?

Call voteproducer.. > eos.voteproducer() CONTRACT eosio FUNCTION voteproducer PARAMETERS { "voter": "account_name", "proxy": "account_name", "producers": "account_name[]" } EXAMPLE ...
slim2k's user avatar
  • 173
2 votes

Interacting with a smart contract

Like Patrick said you need to build a front end to communicate with smart contracts on the eosio blockchain. Here a couple of library's to get you started. I have seen a few others as well. Just ...
bbest12g's user avatar
2 votes
Accepted

EOSJS Api Is it possible to iterate over and eval the functions?

I guess the problem lies in the this.test allocation, because the result of your eos call is this.test, which is likely to be a promise. If you have Babel installed or ES6 support you can use an ...
tmm's user avatar
  • 2,114
2 votes
Accepted

How reproduce sha256 in Javascript?

xxd make a hexdump or do the reverse -r revert, convert hexdump into binary -p output 'plain hexdump style' sha256sum compute and check SHA256 message digest -b read in binary mode Here ...
Don's user avatar
  • 1,165
1 vote

EOSLime with Kylin: Account Creation

There was an opened issue in the repository. It was fixed today. You can get the updated eoslime code from the development branch. The fix is going to be uploaded on master branch and npm through the ...
Lubo Kirov's user avatar
1 vote
Accepted

Encrypt a message in the memo field using the receivers public key

Steemit currently has a similar functionality, I would look at their coding, as it will be very similar to EOS. Specifically in steemit see: https://steemit.com/steemit/@adept/tutorial-how-to-sent-and-...
cryptosig's user avatar
  • 111
1 vote
Accepted

State History Plugin. How to deserialize the data?

I found a repo with a JS program for listen to the node and get the blocks. https://github.com/mauhcs/ship_monitoring The fill.js came from another repo that I can't find the url anymore. But for ...
zeh's user avatar
  • 201
1 vote

Get the last transaction from the blockchain

This may have change since you asked this question, however -1 for pos should work as expected. Example using curl to get most recent action for newdexpocket: curl --request POST --url https://nodes....
netuoso - EOS Titan's user avatar
1 vote

Interacting with a smart contract

Create front end and make it interecting with contract using eosiojs
Mr.Y's user avatar
  • 957
1 vote

does eosjs only support eosio and eosio.token contract?

eosjs team confirmed, question could be closed now. https://github.com/EOSIO/eosjs/issues/152
user854's user avatar
  • 23
1 vote

Interacting with a smart contract

I think the idea is that you create a web front end using react. The user probably doesn't ever see there is a contract or even blockchain behind the webpage
Patrick M's user avatar
1 vote

how to start a non producing block and connect to block producer?

Create a non producer node and then to connect it to net, You can follow this link to understand: https://steemit.com/eos/@fundurian/learning-diary-connecting-to-eos-mainnet This tutorial helps in ...
eosahota's user avatar
1 vote

I Need Help Setting Up a Back-End Infrastructure for my Future DApp

Short answer: there is no free, open-source honey. You can start with small EC2 instance on Amazon AWS (even with "free" one) and scale up when you need it. So you will not pay a ton until you ...
Vasiliy Bondarenko's user avatar
1 vote
Accepted

Why is a BlockIndexState model required when using demux.js?

BlockIndexState, is a mongoose defined schema, where dapp know about the processed blocks, Demux watch the node block from particular defined block[ eg:153343 https://github.com/EOSIO/demux-js#...
YashwanthKambala's user avatar
1 vote

sign & push transaction separately eosjs

The EOS code uses fcbuffer to pack the transactions. Once packed, the packed data is combined with the chain ID and the Context Free Data to generate the signature. Specifically, the chain ID, ...
John Haager's user avatar
  • 1,844
1 vote

getActions(accountName), possible names? | actions.action_trace.act.name

node_modules/eosjs/lib/schema/eosio_system.json helped me. In case it's not one of the most used ones, I just return the whole object
Marcel's user avatar
  • 383
1 vote
Accepted

Get the block_num_hint for calling eos.getTransaction(id, blockNumHint)?

In EOSIO, The block_num_hint argument is optional, and it represents the block number where the transaction should be. This can help find the transaction by fetching just one block when not all ...
confused00's user avatar
  • 5,554
1 vote

list of confirmed and unconfirmed transactions of address / account

To get the unconfirmed transactions, you can call curl -d '{"limit":5,"json":false}' https://mainnet.eoscanada.com/v1/chain/get_scheduled_transactions Replace https://mainnet.eoscanada.com with any ...
mounibec's user avatar
1 vote

EOSJS tutorials

The basic EOSJS documentation is found on the GitHub-Page Unfortunately I haven't found any tutorials yet, but here is another good overview for general Information as awesome list. I guess some ...
tmm's user avatar
  • 2,114
1 vote
Accepted

How difficult would it be to incorporate AssemblyScript?

The answer to this question is being documented here. TL/DR: Getting the most basic functionality to work is very easy. You only need to export an apply(uint64, uint64, uint64) function in ...
wanheda's user avatar
  • 303

Only top scored, non community-wiki answers of a minimum length are eligible