Questions tagged [ethereumjs-tx]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
3answers
3k views

Proper Transaction Signing

I am trying to implement a voting system in nodejs. My server needs to be able to create transactions and send them to the ethereum blockchain when provided with the user private key. I have tried ...
5
votes
1answer
2k views

Web3.js 1.0 sendSignedTransaction returns error: Invalid RLP

Running parity private PoA chain, using latest parity client + nodejs + web3.js 1.0 When I try to sign a transaction and then send it following web3.js 1.0 documentation (sendTransaction and ...
4
votes
2answers
1k views

RangeError: private key length is invalid (In New ETH Transaction pragmatically)

Followed this Ans Ans1 and Ans2 but no solution got. const web3 = new Web3('https://ropsten.infura.io/v3/3c52917848e945229c0d33d632b10490'); const account1 = '...
4
votes
4answers
882 views

Raw transaction structure

I made two raw transactions. One was generated by ethereumjs-tx, the other by MyEtherWallet. They are identical until about the last seventh of the way through. Is there a way to work out what caused ...
3
votes
1answer
554 views

ganache-cli doesn't have enough funds to send tx – number increases proportionally to however much I initialize a wallet with

I'm trying to write a simple function to send a transaction using web3 and ethereumjs-tx that empties the wallet of an account (call this account A) into another account (account B). However, no ...
3
votes
1answer
296 views

Can't send data to non-contract address using web3 1.0.0 and ganache

Problem According to this question, it is possible to send data to a non-contract address in Ethereum. However, if I run my code which sends ether from the first account to the second account on ...
3
votes
1answer
149 views

web3.js Transactions security/differences

While learning how to use the web3.js package I came across two types of transactions: RawTransactions/ web3.eth.sendawTransaction(...) and simple Transactions/ web3.eth.sendTransaction(...) I ...
3
votes
1answer
155 views

What units of ether does ethereumjs-tx use

Trying to follow this example 100 wei seems very low for the gas price. Is it using a different unit? I'm also slightly unsure if the value should be hex or decimal, or if it accepts both
3
votes
0answers
270 views

How to use ethereumjs-vm to find the internal transactions for a transaction/block using infura.io

I am using infura.io as my node and trying to get the internal transactions (i.e. transfers initiated by smart contract) for a specific transaction (or its parent block). I have two attempts (both ...
3
votes
0answers
1k views

Issue won't allow this transaction (Smart contract)

•Windows 8 •Mist 0.8.9 •Tesnet When I publish my crowdsale smart contract and try to send ethers,i have this warning
2
votes
2answers
2k views

Need help signing a raw transaction with “ethereumjs-tx”

Here's a NodeJS script where I'm trying to send a raw transaction. I've tried changing params in a lot of different ways and always get the same error. What am I missing? I'm following an example from ...
2
votes
0answers
764 views

SOLVED - sendRawTransaction (no) errors, valid tx, not found when scanned

I have a method that is supposed to create a transaction, send some wei and validate. When looking around I red that you can use infura.io. I also checked that you need to use raw transactions because ...
1
vote
1answer
267 views

Unable to Generate Same Account from MetaMask Mnemonic in EthereumJSWallet

I've been unable to generate the Account I see in MetaMask in EthereumJSWallet even if I use the same mnemonic. Due to the lack of documentation, I may be misunderstanding how to do so. I have run ...
1
vote
0answers
147 views

raw_tx_demo.js of “Mastering Ethereum” : TypeError: ethTx is not a constructor

I ran raw_tx_demo.js, an example code on page 119 of "Mastering Ethereum" by Antonopoulos and Wood, but got an error message below: $ node raw_tx_demo.js /Users/gemcutter/raw_tx_demo.js:22 tx = new ...
1
vote
1answer
98 views

How create transaction raw data for using “eth_sendRawTransaction” in C#

My IoT device connects to another computer via Wi-Fi on which Ethereum (Truffle/Ganache) is running which receive a RPC from the IoT. My task is to create raw transaction data on this IoT Device, so ...
1
vote
2answers
181 views

Read state from smart contract deployed to azure proof of authority ethereum network

I deployed a smart contract to an azure proof of authority network(ethereum). Following the instructions here https://docs.microsoft.com/en-us/azure/blockchain/templates/ethereum-poa-deployment#...
1
vote
0answers
71 views

When trying to perform sendSignedTransaction iteratively on wallets in an array, an undefined error is returned

I'm trying to write a script that takes as input a JSON array where each element of the array has an address and a corresponding private key. I'd like to have a function that iterates through this ...
1
vote
0answers
27 views

Trying to iterate through an array to send signed transactions results in one failure and one success

I'm trying to iterate through an array of address/key pairs and send a transaction from each one. When I do this on testrpc with an array of the account info for two different accounts, one ...
1
vote
0answers
74 views

Unhandled promise rejection (rejection id: 100): TypeError: Invalid hex string

Getting this error when calling a write function in the smart contract. Please find the code below. getListedAsValidator: function(address,sender, callback) { var self = this; var config = ...
1
vote
0answers
332 views

Cannot find module ethereumjs-tx even though it is there [duplicate]

I'm trying to send a signed transaction from a web interface using web3, web3 is loaded and I'm connected to an Infuro.io node. Ethereumjs-tx is installed and I've also included it as seperate JS, but ...
1
vote
2answers
168 views

Call a function in meteor wihout confirmation in metamask

I am working on university project and this is the only and last point i need your help. I want to call automatically a state-changing function in meteor without the submit confirmation in metamask. ...
1
vote
0answers
117 views

eth-lightwallet installation error

I'm using Meteor and have installed eth-lightwallet by typing meteor npm install --save eth-lightwallet and meteor npm install --save ethereumjs-tx However, when I import lightwallet from "eth-...
0
votes
1answer
169 views

Trying to send signed transaction through web browser using ethereum-tx

I am working on signing and sending a transaction using web3 v1.0 and Infura.io. I have setup a script to run the TX but cannot seem to get ethereum-tx to connect in the browser. <script src="...
0
votes
1answer
390 views

Problem with sending ERC20 token using web3@1.0.0

Circumstance I have followed all indications from this GH issue and from other SO posts. The transaction gets successfully broadcasted but no tokens are transferred. When I check the balance before ...
0
votes
1answer
38 views

Transaction being reverted by EVM during contract creation (Web3 / ethereumjs-tx)

Hey guys I am running into an issue deploying a smart contract with Web3 to the Ropsten network. The code is running seemingly correctly, and there is a contract address being created, but if I check ...
0
votes
1answer
512 views

Error: types/values length mismatchProblem when calling payable contract function with web3

Enviroment Node version: v10.15.3 Web3: ^1.0.0-beta.50 Net: Ropsten My smart contract is a very simple payable/balance one and my goal is to contribute 0.1 ETH to raise the contract balance using ...
0
votes
2answers
719 views

web3.js library not loading properly

I am trying to load web3 library after installing it via command prompt. However, looks like it is not loading properly as it is not showing all the details for Ethereum ecosystem (ex. unitmap of ...
0
votes
1answer
189 views

How to get all the contracts deployed by a specific ethereum address?

It is anyhow possible to get all the contracts deployed by a specific ethereum address in lifetime? If yes, is it possible to get ABI details of the contract by their address?
0
votes
1answer
117 views

How off-chain Tx reduce the cost and problems?

X and Y locked up 1 ETH each on-chain. Balance: X (1 ETH) & Y (1 ETH). X signed off-chain Tx sending 0.1 ETH to Y. Balance: X (0.9) & Y (1.1). X signed off-chain Tx sending 0.2 ETH to Y. ...
0
votes
1answer
143 views

Offline signed contract throws 'exceeds block gas limit'. Why can't I deploy?

I'm trying to deploy a smart contract onto the Ethereum blockchain by signing the transaction on an offline computer and then transferring the byte code to an online system for deployment. Because of ...
0
votes
1answer
340 views

“The field value must not have more 32 bytes” trying to create transaction from contract method call

I've already interacted with this contract instance using a local Geth node with my wallet loaded/unlocked, so I know there's nothing wrong with the contract. Now I'm using an Infura RPC node instead ...
0
votes
1answer
2k views

Call a Contract With Web3JS/ethereumjs-tx

I want to execute a smart contract on the blockchain. As far as I understood this web3js offers two options call: executes the contract method locally without using gas execute: executes the contract ...
0
votes
0answers
36 views

What is the networkid and chain id of truffle cli?

I am using truffle console to deploy contracts and using Nodejs/web3js to interract with it. I wanted to use ethereumjs-tx for signing transaction, here is the reference link. I am not sure ,how can ...
0
votes
0answers
66 views

intermediate value is not iterable

I try to construct a transaction with Node (11.4.0), ethereumjs-tx (1.3.7) and web3 (1.0.0-beta.55) and Infura. Infura gives me '0x35b' for the nonce, then I create the tx: amount = 0.001; nonce = '...
0
votes
0answers
69 views

eth_sendTransaction doesn't exist when using Infura node

I'm trying to sign a transaction offline and then send it using sendRawTransaction since I'm connected to an Infura node. My raw transaction looks like this let rawTransaction = { "from":...
0
votes
0answers
185 views

Sign a transaction locally and send it

I'm using Infura as my web3 provider, and have MetaMask installed to connect to the blockchain. I'm trying to send a transaction, but have learned that Infura is read-only, and doesn't support the ...
0
votes
1answer
72 views

transaction value does not match signed transaction params in ethereumJS-TX

I sign this transaction with Ethereumjs-tx: { nonce: 8, gasPrice: 20, gasLimit: 25000, to: '0x45cc01d4b9ad49b81527d5b6629da8664bb525d3', value: 1000000, data: '0x00', ...
0
votes
1answer
419 views

Transaction signing fails Invalid RLP.“,”data“:”RlpExpectedToBeList"

I'm trying to sign and push a transaction using ethereumjs and Infura. It seems to be working and I'm getting a transaction hash back, but the transaction is not visible on Etherscan, and when I'm ...
0
votes
1answer
367 views

transaction stuck in txpool as pending

I have a geth node, and using truffle-hd-wallet. I am trying to create a transaction between coinbase and the account created by hd-wallet.Created a raw transaction and signed it with privatekey of ...
0
votes
0answers
93 views

Who pays for the gas when i send a transaction containing a signed transaction of another user

I would love it if there was a way for me to pay the gas costs for a signed transaction I receive and then relay to a node. So I am the submitting the transaction, but its data contains a signed raw ...