Questions tagged [ethereumjs-tx]

The tag has no usage guidance.

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

ethereumjs-tx : sign transaction using unlocked account

Web3js has the following method : web3.eth.signTransaction(transactionObject, address [, callback]) to sign a transaction using an unlocked account. Can we sign a transaction in a similar way, ...
0
votes
2answers
9 views

Transaction won't be mined / Failed signing of transaction

I'm trying to send a transaction that writes somesthing on ethereum(kovan) but it seems my transaction is not mined and probably not even send to the network? All my view requests to ethereum work, so ...
3
votes
1answer
17 views

Do we need to sign transaction for totalSupply also? [closed]

I am using web3 and want to sign transactions made with ERC20 contract.
0
votes
1answer
49 views

how to send erc20 token without using smart contract abi?

How to transfer erc20 token without using contract or contract abi? The below script i have used to create Signed Raw Transaction to send Ether(ETH). How can i create Signed Raw Transaction to send ...
0
votes
1answer
24 views

Why do we use `serialize` function of `ethereumjs-tx` package before broadcasting a transaction

I just want to know the purpose/functionality of serialize function which we use before broadcasting a transaction: const serializedTransaction = tx.serialize() const raw = '0x' + ...
2
votes
1answer
44 views

What does it mean to serialize a transaction?

In tx library there is a function: serialize() that "serializes" your transaction object. You can then convert that serialization into hexa decimal string, and use it to send the transaction with the ...
1
vote
1answer
271 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
1answer
41 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 ...
1
vote
0answers
198 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 ...
0
votes
0answers
372 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 = '...
1
vote
1answer
161 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 ...
0
votes
1answer
590 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
0answers
240 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
212 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="...
1
vote
2answers
189 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
1answer
313 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 ...
0
votes
1answer
78 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
76 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 ...
3
votes
1answer
667 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
0answers
315 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 ...
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 = '...
0
votes
1answer
453 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
528 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
828 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
428 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 ...
1
vote
0answers
77 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 = ...
3
votes
1answer
308 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
371 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
220 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
120 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
147 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
369 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
876 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
155 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
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 ...
1
vote
2answers
177 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
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
4answers
939 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
165 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
120 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
98 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
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 ...
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 ...