Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
17 views

How do I sign a transaction using ethereumjs-tx and web3, and Infura API Key?

I am trying to send ETH from external account A to external account B using ethereum-js and web3. I've tried this in local using Ganache and it works fine. The problem is I cannot execute the same ...
0
votes
1answer
14 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
41 views

How to sign a transaction automatically?

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
42 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
30 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
22 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
42 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
20 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 ...
0
votes
0answers
71 views

RangeError: private key length is invalid (In New ETH Transaction)

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
18 views

Can't find broadcasted transaction

I'm trying to broadcast a transaction hex: ...
1
vote
0answers
25 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.
0
votes
0answers
133 views

How to generate a raw transaction and sign it with a private key and output the signed transaction with web3js 1.0? [duplicate]

I'm using a html file to try and test out methods on web3js. I want to be able to transfer tokens but first I need to be able to generate a raw Tx, sign it and output the signed transaction. How ...
1
vote
1answer
36 views

Can somebody (anybody) please help me figure out how to send an ERC-20 token from my wallet to another using web3js 1.0.0?

I've been trying to follow the documentation, but then that mentions things that are not native to Javascript like "Buffer" so I find a thing called ethereumjs-tx to let me use that. My HTML page to ...
0
votes
0answers
19 views

What is a “Buffer” in web3js and why is it required to send a token via a raw transaction over web3?

I am trying to use web3js to send tokens via a simple web interface. From what I can see this requires using a "raw transaction" and sendSignedTransaction() function. In the example in the ...
0
votes
1answer
137 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
19 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
0answers
113 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
71 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
27 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 ...
1
vote
2answers
273 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
1answer
98 views

Ethereum short address attack not fixed

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
274 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
75 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
0answers
178 views

sendSignedTransaction does NOT return a transaction hash

My code is: .then((response) => { let estimatedGas = response[0]; let gasPrice = response[1]; params.gas = estimatedGas; params.gasPrice = gasPrice; params.value -= params....
0
votes
1answer
89 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 ...
0
votes
0answers
12 views

Is it possible to fill in the tx data field when doing a normal transfer? [duplicate]

Is it possible to create a transaction with a data field when doing a normal transfer, i.e. when not calling a contract method. Or is the transaction going to be rejected? I am thinking here of ...
2
votes
1answer
85 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
67 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 ...
2
votes
1answer
93 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
154 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
193 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
106 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
102 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
24 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
139 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
0answers
38 views

Raw transaction is marked as sent via Etherescan, but actually is not

I was signing my transactions in offline for a long time using the one programming code. After the signing I just did a pushTx via Etherscan and everything worked great. This week I have some issues ...
0
votes
1answer
155 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
503 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
1answer
268 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 ...
0
votes
2answers
855 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.
0
votes
0answers
377 views

Transfer tokens to multiple addresses at once

I wrote a web3 js script that takes a vector of addresses and makes a send transaction for each one. I want to send ERC20 tokens. Basically I generate a raw transaction, sign it and send it. var ...
2
votes
1answer
450 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
157 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
894 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
281 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
497 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 ...
0
votes
0answers
37 views

Where should the destination wallet address go in a token transaction?

Assuming the following piece of code var count = web3.eth.getTransactionCount("0x26..."); var abiArray = JSON.parse(fs.readFileSync('mycoin.json', 'utf-8')); var contractAddress = "0x8..."; var ...
1
vote
2answers
238 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) ...
0
votes
1answer
344 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 ...
1
vote
3answers
2k 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 ...