Stack Exchange Network

Stack Exchange network consists of 175 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

0
votes
1answer
23 views

EOSLime with Kylin: Account Creation

EOSLime does not seem to be able to create accounts with Kylin chain thru my method. It produces an error that there is insufficient RAM. My method: let default_a = eoslime.Account.load('...','...');...
0
votes
1answer
22 views

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

I'm looking to see if it is possible to use the memo field as a way to send encrypted messages to an account by using the receiver's public key to do the encryption. Since the receiver has the private ...
1
vote
0answers
32 views

modules.format.encodeName() replacement in 20.0.0?

In eosjs@16.0.9 I have a Eos.modules.format.encodeName() Is there something like that in eosjs@20.0.0 or what can I use to replace it?
0
votes
1answer
34 views

Scatter detection delay issue

I am working on developing a web app in EOS. I am using scatter browser extension to sign the transactions. During page load, the status of scatter is checked using the following code const setStatus ...
1
vote
1answer
105 views

State History Plugin. How to deserialize the data?

I cannot find any implementation of a consumer for the state_history_plugin. The official Nodeos webpage suggests the fill-postgresql repo. But, I cannot compile it -- even after building the ...
1
vote
0answers
71 views

Tutorial on how to connect a website login to logging in with Scatter Desktop?

I have a website with the ability to login with your username / password. But I want to create a way to login with Scatter Desktop. Are there any tutorials on how one can go about doing this? My ...
2
votes
1answer
141 views

How reproduce sha256 in Javascript?

I actually use an implementation like the dice contract : https://github.com/EOSIO/eos/tree/v1.2.0/contracts/dice You create a key and his hash with sha256, you first send the hash and then the key ...
1
vote
1answer
76 views

Get the last transaction from the blockchain

I'm looking for a way to get the latest transaction recorded on a particular account. For example, I'm trying to get the latest transaction for "newdexpocket", how can I do that using nodejs? Here's ...
1
vote
1answer
30 views

Which eos block explorers have an API endpoint to query accounts?

Which eos block explorers has an api endpoint where I can query an account? I want to pull in account json data into my javascript application.
1
vote
3answers
190 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
336 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
54 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
1answer
157 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
1k 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
75 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
2answers
244 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 ...
2
votes
1answer
176 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
72 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 ...
4
votes
3answers
2k 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
338 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
477 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? ...
1
vote
0answers
165 views

Exception when accessing a contract with eosjs 13.1.0 on Dawn 4.2 [closed]

when switching from Dawn 4.0 / eosjs 11.0.01 to Dawn 4.2 / eosjs 13.1.0, I bumped into the following problem: const eosioToken = 'eosio.token' try { const eosioTokenClientAccount = await eos....
0
votes
1answer
213 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
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 ...
5
votes
2answers
685 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'], ...
1
vote
0answers
58 views

Failed to deserialize variant EOSJS

I am following this tutorial https://github.com/eosasia/ping-eos I am trying to connect my web application to my smart contract. when i use cleos to test the smart contract i am able to see that the ...
7
votes
3answers
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 ...
1
vote
0answers
77 views

What are the units of the total_votes in the producer_info structure?

The structure is defined here https://github.com/EOSIO/eos/blob/7bce267c6e48bcbf2d81f0ed51a3771501fdbb7b/contracts/eosio.system/eosio.system.abi#L134 total_votres is a float64 The value reported by ...
5
votes
1answer
81 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 ...
2
votes
1answer
186 views

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

At this time, is it possible for me to do so when the BPs have not been elected? I need this for a block explorer I'm building using eosjs.
2
votes
2answers
422 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?
5
votes
2answers
78 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.