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
1
vote
1answer
989 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
0answers
1k 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: ...
1
vote
1answer
666 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 ...
0
votes
1answer
224 views

Error “invalid sender” received randomly when broadcasting a hand signed raw transaction

I'm working on a mobile wallet app, where I sign a raw transaction and try to broadcast it through https://etherscan.io/pushTx. The problem is that it sometimes gives me the error "insufficient funds ...
3
votes
1answer
395 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=...
0
votes
1answer
111 views

Facing an issue in transaction signature generation using a C library

I'm trying to generate a signature for a raw transaction using an ECDSA library implemented in C. Here are the transaction parameters: const txParams = { "nonce": "0x05", "gasPrice": "...
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', ...
0
votes
2answers
369 views

How to sign a transaction automatically? [duplicate]

An api will call the smart contract function. It should sign the transaction on its own instead of human intervention. I think raw transaction can work here. Are there any other options? Any help is ...
0
votes
1answer
344 views

generating raw trx and sending it to the network shows “invalid sender” error

I'm trying to make an ethereum raw transaction by php and these libraries: https://github.com/simplito/elliptic-php https://github.com/kornrunner/php-keccak https://github.com/web3p/rlp this is my ...
1
vote
1answer
542 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 ...
2
votes
1answer
215 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: ...
0
votes
2answers
717 views

How to send transaction/call function from server-side?

After an event emits from my smart contract and I hear it server-side, I want to call a certain function in the smart contract and pass it some information to use. I'm wondering how you place a ...
1
vote
0answers
45 views

The problem with rawTransaction

I have a problem with raw Transaction. Using this code to send tokens to another contract, something does not work. The transaction is signed correctly, everything is sent to the network but it does ...
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 = '...
1
vote
1answer
36 views

Can't find broadcasted transaction

I'm trying to broadcast a transaction hex: ...
1
vote
0answers
111 views

How can I sign a transaction using c or c++(arduino) [closed]

I want to create and sign transactions on arduino as offline.But I am not know this.Please help me.
1
vote
1answer
87 views

Transferring an ERC-20 using web3js 1.0.0

I have been trying to follow the web3js documentation, but it mentions things that are not native to Javascript like "Buffer" so I found a library called ethereumjs-tx to let me use that. My HTML ...
2
votes
2answers
461 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)...
1
vote
1answer
850 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 ...
0
votes
1answer
28 views

Issues with transaction signing

I have a desktop app that accepts payment from user in ETH and provides it some service for a certain amount of time depending on the amount. For that the user needs to sign the transaction in the ...
1
vote
1answer
572 views

Generating and signing a transaction - what am I doing wrong?

I am writing a program in c++ for generating and signing transactions. The transaction it generates seem to be invalid. Every time I try to broadcast it, I get an error saying insufficient funds on ...
0
votes
1answer
308 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 ...
0
votes
1answer
37 views

Offline transaction like lightening network on Ethereum [closed]

I want to implement transaction process like lightening network. When 2 people do number of transactions between each other, for instance they did 10 transaction with each other. I want to keep all ...
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 ...
0
votes
0answers
307 views

Ethereum short address attack not fixed [duplicate]

Articles about short address attack: https://vessenes.com/the-erc20-short-address-attack-explained/ and https://blog.golemproject.net/how-to-find-10m-by-just-reading-blockchain-6ae9d39fcd95. The patch ...
1
vote
1answer
886 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 ...
1
vote
0answers
157 views

Getting return values from constant functions with signed transactions using web3 @1.0.27

I have a setup where no accounts exist on a local node and communication with contracts is done by creating raw transactions with Web3 (signed in code and not by user or node). On the contracts there ...
0
votes
1answer
233 views

How to transfer the information of the token when transmitting RPC communication [duplicate]

I have difficulties during the project and ask you questions. Please help me situation Create an ERC20-based token and try to create a transaction. Communication with geth is RPC communication. How ...
2
votes
1answer
317 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 ...
1
vote
1answer
156 views

No luck recovering public key after EIP 155

I'm trying to understand Ethereum transaction signing, but for some reason I'm unable to verify the signature. I have a test account, 0xb2c899884790aa9e256a2d4b2256ca3319e64e32, its public key is ...
4
votes
3answers
652 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 ...
1
vote
0answers
404 views

Raw Transaction: GasPrice, Limit in Hex or Decimal?

When signing a raw Transaction like this: (example taken from Javascript API Docs) var Tx = require('ethereumjs-tx'); var privateKey = new Buffer('e331b6d698.......................23123', 'hex') var ...
1
vote
0answers
425 views

Python web3 Call Contract Not Working

On local ganache testnet, all functions of my contract are already working fine under JS web3. While under Python web3 (4.1.0), calling view function and sending ether to the contract work (so ...
0
votes
2answers
205 views

How to create transactions and delay its broadcast to other nodes

I am creating a project where i need to use my smart contract to add data to the storage but in a programatically delayed way: I am using web3 in my nodejs server, and i want to create the ...
0
votes
1answer
148 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 ...
1
vote
2answers
27 views

What would happen if I would deploy contract as 1st and 129th transaction?

According to how contract address is computed my 1st and 129th transaction as a contract deployment should have the same address. What would happen if I was to deploy them in that order? I already ...
0
votes
2answers
386 views

how to send tokens back from escrow smartcontract to wallet

i am trying to send tokens out from escrow smartcontract to seller's address and for tokens i am using different ERC2O standard smart contract. so i can send like buyer can send from ERC20 ...
0
votes
1answer
414 views

Batch generating raw transactions nonce problem [duplicate]

I'd like to batch generate a large number of transactions for one account and sign them in a more secure environment. Ideally I would create a queue of unsigned transactions (here in my understanding ...
3
votes
3answers
941 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 ...
0
votes
2answers
843 views

A bit confused. How do I send ether using Web3j to an address (Android)

EDIT: I am using android platform I think I'm a bit confused conceptually. I would appreciate it if someone could answer these few questions for me as I'm trying to make an app so that I can be ...
1
vote
2answers
2k views

How to make transaction using private key and address using web3j

I have a private key and address . Is it possible to make transaction with these parameter using web3j.
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....
1
vote
1answer
326 views

How to send raw transaction later?

I have created one raw transaction and I don't intend to send it to execute right away. I will send this raw transaction later, maybe 5 minutes or 5 hours or more. Is this going to work? If not, is ...
3
votes
1answer
3k 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 = ...
2
votes
1answer
632 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 ...
1
vote
2answers
977 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 ...
2
votes
2answers
574 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) ...
1
vote
1answer
700 views

How to properly call getter methods from a specific keypair in web3

In some of my getter methods I'm using msg.sender to deal with access rights. However this just gave me errors, because every single call just comes from the first account of web3.eth.accounts. My ...
2
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 ...
0
votes
1answer
220 views

Can there be multiple transactions with the same nonce and from address?

I am trying to create a state-channel by signing transactions directly, and I was wondering that the nonce might be troubling in this case.