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
3answers
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.
1
vote
1answer
1k views

How to queue up simultaneous signed transactions

I have written a simple API server in NodeJS that uses web3 (version 1 beta 27) to interact with a remote Parity node. The guts of the call is as follows const invoke = async (req, res) => { ...
1
vote
1answer
238 views

Using web3 v1 beta from Nodejs to invoke myMethod.send() gives use Trusted Signer. How do I do that?

Using web3 version 1 beta 27, connected to a remote Parity node that's connected to the Ropsten network. I have created an account with public and private keys, I have sent some test Eth to that ...
1
vote
2answers
876 views

Sign and Verify transaction offchain

I want to sign and verify a transaction offchain, but I can't really find a proper example/documentation online from start to finish that explains the whole process. Can somebody point to some ...
1
vote
1answer
792 views

Why do I get “stack underflow” when executing sendTransaction?

I'm using geth to store data strings into Ropsten. All of them are 128 byte long strings (in fact they are all SHA512 hashes of data files). I just call web3.eth.sendTransaction with the string I ...
1
vote
1answer
22 views

What happens when you submit the same transaction to multiple providers?

Suppose I sign a transaction locally using eth_sendRawTransaction of an implementation (web3js, web3py etc.), and then send the same signed transaction to multiple providers like Infura, Alchemy and a ...
1
vote
1answer
26 views

Why do we have to put 'hex' at the end of this function? Buffer.from('key' , 'hex')

I know that this line of code: Buffer.from('key', 'hex') Converts a string into its binary representation. My question is: what does adding the 'hex' at the end do? I am confused, since the key is ...
1
vote
1answer
970 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 ...
1
vote
1answer
84 views

Web3 - Assign nonce to smart contract transact

I have a smart contract. I want to execute one of its state modifying functions. This is the code: const result = await smartContractObject.methods .addSomething(_valueToAdd) .send( { gas: '...
1
vote
1answer
578 views

Sending a raw transaction

I'm trying to send ether from one address to another. I have a valid generated address and a private key for that. I have a node is working on Linux in fullmode and RPC server listening on the default ...
1
vote
1answer
246 views

How to build a simple transaction?

Where is the information on the tx package build protocol? Bitcoin as an example, Bitcoin Wiki - Protocol Documentation: tx Is there an example of serialization for python like this answer to How to ...
1
vote
1answer
769 views

How to get the value of the transaction?

I am using web3.py but I need help to know the value of the transaction sent. I know that the information is stored in the input but how do I parse the string. I know nothing about ABI. Here is the ...
1
vote
1answer
141 views

Is it possible for a smart contract to relay raw signed transaction

I am rethinking the flow for token transfer and confirmation on the network (ERC20,ERC721...). I am unaware of a way presently to: 1- transfer tokens and 2- trigger a call in different contract, ...
1
vote
1answer
40 views

Can't find broadcasted transaction

I'm trying to broadcast a transaction hex: ...
1
vote
1answer
701 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 ...
1
vote
1answer
173 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 ...
1
vote
2answers
32 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 ...
1
vote
1answer
338 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 ...
1
vote
2answers
2k views

Raw transaction hex from etherscan?

Anyway to get the raw Hex of a transaction from etherscan? I know in Bitcoin you can do this on blockchain info with ?format=hex I want to rebroadcast a tx when it gets dropped from the mempool
1
vote
2answers
512 views

javascript local sign and sendRawTransaction to remote node

In order to use Web3 provided by MyEtherAPI, I need to locally sign a transaction, since myetherapi supports only eth_sendRawTransaction. I found a good source to do so on github, unfortunately it ...
1
vote
1answer
586 views

Deploying a contract web3 error: invalid argument 0: missing 0x prefix for hex data

This is my raw transaction: { "nonce": "0x0", "gasPrice": "0x2540be4000", "gasLimit": "0x493e0", "data": "...
1
vote
1answer
482 views

sending raw transaction unsuccessful

I am developing a light wallet for a private network. I use ethereumjs-accounts for storing accounts locally and ethereum-tx for signing transactions. I have deployed custom token-contract. Here is my ...
1
vote
1answer
253 views

Issue with sendRawTransaction for contract Function calls

I have created a sample token contract (https://www.ethereum.org/token#minimum-viable-token) with balanceOf and transfer functions. When I use eth.sendTransaction to transfer tokens from one account ...
1
vote
1answer
133 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 ...
1
vote
1answer
36 views

Are simultanous transactions possible (basic but potentially very dangerous security concern…most likely impossible…)?

Long story short I am curious how a contract stores variables in memory, so is it possible to spam say 100 transactions at once and the values to be changed afterwards...I am sure I am giving bad ...
1
vote
0answers
26 views

How to process null TransactionReceipt?

I have some transaction that is sent and from time to time when I call the eth_getTransactionReceipt I get a null. I see esentially two approaches for handling this: I could reiterate the call to ...
1
vote
0answers
166 views

My wallet got hacked - I do not know what do to

Someone hacked my eth wallet and when ever I deposit ethereum to the wallet my deposited ethereum is sent directly to his wallet automatically.. Pls how can I stop this issue because my wallet has my ...
1
vote
1answer
26 views

Can anyone with part of the chain (e.g. a light node) read unencrypted transaction data?

I need clarification on the fact that "the blockchain is public and anyone can read it". Given a node which is storing only, say, 1 block from the blockchain, can that node read the transaction data ...
1
vote
0answers
71 views

is there a library to convert transaction receipt to rlp?

I found ethereumjs-tx for transaction to rlp, but i didnt find any libraries to convert transaction reciept to rlp. or is there a way to get rlp format transaction receipt from a service like infura ...
1
vote
0answers
318 views

Transactions from multiple addresses to a single address in Ethereum

We are currently in the process of developing a payment plugin for merchants to accept crypto payments. We are currently generating a unique order for every order which is placed in the merchant store....
1
vote
1answer
370 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
0answers
47 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 ...
1
vote
0answers
123 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
92 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 ...
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 ...
1
vote
0answers
458 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
451 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 ...
1
vote
1answer
760 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
0answers
57 views

Encoding Transaction Arguments

I am building a simple high level library for off chain Ethereum transactions following ethereumjs-tx. From what I read and understand: 1) Transaction parameters such as "nonce","to","gas","gasPrice"...
1
vote
0answers
265 views

How to verify whether a certain transaction is mined by the newest block programmatically?

What I thought I should do I implemented this functionality with Bitcoin Core through zmq support. Keep "my transactions" through zmq's rawtx topic. When received zmq's rawblock, decode the raw ...
1
vote
0answers
252 views

transaction failed - out of gas (How can i return my ethereum and cancel Transaction)

How can i return my ether and cancel this transaction.?? and Ethereum will be return back fund Cryptopia right..?? Transaction link: 0x0991adfb4e316c920f32365b8949e46ae741c055547257e848c6fe92aa308757 ...
1
vote
0answers
756 views

How can I sign raw transaction generated by truffle?

I can create tokens by the following way. However, I want to sign raw transaction generated by truffle so that I don't need to store my private key online. How can I get raw unsigned transaction? $ ...
1
vote
0answers
242 views

Send signed transaction hash to the network

The Parity native signing app takes the hash of a transaction and signs this has with a private key, derived from a seed phrase. Below is the corresponding code from signer.js: let account = getState(...
1
vote
0answers
498 views

geth eth_sendRawTransaction return “invalid sender”

I am not very good at English ! Please forgive me . I use the sendRawTransaction to send a signed transaction . The geth returns an error and I can not find the reason
1
vote
0answers
276 views

Error when executing sendRawTransaction on kovan testnet

I am trying out execute sendRawTransaction on kovan testnet. I'm following the instructions described in https://kovan.etherscan.io/apis#proxy. I'm using a POST request to send the request. This is ...
1
vote
0answers
159 views

Issue contract outside of Geth (using Node.js) returns empty error

I want to issue a contract with constructor parameters, without running a Geth node. Technically, I run a Geth node with a websocket proxy: Light client (Node.js) <-- WebSocket --> Proxy (Node.js, ...
1
vote
0answers
189 views

pyethapp fails to send transactions in a private net

This question is related to this question but I'm using the pyethapp client instead of web3.js. I've created two accounts using pyetahpp: pyethapp account new # 1 pyethapp account new # 2 and then ...
1
vote
1answer
4k views

Lost ETH sent from Bitstamp [closed]

I sent 3.99 eth to address 0x2cd41e1ba0bb66d3c05eaf8ee031e0c1f8866183 This address was provided by coinexchange.io. This is what I see from them now: "Internal Transactions Please note we do not ...
0
votes
2answers
44 views

Can anybody here help me in understanding how transactions and block is getting verified [closed]

Please help me in understanding how transactions are getting verified and also how blocks are getting verified before appending it to the canonical chain.
0
votes
1answer
46 views

How to construct a raw Ethereum transaction from transaction data

Let's say I have the following transaction information: { "jsonrpc":"2.0" "id":0 "result":{ "blockHash":"...