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
0 votes
1 answer
153 views

How to unlock my wallet using nodejs?

The code given below is my nodejs code forunlocking my wallet name "seek".I got this API from eos developers portal,but don't know how to pass input data(wallet name and password) into it.Please help ...
2 votes
1 answer
44 views

Is there any way to discard a committed transaction?

I always have this doubt whenever i push a transcation. Is there any way to cancel a committed transaction before it's verifed by the block producers?
1 vote
2 answers
211 views

Is there any IDE for eos smart contract?

Is there any IDE for compiling eos smart contract? for example ethereum have remix to compile and run solidity based smart contract.
0 votes
1 answer
66 views

Any python api for getting account name by inputting public key?

Is there any python api for getting account name by inputting public key? I have got this code from developers portal, but I don't know how to use it. import requests url = "http://host/:port/v1/...
1 vote
2 answers
208 views

how to avoid scatter confirmation message?

I have built an dapp EOS blockchain. It's almost like twitter where the user can tweet and also use as a microblogging site in EOS blockchain.I have used scatter as transaction signer for using my ...
0 votes
1 answer
86 views

eosjs-ecc in other languages?

I'm looking for a way to do this https://github.com/EOS-Nation/eos-encrypt/blob/master/examples/encrypt-multiple-keys.ts it Java and Swift. Did anyone try to port it?
0 votes
1 answer
125 views

How to add the formula of ram calculate price for eos in our project?

Actually I am building an application and I would like to add the ram calculation for eos there. if anyone wants to calculate the ram for the accounts creation, he can use our website.thanks.
1 vote
2 answers
380 views

New JSSignatureProvider is not a function in EOSJS

Version of EOSJS eos@fffff and eos@beta3 Describe the bug const JsSignatureProvider = require('eosjs/dist/eosjs-jssig'); const signature = new JsSignatureProvider([privKey]); TypeError: ...
0 votes
1 answer
74 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 ...
  • 510
3 votes
2 answers
330 views

EOS connection to react native app

Can someone share an example of EOS blockchain integration with react-native? I am new to EOS development and I am struggling to integrate it in react-native app, there are always some missing ...
1 vote
1 answer
143 views

How can I query data from smart contract data base?

I mean not just printing data on the console, like in the documentation examples, or by get_table_rows API, but return it as function result, or maybe there is another way. The idea is that I need an ...
1 vote
0 answers
95 views

Demux: How to deserialize transaction data from MongoActionReader stored in MongoDB by mongo_db_plugin?

When I use NodeosActionReader I can get data passed as parametters to actions via payload.data.parametter. However when I use MongoActionReader payload.data contains only hex data. How to deserialize ...
0 votes
1 answer
73 views

Should I generate a new address per payment?

on the bitcoin network I generate a new address for each payment I am to receive. this way I can associate the address with the sender and I can tell when the payment has been made by monitoring the ...
  • 515
0 votes
1 answer
298 views

Double sign a transaction, first on client, second on server

I am struggling with getting the following scenario to work, I want to create a transaction signed by two parties (not via the multisig contract, just a transaction with 2 signatures). One is the ...
2 votes
1 answer
97 views

How to have real-time communication in dapp?

How would a real-time 1v1 game work on the EOS Blockchain? I've noticed that many of the games/gambling dapps on EOS are mostly player vs. blockchain, like EOSBet. Could I have real-time updates to ...
3 votes
1 answer
293 views

Deploy Contract from browser using eosjs

so I would like to deploy an EOS contract using eosjs. I encountered several problems (especially with converting the .abi and .wasm files). All the examples either use node (so fs is available) or an ...
  • 51
0 votes
1 answer
184 views

Is there an Infura or similar node service compatible with eosjs? For testnet/mainnet? Or, is starting your own node the way to go?

Are there any public api nodes for EOS? I.e. API key rate limited, etc I'd also appreciate a post on using the EOS testnet the first time. I can't find anything in Google search results about EOS, ...
1 vote
2 answers
801 views

How to watch my account for transactions

I am looking for an example of checking transactions that occur on my account. I read that there is a demuxjs library that supports this, but it is difficult to approach. Clarification: I am ...
  • 77
1 vote
1 answer
331 views

Max inline action depth per transaction reached on simple EOS transfer action call?

I am seeing the error Error 3040000: Transaction exception Ensure that your transaction satisfy the contract's constraint! Error Details: max inline action depth per transaction reached after a ...
  • 71
1 vote
1 answer
237 views

eosjs ecc sha256 produce different hash than the EOS cpp sha256

I should compare two hashes and the scenario is the following: I create a new record in the contract as I pass eosjs-ecc sha256 generated hash as string. Let name it hashA. When I want to update the ...
0 votes
2 answers
292 views

Best way to read data from contract using eosjs or Cleos

How you read the data from your contracts, just by using actions? Or there is another way? Thanks!
  • 121
1 vote
1 answer
714 views

How does EOS create signature?

For signing serialized transaction it needs make sha256 one time, but EOS returns signature longer than 64 symbols. My question is - what is additional info added to the signature?
  • 33
5 votes
1 answer
321 views

Is it secure to use keosd in an aws to let dapp/app server sign transaction?

I would like to know if it is secure to run keosd on an aws locally as a hot-wallet, to let the server of a dapp send a transaction which should be signed to the aws. The server of the dapp would get ...
  • 99
2 votes
2 answers
323 views

A possible alternative sign in/login process instead of firebase auth / amazon cognito using an eos contract?

I had the the idea of a secure alternative login process using an EOS smart contract instead of firebase or Amazon cognito. I would like to know if something like this feasible? My idea is somewhat ...
  • 341
3 votes
1 answer
758 views

How to transfer EOS Token with eosjs? [duplicate]

The title sums it up ;-) I'd like to move EOS tokens (say EOSDAC for example but any token will do it for my education) using the eosjs API... I've tried to use Scatter.js and did that but it's not ...
  • 185
4 votes
1 answer
753 views

New version of eosjs does not use chainId, How does it work?

I have worked with both new and previous versions of eosjs. In the previous version I had to make a config object like this: Eos = require('eosjs') // Default configuration config = { chainId: ...
2 votes
1 answer
878 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 '...
  • 185
1 vote
1 answer
72 views

How eosbetdice listen to new active bet and then push an resolvebet action?

I guess this is done off-chain? they should have some daemon to monitor actions. Once a new active bet is created, the daemon will sign the seed hash with the private key and then push an resolvebet . ...
  • 121
0 votes
1 answer
248 views

Access public variables of a TABLE in an EOS Smart Contract

I'm trying to access data inside a smart contract. The contract is visible here for example. The documentation for the smart contract is accessible here An example of an instance of the contract (...
  • 185
0 votes
1 answer
129 views

get data from a smart contract

I am a bit out of my depth here but I'm trying hard to keep up. I'm trying to call a method from a smart contract on EOS. That's the Bancor Smart Contract I'm interested in in particular. Just for ...
  • 185
2 votes
1 answer
720 views

Calling a Smart Contract action through EOSJS

I have a local EOS network and I am trying to make my application work through a web page. I am using eosjs version 16.0.9. I downloaded it and ran npm install. I am able to run the following code ...
  • 73
1 vote
0 answers
41 views

Payment to dapp with text comments best practice

I am new in eos, so maybe i say something strange. I want to create a dapp that can receive payments from mobile wallets with text comments. I imagine this like front end where user type text and ...
1 vote
3 answers
186 views

How to "get currency balance" with mongo_db_plugin?

I'm struggling to find the answer to that issue and thought maybe the collective knowledge might be helpful ;-) I'm trying to get the balance of a certain token for a specific account from the ...
  • 185
1 vote
3 answers
425 views

using keosd in eosjs

It seems that eosjs examples do not use keosd to retrieve the private keys or to sign a transaction. https://eosio.github.io/eosjs/ It says "Using the default JsSignatureProvider in the browser is ...
1 vote
2 answers
745 views

How to implement "cleos push action" in Node.js via RPC or eosjs?

I'm working on Todos example in the following link. To Do list smart contract By using cleos utility, everything works fine. Now, I'm trying to access the smart contract with Node.js RPC. How ...
4 votes
1 answer
128 views

EOSJS vote producer fails when voting for more than two producers?

We're trying to use scatter + eosjs for voting. This works fine if you pick one or two producers but any more than that and you get the following 500 error - POST https://api.kylin.alohaeos.com/...
  • 81
1 vote
0 answers
25 views

How to deploy my samrt contract on testnet in EOS [duplicate]

I have successfully pushed the transaction and deployed the smart contract on private net, I want to know How to deploy it on testnet. I have created the account on Jungle testnet.. Kindly tell me ...
  • 75
1 vote
1 answer
429 views

eosjs, have getActions working both ways

I've been struggling with that for a couple days and I'm crawling out for help now ;-) I've been using eosjs to parse the Actions of an account but all I can see are the transactions created by the ...
  • 185
1 vote
0 answers
342 views

Error 3090003 - How to provide signatures for eosio.code?

When I try call custom smart contract action I get this error. message":"transaction declares authority: '{\"actor\":\"triviafrenzy\",\"permission\":\"active\"}', but does not have ...
  • 11
1 vote
1 answer
104 views

How do I get my transaction Id to sign the transaction?

While signing the transaction there are 3 parameters that we need to pass, 1) txn 2) keys 3) id How Can I get my id and also what should be the structure of the transaction parameter, Kindly help
  • 75
1 vote
0 answers
82 views

Transaction exception while pushing transaction

While calling the push transaction API with the following body { "signatures": ["SIG_K1_K5umBpyieHE6czvtDMEAVjypG5Zz5sYo4NKbUkqJfe562mX22aLGwwZsYSQJLhBZi5s3hvjg6zVfS3ZucM97Ji5KNXSm4a"], ...
  • 75
1 vote
2 answers
75 views

Standard of communications between dapps and dapp browsers

I am building a dapp on EOS, and wondered what is the best practice of communicating with the dapp browser. For example on Ethereum I implemented the web3 library and all commands and apis were ...
  • 111
2 votes
3 answers
506 views

unsatisfied authorization error while push transaction

While using the push transaction I am getting the below error, Kindly help { "code": 500, "message": "Internal Service Error", "error": { "code": 3090003, "name": "unsatisfied_authorization", "what": ...
  • 75
1 vote
1 answer
271 views

What is a packed transaction?

This could be a noob question. While going through the community, I have seen some questions regarding packed transaction. Can anyone explain what is a packed transaction?
  • 510
1 vote
0 answers
136 views

generate eos keypair from Mnemonic/Seed

is it possible and is it secure to generate eos keypair using bip39 mnemonic seed? something like: const hdkey = require('hdkey') const wif = require('wif') const ecc = require('eosjs-ecc') const ...
1 vote
1 answer
76 views

latest EOSJS (20.0.0-beta2): missing node_modules/eosjs/lib/index.js?

Trying to import latest build of EOSJS but getting error: Error: ENOENT: no such file or directory, open '.../node_modules/eosjs/lib/index.js' previous versions 'work' until I try to access the Rpc....
2 votes
3 answers
433 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.
1 vote
0 answers
110 views

Maximum call stack size exceeded with scatterjs and eosjs

Use in vue const eosOptions = { expireInSeconds: 60 } const network ={ blockchain: 'eos', protocol: 'http', host: 'jungle.cryptolions.io', port: 18888, chainId:'...
1 vote
0 answers
217 views

List of transactions from a contract

I've been on this all day and can't figuring it out on my own so I'm reaching out for your help ;-) How can I get the list of ALL the transactions associated with an account? I've tried to play ...
  • 185
2 votes
0 answers
27 views

How to deserialise extended amount?

How to deserialise extended amount from "0x00924c50832000000000000000000000" to a number in JS or PHP?