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
55 votes
5 answers
111k 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 ...
Ernane Luis's user avatar
44 votes
6 answers
33k 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 ...
Nico's user avatar
  • 807
38 votes
4 answers
25k 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?
Satoshi Nakanishi's user avatar
20 votes
4 answers
37k 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 =...
S1r_Mar71n's user avatar
20 votes
5 answers
7k 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 ...
MaiaVictor's user avatar
  • 3,177
18 votes
2 answers
12k 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" ...
zono's user avatar
  • 1,473
16 votes
1 answer
6k 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. ...
Sebi's user avatar
  • 5,284
16 votes
5 answers
9k 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?
Max's user avatar
  • 171
16 votes
4 answers
6k 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 ...
15 votes
2 answers
8k 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. ...
Nico's user avatar
  • 807
15 votes
2 answers
8k 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 ...
tinybike's user avatar
  • 535
12 votes
5 answers
17k 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.
oriol's user avatar
  • 123
11 votes
1 answer
10k 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 ...
Kristaps's user avatar
  • 359
10 votes
4 answers
14k 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 ...
Surya's user avatar
  • 173
10 votes
1 answer
6k 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 ...
Tesa's user avatar
  • 2,259
10 votes
2 answers
15k views

Building a raw contract transaction with ethers.js

Can't find any good documentation on creating a raw transaction with contract data in ethers.js. The equivalent in web3 is adding the encodeABI on the data property. Any guidance on this? This isn't ...
Michael C's user avatar
  • 433
10 votes
2 answers
4k 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/...
rawEth's user avatar
  • 101
9 votes
3 answers
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 = ...
wonglik's user avatar
  • 315
9 votes
2 answers
7k 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 ...
Shuzheng's user avatar
  • 1,815
8 votes
3 answers
14k views

What is the networkid and chain id of truffle cli?

I am using truffle console to deploy contracts and using Nodejs/web3js to interact with it. I wanted to use ethereumjs-tx for signing transactions, here is the reference link. I am not sure how can I ...
cryptoKTM's user avatar
  • 431
8 votes
6 answers
4k views

Given a RAW Transaction - how to get senders address

Is it possible to get the senders address using golang when all you have is the raw transaction string. I can decode it and get the nonce, hash, to etc as these are all exported functions from the ...
Kravitz's user avatar
  • 447
8 votes
1 answer
2k 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 ...
qweruiop's user avatar
  • 251
8 votes
2 answers
10k 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 ...
simonDos's user avatar
  • 356
7 votes
3 answers
4k 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.
dbryson's user avatar
  • 6,363
7 votes
2 answers
4k views

How to decode txn_hash from contract function call via Python web3.py, w3.eth.sendRawTransaction

Hi I am running Python web3.py(Not web3.js) to run this: txn = ctrtInstance.functions.setzString(zString).buildTransaction() print('\ntxn: '+ str(txn)) txn['nonce'] = 3643 txn['chainId'] = 3 ...
Russo's user avatar
  • 1,764
7 votes
4 answers
2k 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 ...
Joe's user avatar
  • 1,173
7 votes
1 answer
497 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' ...
ZMitton's user avatar
  • 2,730
6 votes
3 answers
5k views

How to decode a raw transaction in Python?

I have a raw_tx in hex format which I'm going to broadcast via eth_sendrawtransaction JSON-RPC method. I want to check this raw_tx by decoding it on fields: gas, gas_price, nonce, value, etc. Some ...
Max Block's user avatar
  • 307
6 votes
2 answers
8k 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 ...
Micha Roon's user avatar
  • 2,183
6 votes
3 answers
10k 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 "...
ethereum_alex's user avatar
6 votes
1 answer
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:...
Bitcoin Bob's user avatar
6 votes
1 answer
1k 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....
Matt's user avatar
  • 219
6 votes
2 answers
3k 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 ...
Jim's user avatar
  • 353
6 votes
2 answers
7k 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 ...
Evedal's user avatar
  • 61
6 votes
1 answer
2k 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 ...
jarradhope's user avatar
5 votes
3 answers
3k 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 ...
emkman's user avatar
  • 151
5 votes
1 answer
2k 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, ...
Corey Ogburn's user avatar
5 votes
3 answers
4k 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 ...
Alex Triquet's user avatar
5 votes
1 answer
3k views

How to create multisignature transaction?

I have to create a multisignature transaction which the transaction should get signed with at least 2 private keys. Could anyone explain how to do it? I am using web3.py import rlp from ethereum....
merklexy's user avatar
  • 185
5 votes
1 answer
3k 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 ...
simoh92's user avatar
  • 123
5 votes
1 answer
1k 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 ...
Mikko Ohtamaa's user avatar
5 votes
1 answer
3k 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 ...
tintin's user avatar
  • 275
5 votes
1 answer
1k views

what unit is used for the gas/gas limit in the ethereum/types lib?

I'm trying to create a raw transaction using NewTransaction send 1ETH to one transaction, set 21000 gasLimit(I understand this is fixed for any simple transaction) and set the gas price to 51 Gwei. ...
Books's user avatar
  • 181
5 votes
2 answers
2k views

Where can I find Ethereum raw transactions?

For Bitcoin, I can use this site to find the hex encodings of raw Bitcoin transactions. Where can I find something similar for Ethereum?
Thorkil Værge's user avatar
4 votes
2 answers
6k views

How to create a RawTransaction for contract interaction Web3j

I want to sign a transaction that calls a smart contract function and send it to the Rinkeby network. I found on Web3j documentation the RawTransaction class that supports the methods for the ...
Alessandro's user avatar
4 votes
4 answers
2k 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 ...
Daniel Gretzke's user avatar
4 votes
1 answer
2k 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?
Roland Kofler's user avatar
4 votes
2 answers
2k views

Understanding serialized unsigned raw transaction

I'm currently learning about RLP (ethereum-under-the-hood-part-ii, wiki-eth-rlp) and Ethereum transaction structure, my goal is to create an unsigned raw tx and then sign it. Right now I'm playing ...
onepix's user avatar
  • 273
4 votes
2 answers
4k 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 = '...
Vishal Dalve's user avatar
4 votes
2 answers
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 ...
zono's user avatar
  • 1,473

1
2 3 4 5 6