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.

64 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
58 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 =...
3 votes
1 answer
409 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[...
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: ...
  • 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 ...
  • 191
3 votes
1 answer
830 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 ...
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/...
  • 31
2 votes
1 answer
120 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 ...
  • 21
2 votes
1 answer
1k views

decode eth raw transaction

Can you decode this transaction: Etherscan tx: ...
  • 21
2 votes
3 answers
1k views

Ethers fails to parse raw transaction

I'm trying to parse the raw transaction of this transaction on mainnet: 0x2cd10c5a49963ea7009be96fd4651e4009c719f680096cd8c66c083b48ba5de6. The hex encoding of the raw signed transaction is ...
  • 345
2 votes
0 answers
95 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....
  • 645
2 votes
2 answers
959 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-...
  • 33
2 votes
0 answers
433 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 ...
  • 51
2 votes
0 answers
115 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 ...
  • 165
2 votes
1 answer
309 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
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) ...
  • 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, ...
  • 121
1 vote
0 answers
17 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 ...
1 vote
1 answer
15 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 ...
1 vote
0 answers
18 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 ...
  • 307
1 vote
0 answers
281 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: "...
  • 111
1 vote
0 answers
54 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 ...
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. ...
1 vote
0 answers
60 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
0 answers
326 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
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....
  • 75
1 vote
0 answers
71 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
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 ...
  • 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 ...
1 vote
0 answers
581 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 ...
  • 351
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"...
1 vote
0 answers
337 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
0 answers
292 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
0 answers
949 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,453
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(...
  • 579
1 vote
0 answers
677 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
  • 193
1 vote
0 answers
332 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
0 answers
170 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, ...
  • 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 ...
  • 5,234
0 votes
1 answer
82 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 ...
0 votes
1 answer
28 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. ...
  • 55
0 votes
2 answers
41 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 ...
  • 113
0 votes
1 answer
59 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 ...
  • 1
0 votes
0 answers
164 views

How to send a pre-EIP155 transaction from transaction data

Suppose I have some transaction data that is compatible with pre-EIP155 ethereum (before the spurious dragon hardfork) and therefore also (hopefully ?) backward compatible with all the updated ...
  • 251
0 votes
0 answers
185 views

Deployment of a contract via the sendRawTransaction RPC-call avoiding EIP155 reverts

I want to send a contract deployment transaction just through the raw signed transaction data. Here is what i have done: import { ethers } from "hardhat"; import { Transaction } from '...
  • 251
0 votes
0 answers
286 views

sendSignedTransaction function returns TxHash without any error but the function is not being executed on polygon mainnet

I have deployed contract on Polygon mainnet. I wanted to call a write function using my private key from backend using web3.eth.sendSignedTransaction function, upon calling the function I was getting ...
0 votes
0 answers
16 views

How to use transactions to built an MPT?

What are the kyes and values in the MPT?
0 votes
0 answers
70 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.
0 votes
0 answers
78 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 ...
0 votes
1 answer
168 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 ...
  • 170
0 votes
2 answers
261 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 ...