Questions tagged [eosjs]

QAs about the JavaScript module eosjs which uses RPC-APIs to interact with an EOS.IO blockchain.

Filter by
Sorted by
Tagged with
3
votes
1answer
3k views

Reading table rows with EOSJS

Is there a way to receive the return output of an action with EOSJS? Say for example I have an action that reads columns from a table, sums a row and returns the result. How would I structure the ...
7
votes
3answers
568 views

Which NodeJs UI Framework is most suitable for EOSJS

I'd like to know which Framework you should use in eosjs. I have little experience with JavaScript and so I don't know which Framework works best together with eosjs or does the framework even matter? ...
4
votes
3answers
3k views

How to get operations history of account?

Should I analyze all the blocks or are there some methods in the eosjs library?
4
votes
2answers
606 views

Get Table Rows with Pagination

How do we get records from a table by pages? My requirement: I have a table with 100 records and want to display all these records in my front-end-application with 10 records per page and if the user ...
2
votes
2answers
478 views

EOSJS what is the keyProvider

The Github Page of EOSjs mention a keyProvider to instantiate EOSjs. What is this? my private key?
2
votes
1answer
132 views

How to prevent cheating in a turn-based-game on blockchain?

I want to create game where p1 and p2 take actions in turns but neither p1 nor p2 should be able to see the action, the other is doing till the end of the game. If I would do it like in a normal Web-...
2
votes
1answer
847 views

How to transfer EOS token using Scatter.js or eos.js?

I've successfully managed to use eosjs to transfer some EOS but when I'm trying to send something else (a token) it's no longer working. For example that code is working: import ScatterJS from '...
2
votes
3answers
345 views

Need to perform automatic smart contract function execution

Can we have a function in a smart contract to be executed automatically after some time? for example, transfer some tokens after every 5 seconds.
2
votes
1answer
1k views

Provided keys, permissions, and delays do not satisfy , but does not have signatures for it under a provided delay of 0 ms

my Code var EosApi = require('eosjs-api'); const Eos = require("eosjs"); // ./cleos create key #OwnerKey // Private key: 5KVihg2u3yZpBtoLhRGvqf6vBsq9swjyvUkvbpMVMQWz11NbMa2 // Public key: ...
2
votes
2answers
255 views

How to find the closest node to connect to mainnet in my dapp?

In our dapp, we would like to offer the user to choose from a list of different mainnet nodes, so that latency is low. Ideally, from the list of BPs the user has voted for. How to retrieve a list ...
1
vote
2answers
3k views

Transaction requires authority, but does not have signatures for it

I am trying to send tokens from one account to another using eosjs & reactjs with the standard eosio.token contract but I have issues with the authority. Can someone please explain the meaning of ...
1
vote
1answer
433 views

What is the maximum speed of EOS?

What is the maximum transaction speed for EOS? I read that 100,000 transactions per second. But I'm not sure about this
0
votes
1answer
39 views

How to use resource_payer on eosjs

EOSJS added a new feature to their library and now we can specify the resource payer. I wanted to try and use it but their example doesn't work.