Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [javascript]

All questions related to the use of JavaScript within the EOSIO framework

1
vote
3answers
43 views

Interacting with a smart contract

How can a user interact with the contract? Is typing the command cleos push action the only option?
2
votes
1answer
44 views

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

I have an application which requires to perform many transactions and I want some non block producing node to connect the BP nodes? I want to start non-producing blocks and connect to block producing ...
2
votes
1answer
30 views

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

I'm going through the process of designing a desktop DApp. I'm going to use GraphQL API's to connect the EOS blockchain to a Node.js server that'll use MongoDB with Electron.js and React.js on the ...
2
votes
0answers
38 views

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

I was checking the project eosio-project-demux-example since I want to use demux.js in my own project. I have doubts about the mongoose model BlockIndexState. I would like to know what is it used for....
2
votes
1answer
149 views

sign & push transaction separately eosjs

Goal: be able to separately create, sign and broadcast a transaction: Global for both approaches: const privkey = '5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3'; Approach 1: ...
2
votes
1answer
45 views

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

Using eosjs, I query all outgoing transactions using const actions = (await eos.getActions(accountName)).actions; map it, and console.log() the sorted and filtered result. The problem is, ...
1
vote
1answer
73 views

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

How can I get the block_num_hint for calling eos.getTransaction(transactionID, blockNumHint) ? Using eosjs or any other library/api. I tested it without, with only 1 above or below and received ...
1
vote
0answers
61 views

list of confirmed and unconfirmed transactions of address / account

I wanna show users a list of confirmed and unconfirmed transactions of a specific EOS address or account name, using eosjs. Similar like a Ethereum block explorer. Any ideas or work arounds? If ...
2
votes
1answer
30 views

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

Backstory: I'm creating a UI and I'd like an option for advanced users to be able to execute any function in the API. I've successfully imported the eosio_system.json file which contains all the API ...
2
votes
2answers
311 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
1answer
111 views

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

Basically, I am looking for a library, like the Ethereum's web3js, for accessing EOS via the web using Javascript. Ideally, I want users to enter their EOS account name and let me query the main net (...
7
votes
3answers
301 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? ...
0
votes
1answer
121 views

does eosjs only support eosio and eosio.token contract?

I suppose lookupAsync and lookup should remove 'contract' param. For example, my contract name is 'adv', if I use 'adv' as contract name, it will post a wrong argument to get_currency_stats like this: ...
3
votes
1answer
676 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 ...
5
votes
2answers
265 views

EOSJS HTTP CORS error

I'm trying to simply connect to my local EOS block from within a React Component with the following code; import EOSJS from 'eosjs'; const config = { keyProvider: ['INSERT_PRIVATE_KEY_HERE'], ...
5
votes
2answers
699 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 ...
5
votes
1answer
50 views

How difficult would it be to incorporate AssemblyScript?

It would be awesome to see support for AssemblyScript (which compiles typescript to wasm). So how can we do this? The database interface seems like the main headache. Boost seems to be way too ...
5
votes
2answers
55 views

EOS.IO utilization with Django?

Has anybody been able to utilize EosJs or any other type of implementation with django? I'd like to be able to build my dApp utilizing the testnet, but I'm not quite sure how to approach the problem.