Questions tagged [ethereumjs]

For questions regarding the installation or use of EthereumJS, a Javascript library that implements a number of Ethereum utility functions.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

any one please help when show QR for receiving erc20 token

any one please help when show QR for receiving erc20 token can i enter amount like "ethereum:ethaddress?address=contractaddress&uint256=token" not working "ethereum:...
0
votes
1answer
20 views

Cannot read data from smart Contract with web3 js

Im having trouble reading data from a smart contract I have following js script right here: (bcc-js.js) var contract_address = "0x88e304D8638c31DaC3336917bbE4A152927198D8"; var contract_abi =...
0
votes
0answers
24 views

How to authenticate user details in smart contract? [closed]

I am building a login system in my dapp for which i have to check the details with already registered users .I tried it by getting user details in frontend and then authenticate it but i think it is ...
0
votes
0answers
23 views

Error: Returned error: gas required exceeds allowance (12487794) or always failing transaction

I am trying to use a script which uses web3.js to transfer a specific amount of ERC20 tokens .I have made this script in such a way that if account doesnt has ether value it will try again and again ...
0
votes
0answers
6 views

Rerendering causes results to display twice (possibly caused by async event emission)

This may seem like a web developer problem at first but i think it pertains to how function calls are done in solidity. So basically i have a voting application which triggers an event every time a ...
0
votes
1answer
50 views

All transaction pending a lot of time?

I wrote contract and deployed it on remix today but it takes over 5 min to confirm.And I tried to call function of deployed contract , but the transaction still takes several minutes and even I call ...
0
votes
1answer
36 views

How to use private blockchains in ethereumjs-tx@2.1.2?

I know this method var transaction = new Tx(rawTransaction, {chain:'ropsten'}); I tried var transaction = new Tx(rawTransaction, {chain:'192.168.XX.XX:8545'}); But get Error: Chain with name 192.168....
1
vote
0answers
17 views

How to get event from geth ethereum node using web3.js

I have created a simple contract where I am trying to write a value to a state variable in solidity smart contract, and emit that written value. I am using Truffle v5.1.28 (core: 5.1.28) Solidity - 0....
1
vote
0answers
37 views

Alternative to ganache

can someone please tell me an alternative to Ganache? Tried installing ganache on my laptop and it's not supported. Ganache works on 64 bit computers and mine is 32bit. Is there a way I can go round ...
0
votes
1answer
26 views

Which method is efficient to log data in blockchain? Send an event via smart contract or send data in a transaction without value?

I want to log data in Ethereum block-chain. It is obvious that we can create a smart contract that emits events and retrieve data from it. But is sending a transaction with data but no ETH value (just ...
3
votes
1answer
37 views

How is Chainlink decentralized? [closed]

I believe one of the main criticisms of chainlink is that it is not decentralized enough, adding more nodes would be a big step in a positive direction. When I pull data through a node, that node ...
1
vote
1answer
21 views

How is the volume for the currency pair accounted for on chainlink's reference data feed?

https://feeds.chain.link/ - link for reference. Let's take the LINK/USD feed for example: From my understanding, the aggregation contract fetches the price of LINK in USD from the node operators who ...
1
vote
1answer
31 views

Automatically register number into Kovan test net with signed transaction (Infura API + NodeJS)

I have a very simple Smart Contract deployed using remix.ethereum which is: pragma solidity ^ 0.6.0; contract primerContrato { uint storeddata; function set(uint x) public{ storeddata = x; } ...
0
votes
0answers
29 views

“TxRejectedError” Using Ganache with Web3

I am having trouble sending my transaction Using Ganache. I am showing the logic that creates and sends the transaction and it says it cant be found or it is rejected don;t really know what the error ...
0
votes
1answer
49 views

where to host my react fornt end and express endpoint that interact with smart contract to be fully decentralised?

where to host my react fornt end and express endpoint that interact with smart contract to be fully decentralised. Are there any option to host it decentralised any cloud provider other than ...
0
votes
2answers
44 views

TypeError: EthereumTransaction is not a constructor

var EthereumTransaction = require("ethereumjs-tx") var Web3 = require('web3') var web3 = new Web3('http://127.0.0.1:7545') //Setting Receiving and Sending Address var sendingAddress = ...
0
votes
2answers
43 views

Signature test failed at Truffle js

I'm trying to test validAddress function from my contract ValidationUser, using truffle and test with JS. I checked the V value from the signature and its 27,28 so it is not the problem. Also, I have ...
0
votes
0answers
14 views

In EtherJs how to find account number of balance change event?

I am creating Ethereum Wallet application & I am using EtherJs for Web wallet development. When I try to listen for Balance Change event for multiple accounts then How do I find account number ...
0
votes
1answer
22 views

web3 providers for ethereum apart from metamask, to connect web and mobile dapps?

I want to create a list of ethereum web3 providers available apart from metamask, which could be used to integrate blockchain functionalities in our apps or dapps created in various platforms (web app,...
0
votes
0answers
12 views

Ethereum Skipping Empty Blocks --preload option doesnt work

In my clique PoA private network setup I try to mine skipping empty blocks and mine only when there is transaction present. I try to follow How to make miner to mine only when there are Pending ...
0
votes
0answers
17 views

Ethereum Logs since Beginning of Time

I can subscribe to all events in ethereum network (logs, pendingTransaction etc) so I can get only newly generated events (while I am subscribed). For my analysis I need to retrieve all logs from ...
0
votes
0answers
10 views

web3.js error ethjs-query gives out error in write contract functions

Hi I am getting error Error: [ethjs-query] while formatting inputs '[{"0":false}]' for method 'getTransactionReceipt' error: Error: [ethjs-format] hex string '[object Object]' must be an ...
0
votes
0answers
17 views

Getting suffix of blockchain domain

I have a program that can get me the first part of registered blockchain domains, but not the suffix (.eth, .zil, etc.) and am not sure how to associate suffixes with names. I know that in some cases, ...
1
vote
1answer
56 views

Whats the best way to sign and send a transaction?

Hey I want to send a transaction that has a message embedded in it. I want the most secure way to unlock the personal account. I have full node GETH installed and am using web3.I have a nodejs script ...
0
votes
1answer
24 views

Can a contract auto execute a transaction given certain conditions? [duplicate]

I've tried searching for this question but can't seem to find an answer. There are others asking to auto execute based on an hour interval or other real world check. What I would like to do is have ...
0
votes
1answer
20 views

solidity function works perfectly in remix but in react application it is not executing in the same way

in Remix i execute it and it works as i expecting and when i check the value from other function it returns the expecting value function makeadmin(string memory cityN, address adminAdress, string ...
0
votes
2answers
23 views

Deploying App on Ropsten or any Test Network

I have a web3.js application which uses truffle and interacts with smart contracts deployed on Ganache. How do I deploy my smart contract on a Test Network and interact with it through my application?
0
votes
1answer
20 views

ERC20 Transaction failing due to invalid nonce value

I am trying to send an erc20 transaction but I keep getting an error telling me that the account I'm sending the transaction from has a nonce value of 1 while the tx has a nonce value of 31613. I am ...
1
vote
0answers
38 views

EIP712— Sign/Recovery using ethereumJS/Solidity

I've tried to mirror the example as shown: https://github.com/ethereum/EIPs/tree/master/assets/eip-712 However after much attempt at troubleshooting I have been unable to return the correct address ...
1
vote
1answer
31 views

What does literal refer to?

Hello I am new to blockchain. I was reading solidity docs and they were continuously repeating the word "literal", what does this word mean? Please elaborate.
0
votes
0answers
33 views

bytes32[] returns true value in remix but when i run it through web3 it returns empty Array why?

Note All other functions working perfectly function viewAssets()public view returns(bytes32[] memory){ return (profile[msg.sender].noOfLand); } //profile is a mapping on address=> bytes32[]...
1
vote
2answers
34 views

Call view function using web3.js 1.2.6

I am trying to call view only function, not sure whether this is correct procedure or not. Getting success in result but the result is in different format. Is this wrong ? const NODE_ADDRESS = ...
1
vote
1answer
31 views

Function call error in ethereum smart contract

I am trying to call a ethereum smart contract function but it gives me error. It works perfectly fine with remix JVM environment but throws error with web3 provider. I am just trying to call a ...
1
vote
1answer
50 views

Call ethereum smart contract function using web3js 1.2.6

I am trying to call a smart contract but i am getting error : The function eth_sendTransaction does not exist. I think it is because of transaction not signed , but how can i sign the transaction when ...
1
vote
1answer
27 views

How to deploy ethereum smart contract with parameters using web3 1.2.6?

I am trying to deploy smart contract using web3 1.2.6 , my smart contract accepts 2 argument in constructor : id , name. I dont know what i am doing wrong , but both approaches are not working. Error (...
0
votes
1answer
35 views

Get emitted events of a a smart contract function using infura

I have used infura in my App.js to connect to the kovan network. Then I am creating an instance of the smart contract deployed on that network. Then I am calling a function on that smart contract ...
0
votes
1answer
167 views

Error: "Transaction ran out of gas. Please provide more gas:

I'm facing a little issue here, that's the mintTo function from contract for NFT. Which I require the sender to send a value with >= 0.1 Ether: pragma solidity ^0.5.0; import "./TradeableERC721Token....
1
vote
2answers
65 views

Read message of require / revert statement in app.js

In my App.js I have called the smart contract function and the require statement in the function is not satisfied, so how do I get the message of that require statement in my App.js?
0
votes
1answer
17 views

Question about transaction confirmation

My question is that when a miner broadcast some transactions and other nodes don't think these transactions are valid, what will happen? Fork?
1
vote
0answers
39 views

Error: Provided address “[object Promise]” is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can't be

i want to use the 'set' function ,but the console tell me that i have a wrong ,it also can say that 'set is not a function ',you can see this : import React, { Component } from "react"; import ...
1
vote
1answer
38 views

Compute transactions trie root hash from a BlockBodies message using ethereumjs

Given a decoded BlockBodies message, I want to compute the root hash of the transactions trie, so that I can match it against block headers that my node has downloaded. After reviewing How Ethereum ...
2
votes
2answers
51 views

How to decode a transaction to verify its signature in Javascript?

I noticed that it's possible to sign a transaction with a wrong private key. I took the following example found at https://github.com/ethereumjs/ethereumjs-tx const EthereumTx = require('ethereumjs-...
1
vote
0answers
23 views

ipfs with ethereum

Module not found: Can't resolve 'ipfs-api' in 'C:\Users.......\src' I have used this code //using the infura.io node, otherwise ipfs requires you to run a //daemon on your own computer/server. const ...
1
vote
1answer
24 views

Account Private Keys not Logging with Web3.js with Pure Javascript and HTML on browser

Here is the code below, I want to create accounts using web3 js and logged the private keys. But am having an error Reference Error and keys not logging. I followed the docs at https://web3js....
0
votes
1answer
36 views

EthereumJS returning wrong public key

I'm using https://iancoleman.io/bip39/#english to generate a random 12 word mneumonic with the following settings. Mneumonic language: English Coin: Ethereum Derivation Path: BIP44 It generated the ...
1
vote
1answer
34 views

Using `recoverPersonalSignature` from `eth-sig-util` to verify message signed with go-ethereum's `crypto` package

I am using https://godoc.org/github.com/ethereum/go-ethereum/crypto#Sign to sign an arbitrary message and trying to recover the signer address using sigUtil.recoverPersonalSignature(https://www.npmjs....
2
votes
3answers
501 views

Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings

Getting error while creating ethereum raw transaction var rawTx = { nonce: '0x2a', gasPrice: '0x4a717c800', gasLimit: '0xc340', to: '0x73F7Ced8cc9D27DC426210c32fc6d0a40f941eE1', value: '...
1
vote
0answers
114 views

get event logs and debug trace from eth_call

I am looking for a way to execute a transaction locally (using local geth/parity node) for simulation only, before actually submitting it to blockchain. I know that I can use 'eth_call' RPC call and ...
0
votes
1answer
45 views

VM error: revert. Try to send ether from contract to another contract

I just facing a little issue here in sending some ether from Sender contract to another contract Escrow by msg.sender value. Btw, I'm executing code on Remix, and specify the value from the sender ...
0
votes
1answer
43 views

If Wallet and address generated using EthHDWallet, can we get its recovery using ethereumjs-utils/hdkey getWallet() method by provideing seed?

Generated wallet address using: let mnemonic = request.body.seed; const wallet = EthHdWallet.fromMnemonic(mnemonic); let address = wallet.generateAddresses(1); console.log(wallet, address); How can ...

1
2 3 4 5
9