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
1
vote
0answers
256 views

Using recover_key with eosjs

I want to validate user signatures in my smart contract. As I understood, I am supposed to do that with recover_key function from crypto.h I am using JavaScript with eosjs and eosjs-ecc for ...
2
votes
1answer
227 views

Set a contract containing deferred transaction from front-end

I am trying to figure out the way to set contract which has deferred transactions at run time from front-end. Is it even doable? Any suggestions would be appreciated.
3
votes
1answer
487 views

Eos and Scatter

When using scatter, what does Eos refer to when making this call? const eos = scatter.eos( network, Eos, eosOptions ); Docs: https://get-scatter.com/docs/dev/signature-providers
4
votes
2answers
941 views

How to get transaction logs from EOS?

Suppose I have a dapp that monitors transaction of some assets. The smart contract would be generating transactions and I'd get messages like "executed transaction: ...
0
votes
1answer
30 views

Is there an equivalent of geth console in EOS?

I have used geth and web3. Is there something similar for EOS? I saw already eosjs exists.
2
votes
1answer
677 views

EOS: How to get structured data within transaction?Is there restful API for this/

Suppose A sent a transaction to SC(smart contract), including structured data, for example: {"intention":"like","target":"ae16xx0...."} As usual, this transaction will be stored on all nodes in the ...
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?
2
votes
0answers
161 views

How to calculate the minimum RAM & minimum Stake required for a new account?

In the browser via eosjs, I have made the below function adapted from the docs but how do I calculate the minimum RAM in bytes, stake_net_quantity and the stake_cpu_quantity? I understand these ...
0
votes
1answer
821 views

How to get account name from Public or Private key via eosjs?

If I have only a private key, how shold I: 1. Check private key and generate public key 2. Get account name from Public or Private key via eosjs?
2
votes
2answers
712 views

How can I get an account name from a given public key?

is there any way to get the name for a given public key, something like? eos.getKeyAccounts({ "public_key": "EOS73iTgPXEPXGazpU6XzU5Vq81Qk7TUHsmujTYn9DKJHm4MX1e2j" }) Am I ...
2
votes
2answers
246 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
1answer
130 views

Secure way to sign a Transaction in a polling Service

assume i have written an polling service in nodejs which i would like to run on an aws e2 instance (t2.nano/t2.micro). This service will observe a specific account every 10sec or so for incoming ...
2
votes
2answers
453 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
125 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-...
1
vote
1answer
640 views

EOSJS transaction authority does not have signatures under a provided delay of 0 ms

I am trying this tutorial to connect to a local testnet on virtualbox from my host using eosjs https://steemit.com/eos/@eos-asia/deploying-your-first-production-eos-dapp this is the code: EOS = ...
1
vote
1answer
384 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
3
votes
2answers
1k views

EOSjs getTableRows lower and upper bound on account name

How can I pass an account name as the lower and upper bound in the getTableRows method? I've looked at types.hpp and saw the string_to_name method, is there a similar method in EOSjs?
7
votes
3answers
546 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? ...
3
votes
1answer
2k 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
5answers
2k views

EOSJS tutorials

I have checked Where can I find complete (whole stack) EOS dApp development example projects? With smart-contracts, the necessary C++ coding and a browser interface? But I haven't found a full EOSJS ...
3
votes
2answers
505 views

Where is the API for block producer voting in EOSJS?

I have found the 'system voteproducer' command in cleos. Should I make a raw transaction or something like that?

1 2 3
4