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 [ethereumjs-tx]

The tag has no usage guidance.

0
votes
1answer
25 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
2answers
61 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#...
0
votes
1answer
52 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
votes
0answers
123 views

How do I sign a transaction using ethereumjs-tx and web3, and Infura API Key?

I am trying to send ETH from external account A to external account B using ethereum-js and web3. I've tried this in local using Ganache and it works fine. The problem is I cannot execute the same ...
0
votes
1answer
31 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', ...
1
vote
0answers
20 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
22 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 ...
3
votes
1answer
84 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 ...
2
votes
0answers
79 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 ...
0
votes
2answers
185 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 = '...
0
votes
1answer
118 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
126 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
2answers
323 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
179 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
38 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 = ...
0
votes
0answers
31 views

Specific Sign in smart contract(IDEX exchange)

Having troubles in getting this to work. https://github.com/AuroraDAO/idex-api-docs I mean about section "Contract-backed trade functions", so there's example but it is not finished, does anyone can ...
3
votes
1answer
200 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 ...
1
vote
0answers
139 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 ...
0
votes
1answer
53 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
66 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
113 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
180 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 ...
2
votes
0answers
444 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 ...
3
votes
1answer
117 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 ...
0
votes
1answer
1k 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 ...
1
vote
2answers
119 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. ...
5
votes
1answer
1k 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 ...
3
votes
4answers
660 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 ...
2
votes
1answer
80 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
1
vote
0answers
103 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
0answers
76 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 ...
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
6
votes
3answers
2k 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 ...
2
votes
1answer
1k 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 ...