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
3
votes
3answers
283 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 ...
3
votes
1answer
2k views

Send raw transactions using eth-lightwallet

I am creating a wallet app and trying to sign and send raw transactions using eth-lightwallet. function functionCallWallet(){ var fromAddr = document.getElementById('functionCaller').value ...
3
votes
2answers
736 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 ...
3
votes
1answer
517 views

Can I get the raw transaction using Nethereum?

How do I get a raw transaction for a transaction on the blockchain using web3/Nethereum? An example of a raw transaction can be seen here: https://etherscan.io/getRawTx?tx=...
3
votes
1answer
4k views

serializing byte array for transaction data

I've upgraded from python 2 to python 3 and some code that used to work is now broken. I can't seem to fix it. Any suggestions? Worked in python 2 # Convert hex string to byte array hex_string = ...
3
votes
1answer
969 views

Raw transaction nonce won't increment until confirmation

I am building transactions manually and have been able to successfully create raw transactions which can be broadcasted to the network. My problem is, that while I can get a nonce from the web3....
3
votes
1answer
831 views

How can a raw transaction be generated with pyethereum library?

Is it possible to generate a raw transaction using pyethereum library taking inputs wallet json, password, along with transaction parameters? My attempt below, I get the hex, when inputting hex into ...
3
votes
0answers
56 views

A reliable way to disable/block contract creation when using eth_sendRawTransaction

I am looking for a reliable way to disable/block contract creation when using eth_sendRawTransaction via the JSON RPC. Do you think it is possible without changing the source code of geth/parity/...
2
votes
2answers
345 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 ...
2
votes
2answers
292 views

Tx.origin and msg.sender when sending signed Raw transaction

A client with address A signs a raw transaction, and leaves it all ready to be sent, gives it to the server with address B, which later will send it with sendSignedTransaction(...). What will be the ...
2
votes
2answers
1k 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 ...
2
votes
1answer
682 views

Not able to decode the input data from transaction using web3j

I am creating transactions using web3j and passing some private data in that transaction. The transaction is also getting mined . I have subscribed to the mined blocks, where I am fetching the ...
2
votes
1answer
825 views

Signing a transaction: What is actually signed? [noob question]

I'm trying to wrap my head around how signing transactions actually works. As I understand ECDSA signatures roughly work like this: There is a magic function, let's call it sign that takes two ...
2
votes
2answers
636 views

How to call a function and to read return values from an external deployed contract address?

I am trying to call a function from deployed contract address using the below format DeployedContractAddress.call(bytes4(keccak256("get(address)")),0xfffff); But when trying to call the get(_address)...
2
votes
1answer
349 views

Transaction Signing & Hashing

I've been looking through EthereumJ, Trying to understand how transaction hashing and signing works. From what I can tell from the code, the signature is created by signing the hash of the RLP ...
2
votes
1answer
727 views

Send transaction with same nonce as another transaction but lower gas price

I want to send a transaction using web3, and I want this transaction to have the same nonce as other transactions - so far so good. The issue comes when I set a lower gasPrice than the other ...
2
votes
1answer
424 views

eth-lightwallet: what is the difference between a functionTx and a valueTx?

In eth-lightwallet, there are two types of Tx creation functions; txutils.valueTx(txObject) and txutils.functionTx(abi, functionName, args, txObject) My guess is; although their inputs are very ...
2
votes
1answer
1k views

Ethereum transaction binary data field

There are a few questions on creating transactions and signing them offline using ethereumjs-tx. What I'm interested in is how do we build the binary data field based on the desired functionality. E.g....
2
votes
1answer
221 views

Can I use any nonce as long as it is not previously been used?

When creating raw transactions, do I have to increase the nonce always in increments of 1 or can I use any nonce as long as it has not been used before? Are there any specific rules? Could I also go ...
2
votes
1answer
743 views

Creating raw transactions for sending ERC721 tokens

I was able to create raw transactions for eth following this article https://medium.com/blockchain-musings/how-to-create-raw-transactions-in-ethereum-part-1-1df91abdba7c However, how can I create raw ...
2
votes
1answer
360 views

How can I find out what had been sent in the Hex Data?

I am using MetaMask to send a token from one account to another. In two different transactions, one with Optional Hex data and the other one doesn't has. When I got geth and use the follow commands: ...
2
votes
2answers
1k 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 ...
2
votes
1answer
2k 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....
2
votes
1answer
99 views

Reading Function Calls Transactions

I am working on a small project designed to show and teach people how the blockchain and smart contracts operate. In order to do so I had in mind to showcase the transactions on https://testnet....
2
votes
1answer
97 views

Will nonce increase even when the transaction fail?

Will nonce increase even when the transaction fail? For example, nonce=0 -> tx succeed nonce=1 -> tx succeed nonce=2 -> tx fail Then I want to send a new raw transaction, should I assign ...
2
votes
1answer
1k views

Send signed transaction from nodejs to private SmartContract using webjs in Quorum network not working

Context I have a quorum network mounted following the example of 7nodes. In node 1 I have deployed a smart contract privately, putting the public key of this ("BULeR8JyUWhiuuCMU/HLA0Q5pzkYT+...
2
votes
1answer
346 views

Assign metadata to a transaction

How can I append some (extra) data to a transaction that calls a contract method (with given parameters)? The transaction has only one 'data' field which is used to serialize the method call. If I ...
2
votes
2answers
598 views

field size and value range of chainId (EIP-155)

EIP-155 defined a list of chain IDs, e.g. main net is 1 Ropsten is 2. I don't seem to be able to find a definition about its supposed value range and data size. Quoting the yellow paper rule (287) ...
2
votes
2answers
860 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?
2
votes
1answer
138 views

binary encoding of nonce 0

Although probably not an issue in practice, I'm confused how nonce of zero is encoded in transactions. According to RLP doc, \x00 should be encoded as \x00. But the source code of pyethereum shows ...
2
votes
2answers
3k 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
16 views

Send raw transaction from geth when not synced (exceeds block gas limit)

I have a geth node which is not synced and I want to send eth. > TX={ from: FROM, to: TO, value: VALUE, nonce: NONCE, gas: GAS, gasPrice: GP } > personal.unlockAccount(...) > SIGNED_TX=eth....
2
votes
1answer
95 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 ...
2
votes
2answers
68 views

How to decode a transaction to verify its signature in Javascript?

I noticed that it's possible to sign a transaction with a wrong private key. I took the following example found at https://github.com/ethereumjs/ethereumjs-tx const EthereumTx = require('ethereumjs-...
2
votes
0answers
167 views

Signing a raw transaction, OpenSSL, C++

I'm trying to sign my raw transaction and each time I'm getting a different signature (r, s). Please help me how to sign transactions properly in C++ OpenSSL. I'm trying the following way but ...
2
votes
0answers
2k views

Error: Returned error: Transaction nonce is too low. Try incrementing the nonce

I receive an error when sending raw transactions. I get the following error message. Error: Returned error: Transaction nonce is too low. Try incrementing the nonce. I get my nonce this way: ...
2
votes
1answer
590 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. ...
2
votes
0answers
945 views

Ledger Wallet Node JS api signTransaction_async - implementation issue

I tried to implement the Ledger node js api (https://www.npmjs.com/package/ledgerco) in my application. The first part with getAddress_async works, but I’m stuck with the signTransaction_async. I ...
2
votes
2answers
258 views

broadcasting signed transaction from multiple endpoints

I want my transaction to broadcast fast to network. Will it help if I broadcast it from multiple publick APIs? etherscan.io/pushTX + MyEtherWalet Will it help transaction to be included in nearest ...
2
votes
1answer
641 views

send a tx, json rpc, golang

I tried to send a tx via geth json rpc using the following code. But the geth rpc server response with "Invalid sender". I also tried HomesteadSigner. In that case there is no error received, but I ...
2
votes
0answers
47 views

What is the location of the data part of a parameter?

In this doc : https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI Given this representation of the contract contract Foo { function bar(fixed[2] xy) {} function baz(uint32 x, bool y) ...
2
votes
0answers
201 views

Replacement of Bitcoin's 'account' and 'listunspent'

I accept Bitcoin at my website. I use self-developed merchant, based on Bitcoin Core JSON-RPC calls. Now I also want to accept Ethereum. I downloaded geth and as I see it has absolutely different, ...
1
vote
2answers
1k views

How to call my contract's function using sendRawTransaction?

I am trying to call my contract's method using sendRawTransaction. I have a function in my contract updateReading(address consumerAddress, uint32 consumerMeterId, uint64 ...
1
vote
2answers
3k views

encode data input of the raw transaction to update an contract function? [duplicate]

I need to update a contract by calling one of their function but I cant use web3.js so I need to send a raw transaction. example of function to be call on the contract: test(address buyer, uint256 ...
1
vote
3answers
2k views

ropsten: insufficient funds for gas * price + value using web3

Im using "web3": "^1.0.0-beta.37" And I want to understand How can I send rawTransaction My code is: const pk = 'xxxxxxx'; const rawTransaction = { "to": "...
1
vote
1answer
49 views

Signing a raw transaction, wrong R and S values

I am trying to sign a raw transaction in javascript without relying on dependencies like web3, ethereumjs, etc. I am following the python tutorial found here, and porting to JS as I go: https://...
1
vote
1answer
602 views

Invalid sender when sending Raw Transaction, signed w/ ethereum-tx on PHP

I am using PHP and ethereum-tx library https://github.com/web3p/ethereum-tx to sign transactions but when trying to send them to the node I got an "invalid sender" error. Besides, exactly the same ...
1
vote
1answer
617 views

generate v parameter in ethereum transaction

I'm trying to generate ethereum raw transactions. this is keccak hash of my transaction: f2ad2e2b6f398f76df2f5adacc84e39e926871bd2f82a3055319f8d4f4eeb8ce after signing it with my private key I ...
1
vote
1answer
937 views

Nethereum // Infura/RPCclients

I am having a heck of a time getting transactions to post on mainnet. The issue is not my wallet balance or gas related. A balance lookup on the same contract works correctly.. However, i cannot get ...
1
vote
1answer
949 views

JSONRPC error on sendSignedTransaction

I run ganache, truffle and metmask. If I run the code below I get an error on the this.web3.eth.sendSignedTransaction() function: EDIT: changed my code to the following.. Error remained the same ...