As of May 31, 2023, we have updated our Code of Conduct.

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.

62 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
188 views

How to deploy smart contract with raw transaction

I want to deploy transaction with raw transaction without using hardhat or web3 method. my code looks like this. // constructor params const name = 'My Contract'; const symbol = 'MC'; const maxSupply =...
rrrrssss's user avatar
3 votes
1 answer
464 views

How to get the error message from a failed transaction with web3?

My smart contract has the following piece of code: # check if the election has begun. begin and end time must be in the future and in unix timestamp assert block.timestamp < self.elections[...
Eduardo Furtado's user avatar
3 votes
0 answers
5k 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: ...
Sam's user avatar
  • 41
3 votes
0 answers
1k 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 ...
Jeroen's user avatar
  • 191
3 votes
1 answer
841 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 ...
Kevin Chow's user avatar
3 votes
0 answers
63 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/...
emoniax's user avatar
  • 31
2 votes
0 answers
33 views

Safely and simply withdraw all the balance of ETH from a wallet

I'll have a large of wallets, potentially, from which I'll be needing to withdraw ETH, and tokens, from time to time to the central, admin wallet. By a script, once a week. Instead of having to ...
Kyell's user avatar
  • 91
2 votes
1 answer
267 views

Transaction on Uniswap -- how to find out what pair is being swapped (via web3.js)?

Given a transaction on Uniswap, how to find out what pair is being swapped, and the amount of it? Namely, via web3.js/ethers.js Is there relevant and sufficient information in the fields of a ...
Johny's user avatar
  • 21
2 votes
2 answers
2k views

decode eth raw transaction

Can you decode this transaction: Etherscan tx: ...
ale's user avatar
  • 21
2 votes
0 answers
100 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....
spraff's user avatar
  • 645
2 votes
2 answers
1k 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-...
Julien's user avatar
  • 33
2 votes
0 answers
455 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 ...
G-Virus's user avatar
  • 51
2 votes
0 answers
119 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 ...
UncleJ's user avatar
  • 165
2 votes
1 answer
312 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 ...
John Murphy's user avatar
2 votes
0 answers
60 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) ...
solinooby's user avatar
  • 241
2 votes
0 answers
221 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, ...
Denis's user avatar
  • 121
1 vote
0 answers
43 views

how to to create and broadcast a custom token transaction in bsc with php?

i have custom token on bsc. i use some kornrunner class for signing my transaction and broadcast it but i have some problem here. when i send hex to bsc chain, return txid for me but blockHash & ...
purephp's user avatar
  • 11
1 vote
0 answers
23 views

Library package helps interact with Blockchain on the Ethereum platform (ETH, BSC, Polygon...) more simple and minimized

I am a Blockchain engineer and after 3 years of working with the EVM-platform I used many different libraries such as web3, ethers, ethereumjs-tx,... I realized they are so distributed and complex to ...
Khiem Nguyen's user avatar
1 vote
1 answer
16 views

Please tell me about ethereum transaction structure

I read this page, and I can not understand this line. https://docs.soliditylang.org/en/develop/abi-spec.html#examples 0x0000000000000000000000000000000000000000000000000000000000000060 : the location ...
Daniel Watson's user avatar
1 vote
0 answers
32 views

How to pre-fund wallets to execute smartcontract functions as Custodian for someone else?

Let's say we create multiple wallets (via HD-Wallet) for our users, so they don't have to care for their private keys. The users will only have access to their public wallet address to receive Ether ...
delete's user avatar
  • 317
1 vote
0 answers
319 views

Signing transaction return invalid hash with wallet connect on trust wallet iOS

I'm trying to sign a transaction from my Dapp with wallet connect on trust wallet. Transaction data is something looks like this: { data: "...
BeHappy's user avatar
  • 111
1 vote
0 answers
55 views

Could Insufficient Funds error mean the signature is incorrect? - using golang and raw transactions

I want to sign a transaction "offline" without using crypto.sign. The code looks like the following: unsignedTx := types.NewTransaction(nonce, to, amount, gasLimit, gasPrice, nil) networkID ...
Jorge Alvarado's user avatar
1 vote
0 answers
54 views

Error in signing a raw transaction javascript -- calling a contract + attaching some msg.value

Here, I am trying to call a function(embrace) on a smart contract on Ropsten that needs two parameters and msg.value of 0.01 ether. But it's showing up the error that the msg.value is not sufficient. ...
Yash Shukla's user avatar
1 vote
0 answers
62 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 ...
Mathieu Dutour Sikiric's user avatar
1 vote
0 answers
338 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 ...
Dan Ivan Don's user avatar
1 vote
0 answers
1k 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....
Arvind's user avatar
  • 75
1 vote
0 answers
74 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 ...
Daniel Soe's user avatar
1 vote
0 answers
170 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 ...
fooboo's user avatar
  • 91
1 vote
0 answers
1k 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 ...
Daniel Gretzke's user avatar
1 vote
0 answers
585 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 ...
Jerry Ji's user avatar
  • 361
1 vote
0 answers
114 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"...
user2163865's user avatar
1 vote
0 answers
340 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 ...
Lee Han Kyeol's user avatar
1 vote
0 answers
294 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 ...
Thinh Phan's user avatar
1 vote
0 answers
951 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? $ ...
zono's user avatar
  • 1,473
1 vote
0 answers
263 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(...
matthew's user avatar
  • 579
1 vote
0 answers
688 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
user17314's user avatar
  • 193
1 vote
0 answers
334 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 ...
ivan.jovanovic's user avatar
1 vote
0 answers
171 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, ...
mitchkman's user avatar
  • 225
1 vote
0 answers
197 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 ...
Sebi's user avatar
  • 5,274
0 votes
0 answers
12 views

A moment when an incoming TX has been complitely settled and the coins may be sent out?

I have 2 wallets. I want to send coins from one to the other (1), and from the 2nd one to an external wallet (2). const wallet = get_wallet(); const balance = await provider.getBalance(wallet.address);...
Kyell's user avatar
  • 91
0 votes
1 answer
135 views

How can I get the ABI of a smart contract on the Ethereum blockchain and use it to decode transactions and logs?

If I have the address of a smart contract and I want to fetch its ABI, to decode transactions and logs. 

I know one way is to use Etherscan, but I want to do this operation in bulk, and Etherscan’s ...
Saswata Dutta's user avatar
0 votes
1 answer
31 views

How to match a transaction of incoming tx on blockchain with the one in DB?

I'm working on a TG bot used for exchange of crypto <-> fiat. Each customer gets assigned a single wallet, once, which he is to send coins to, however he wants to, priour to receiving fiat. ...
Kum's user avatar
  • 55
0 votes
2 answers
70 views

How can I download Ethereum transaction list?

I would to some research on how based on the average price one can trade with Ethereum. But I need public transaction prices. How can I get them? The minute-based price list or even hour is ok. I ...
János's user avatar
  • 113
0 votes
1 answer
63 views

Absolute fastest way of sending a transaction on Ethereuem? (in 2022)

What is the absolute fastest way of sending a transaction on Ethereum? (use case: trading microcap coins on Ethereum blockchain which are highly volatile so transaction speed matters) Would it require ...
Zorgo's user avatar
  • 1
0 votes
0 answers
78 views

how to calculate root hash in MPT?

I already know how to build an MPT, but don't know how to compute root hash, especially how to deal with the leaf nodes. I would be grateful for specific examples.
KHJUAF403456ZS3K564WAEF's user avatar
0 votes
0 answers
82 views

When Interacting with a DAPP, how can I see what it is passing to Metamask?

I am looking to intercept calls from Dapp to metamask to be able to see what is inside. I would like to be able to see with which contract am I interacting with and what is the transaction data passed ...
FracaShaw's user avatar
0 votes
1 answer
184 views

How to deploy an EIP1167 proxy contract from an EOA's transaction

I have seen a number of examples where people deploy proxies with other contracts. For example, here. Where can I read / see an example of how to construct and send an EOA's transaction to deploy a ...
Naz's user avatar
  • 180
0 votes
2 answers
312 views

Transaction disappearing

I'm working on developing an ETH wallet, and I ran into some weird behavior. I'm using nethereum and etherscan.io. I'm creating a raw transaction using nethereum and then I'm posting it to the ...
Mihai Dabiste's user avatar
0 votes
1 answer
495 views

sendSignedTransaction vs sendRawTransaction

sendSignedTransaction vs sendRawTransaction: What's the difference? They both require the transaction to be already signed (and therefore hashed). Both work with local keys and not hosted keys. Both ...
FranLegon's user avatar
0 votes
0 answers
390 views

Getting error code -32000 (rlp: value size exceeds available input length) while sending raw matic transaction in C++

I use this repo (as well as this one) to generate raw transaction and send it to the Polygon network through JSON-RPC in C++, but I get the error code -32000 (rlp: value size exceeds available input ...
Ehsan Khodarahmi's user avatar