Questions tagged [raw-transaction]

A transaction byte-encoded using the Recursive-Length Prefix (RLP) algorithm. Before Constantinople, it needs to be signed before it will be accepted by the network.

Filter by
Sorted by
Tagged with
41
votes
6answers
22k views

Create and sign OFFLINE raw transactions?

I'm looking to create a raw transaction, sign it, and broadcast it using the eth.sendRawTransaction RPC method. I would like to do this offline using code or an open-source library OR online but ...
30
votes
2answers
18k views

What is the ethereum transaction data structure?

I'd like to know the detail of the Ethereum transaction data structure. What data is stored in transaction?
28
votes
4answers
24k views

error: replacement transaction underpriced

Im trying to send a raw transaction using web3 to ropsten testnet and Im getting this error: replacement transaction underpriced where sometimes my tx works and sometimes I get this error. my tx ...
19
votes
4answers
5k views

Is there any safe way to send money from a cold wallet, using an untrusted computer?

You have 2 computers. One is 100% offline and, thus, trusted. Other is online. Private keys are stored on the offline computer and the online computer has no access to it. Is there any way to sign a ...
17
votes
2answers
7k views

web3.eth.sendRawTransaction: cannot unmarshal hex string without 0x prefix

When I call sendRawTransaction, I got "[Error: invalid argument 0: json: cannot unmarshal hex string without 0x prefix into Go value of type hexutil.Bytes]" I think all of params have "0x" ...
15
votes
1answer
4k views

Difference between transactions and raw transactions in web3.js

Reading the documentation of web3.js I have come across sending transactions and raw transactions.In the documentation it's specified that send raw transaction sends an already signed transaction. ...
15
votes
3answers
7k views

Using web3 to sign a transaction without connecting to geth

Is it possible to use the web3.js library in a client's browser to let them generate an address and sign a transaction without them connecting to an ethereum node?
15
votes
2answers
4k views

How can I easily parse a raw transaction?

In the Bitcoin ecosystem, there are tools like https://blockchain.info/decode-tx to decode a raw transaction. Is there a site that offers the equivalent for Ethereum? I'm looking for an easy way to ...
14
votes
2answers
5k views

How do I set the nonce for raw transactions?

A few questions about rawTransactions: Are they documented anywhere? How exactly should I set the nonce of a rawTransaction? If I start geth, and submit nothing but rawTransactions to it, then the ...
12
votes
2answers
5k views

How to get the transaction confirmations using the JSON RPC

How do I get the block confirmations for a specific transaction using the JSON RPC? This is information that would come inside the transaction JSON in bitcoin but it doesn't seem to come in ethereum. ...
11
votes
3answers
19k views

How to properly create a raw transaction and sign it using web3 in browser

I want to create and sign a transaction in browser using web3. In order to create a raw transaction, I think I have to do something like this (hopefully you can fill the gaps of my knowledge) var pk =...
10
votes
1answer
6k views

How to get raw ethereum transaction hash

I searched around for an answer to this question, however couldn't find one. So let's assume we've a raw ethereum transaction and before broadcasting we'd like to know the transaction hash. Is it ...
10
votes
2answers
2k views

Raw transaction data in Go

I would like to generate raw transactions in golang without any go binding and I'm wondering if there is library to dynamically encode my argument parameter using go? https://github.com/ethereum/wiki/...
9
votes
4answers
5k views

Get raw transaction from hash

I wonder if there is an equivalent to bitcoind's getrawtransaction, i.e., a command to dump a raw transaction in hex format, given its hash id. I am working preferably in geth.
9
votes
3answers
4k views

Can not send eth on Ropsten using Infura node

I am trying to send some test ether on Ropsten network using Infura but I can not make a transaction. Code works locally with testrpc but not with Infura var Web3 = require('web3'); var util = ...
9
votes
1answer
3k views

What is a “raw transaction” and what is it used for?

I come across a lot of posts on Ethereum Stack Exchange about "raw transactions" (more than 45 posts have this tag at the moment), but I don't really understand what it is. I have searched both Stack ...
8
votes
1answer
5k views

Sign a raw transaction with Metamask or Mist

Is there a way to use the private key from my Metamask or Mist account to sign a raw transaction? I cannot use ethereumjs-tx without the private key, but I want to be able to use injected Web3 and ...
8
votes
1answer
1k views

sendRawTransaction results in queued TXs

I attempted to send raw TXs via eth.sendRawTransaction API but get stuck. I'm using EthereumJS to generate and sign TXs, and indeed, I can submit TXs through eth.sendRawTransactin, but the TXs always ...
7
votes
1answer
371 views

Can I compress a raw, signed transaction into 140 characters

I would like to basically Make SMS payments of Ether (or bitcoin). The basic Idea I'm thinking about is: 1) Private key signs a transaction on a mobile phone. 2) Raw transaction is 'compressed' ...
6
votes
3answers
4k views

Signing a raw transaction in Go

I need to sign an offline transaction in golang. I have the following, which is a slight modification of this answer to a similar question: import "github.com/ethereum/go-ethereum/core/types" import "...
6
votes
1answer
3k views

Can't Broadcast ethereum transaction, what's wrong with this transaction?

I used eth_sendTransaction with Parity to send some funds, but it does not seem to be getting mined. The TX ID: 0x2b9d3c36d2cf2e56b5779f47c821791bdc6a0835b8b79c873bc221ff9e9e6a75 The raw transaction:...
6
votes
1answer
883 views

Unable to send raw transaction

i'm working on to the morden testnet and using a nodejs application i wrote (using ethereumjs-util, ethereumjs-tx) i'm trying to push a raw tx on to the testnet. I've tested GETH "eth....
6
votes
2answers
2k views

Execute contract function with raw transaction

I am trying to build a light interface which can broadcast a raw transaction and execute an Ethereum contract's function. While I am able to build a simple transaction there is little guidance on how ...
6
votes
2answers
4k views

Pending transactions removed from txpool in geth

We have been working on load-testing our private blockchain network using geth and Web3j. The transactions are sent using Web3j. We send 100 transactions, where every block has space for about 25 of ...
5
votes
2answers
5k views

Error: Known Transaction

My program is relaying raw transactions to a geth node from a mobile client. I noticed that a transaction with the identical content will yield an identical hash. e.g. calling the same function 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
4answers
3k views

How to decode input data from tx using python3?

I am trying to decode input data from token sale transactions. This is one of the transactions I am trying to parse 0xf7b7196ca9eab6e4fb6e7bce81aeb25a4edf04330e57b3c15bece9d260577e2b Which has the ...
5
votes
1answer
2k views

When are “pending” transactions dropped from the blockchain?

When are transactions dropped from the blockchain? Suppose I broadcast a transaction to the blockchain, then it is a pending transaction waiting to be mined. But when are pending transactions ...
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 ...
5
votes
1answer
1k views

How to get signature parameters from a transaction?

In my application I have to manually verify certain transaction signatures on the ethereum blockchain. Atm I am running geth and parity nodes and query transaction information via the rpc interface ...
5
votes
1answer
559 views

How to replay a transaction on classic?

I have looked to split and sell my etc and have successfully split with test transactions replaying on classic, however the main transaction has not replayed for 24 hours and I would like to force a ...
4
votes
3answers
703 views

How to sign a transaction in Rust

Given a private key, I would like to sign a transaction offline, so it can be sent to a node or Infura without unlocking an account first. I can find many examples in javascript using ethereumjs-tx ...
4
votes
1answer
1k views

Given only a raw transaction, how can I determine the from address that signed it?

I have IoT devices holding keys and generating/signing raw transactions on device and then sending them to a web service. Instead of passing in potentially conflicting parameters with the transaction, ...
4
votes
3answers
2k views

Retrieve the signature of a transaction on the blockchain

How can you find the signature of a transaction? web3.eth.getTransaction() doesn't appear to make that available.
4
votes
2answers
2k 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
2answers
3k views

What is “data” param of rawTx? How to send ETH by using web3

I want to send eth by using web3 on testnet. Source address is 0xbddf0bf3ac858d7fb8a2bdda55884d61779ba5a9. The destination is 0x8005ceb675d2ff8c989cc95354438b9fab568681. I found the example on web3 ...
4
votes
4answers
986 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 ...
4
votes
1answer
731 views

How to get the transaction hash once it is mined?

In JavaScript (web3.js), how do I get the transaction-hash corresponding to a function executed in my smart contract?
4
votes
1answer
905 views

Symbolic decoding of a transaction for Solidity

I have a Solidity contract source code and a raw transaction (hex) from blockchain. Is it possible for me to decode the transaction to its symbolic format, so I can see what contract methods are ...
4
votes
1answer
1k views

Invalid transaction v,r,s values with geth when reading from of signed MEW RLP transaction

I generated a signed transaction with myEtherWallet: ...
3
votes
3answers
965 views

send raw transaction without knowing nonce

I want to send raw transactions but I don't want to accidentally overwrite any transactions. Afaik when using eth.sendTransaction it automatically increments the nonce and doesn't overwrite any ...
3
votes
2answers
329 views

Is possible to send tx by someone else

I mean if I have address A and no ethers on it. And I will construct valid tx & and sign it with my privkey. Can I send this raw signed tx to my friend with address B, and he will push it to the ...
3
votes
3answers
985 views

How do I SendRawTransaction with document hash? [closed]

I'm a total newbie to blockchain and just started with it a week ago. I have already deployed a private Ethereum blockchain and want to use it to ensure document integrity which means that I'll be ...
3
votes
1answer
1k views

Can I deploy a contract to an arbitrary address that I choose?

If I want to create a smart contract by executing a raw tx, is it mandatory to compute the new contracts address the way it's been defined, or could I pick my own address arbitrarly? Why?
3
votes
1answer
5k views

What is chainID? Raw transaction from myEther wallet

So I just ran a function from a contract on Ropsten from myetherwallet.com. It ran fine via metamask, but I was just wondering what chainID was in the rawTx file? { "nonce":"0x2e", "gasPrice":"...
3
votes
1answer
1k views

How to make smart contract call using INFURA and NodeJS web3js

I can not understand how I can prepare the transaction to be signed. Because INFURA does not support eth_sendTransaction but only eth_sendRawTransaction (INFURA API which then requires you to prepare ...
3
votes
2answers
978 views

How to generate a raw transaction with data using Pyethereum

How do you use Pyethereum to generate a raw tx to send to the blockchain? I can do it successfully with a transaction with no data, but when I am attempting to use data, it does not function properly. ...
3
votes
1answer
413 views

Read the timestamp of the transaction via JSON RPC?

How do I retrieve the timestamp of a mined transaction using the JSON RPC?
3
votes
3answers
5k views

Decode raw transaction

How can I decode a raw transaction using Go / go-ethereum ? There is no method/function to read the raw bytes or the hex into a transaction https://godoc.org/github.com/ethereum/go-ethereum/core/types ...
3
votes
3answers
279 views

Sign a raw TX without a library?

I am looking for a way to sign a transaction manually by having the necessary input without using any libraries. I haven't found how the signing process exactly works anywhere hence why I am asking ...