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
0 answers
22 views

How to build & sign a raw transaction calling a function on an 3r party already deployed contract [duplicate]

My goal is to sign a raw transaction, then broadcast it through the Ftmscan/Etherscan API. I don't want to deal with web3 providers like Infura/Alchemy, if possible. Just write the raw transaction, ...
  • 11
1 vote
0 answers
8 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 ...
  • 297
0 votes
2 answers
30 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
1 vote
1 answer
39 views

Can I sign a transaction several days in advance and give it to a 3rd party so they can execute it whenever they want?

Let's say I create and sign with my keys a transaction to swap USDC for ETH with all the required parameters (both parameters for the swap and tx parameters like gas, etc), but I don't send it. If I ...
1 vote
1 answer
85 views

what is the purpose of a raw tx hex?

Every now and then I'll see someone say just copy/send the raw tx hex, I guess to copy the transaction - like an nft mint - and send it faster instead of writing through the contract? Is this correct? ...
0 votes
1 answer
48 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
2 votes
1 answer
54 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
0 votes
2 answers
318 views

sendSignedTransaction web3js

I see that with sendTransaction you can specify maxFeePerGas. see here However, if you use signTransaction and then sendSignedTransaction you can only send gas. and here. How to send a signed ...
  • 53
0 votes
1 answer
819 views

decode eth raw transaction

Can you decode this transaction: Etherscan tx: ...
  • 1
0 votes
0 answers
11 views

How to sign contract-deployment transaction to deploy later from MetaMask [duplicate]

I'm trying to sign a contract-deployment transaction from MetaMask to get the signature and deploy it later by sending a raw transaction to the network. I created a rawTx: const Tx = require('...
  • 29
0 votes
0 answers
124 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 ...
  • 231
1 vote
2 answers
908 views

How to recover the public key from r, s and v without the private key

I would like to recover the public key (or address) from the r,s and v values of a signed transaction without using a private key. The idea of course being, that I want to use Nick's method to deploy ...
  • 231
0 votes
0 answers
143 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 '...
  • 231
0 votes
0 answers
232 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: "...
  • 101
0 votes
0 answers
254 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
13 views

How to use transactions to built an MPT?

What are the kyes and values in the MPT?
0 votes
0 answers
51 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.
1 vote
1 answer
94 views

What does storageroot look like in a new contract?

Are the keys and values all from the code? will the nonce or balance be the key? why there is a default value of storageroot since there are always somethings real?
0 votes
0 answers
145 views

Why am I getting "cannot unmarshal object into Go value of type string" error when creating a raw transaction?

When I ran the code below on the local blockchain, in ganache, it worked fine but when I connect to Rinkeby I get the error above. var Web3 = require('web3'); var EthereumTransaction = require('...
  • 45
1 vote
1 answer
75 views

What is the exact data-to-be-processed at an ETH transaction signature?

Both at signature creation and at verification the processing shall be done over the same data. Based on the description the following bytes shall be put together in an RLP-encoded form to be ...
  • 21
0 votes
0 answers
74 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
0 answers
6 views

Why HP encode must be even

I don't understand why have to keep it even
1 vote
2 answers
1k views

EIP-1559: Why does geth expect an input list for types.txdata?

I manually composed, signed, and serialized the following raw transaction: ...
  • 31.9k
0 votes
1 answer
147 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 ...
  • 160
2 votes
1 answer
598 views

How to encode empty transaction fields?

I want to RLP-encode a(n unsigned) transaction. Some fields of the transaction can be empty/null/zero. I want to know how they are encoded, though. Let's assume the following transaction fields: ...
  • 31.9k
1 vote
3 answers
924 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 ...
  • 325
0 votes
0 answers
177 views

EthSigner "Chain ID not supported" using Besu node on Rinkeyby

I am attempting to use EthSigner to sign and send transactions to Besu running on Rinkeby. EthSigner is running in a docker container and Besu is running locally using besu --network=rinkeby --rpc-...
1 vote
1 answer
121 views

Transaction never appear on Rinkeby

I've signed a transaction with my private key and then used the sendRawTransaction function to send the transaction on the network, I got the Transaction Hash, but when I use that transaction has in ...
1 vote
1 answer
852 views

Why is value of ECDSA v often neither 27 nor 28?

There are a lot of information out there explaining that in the ECDSA signature the value of v is always either 27 or 28. However there are many transactions which, when decoded using several decoders,...
0 votes
1 answer
486 views

Is it possible to send message in inputData for ERC20 contracts?

There is a transaction on the Rinkeby testnet that has a message encoded in the input data of the transaction https://ropsten.etherscan.io/tx/...
0 votes
2 answers
207 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 ...
0 votes
1 answer
196 views

web3py The method eth_getRawTransactionByHash does not exist/is not available

I am trying to run a simple command w3.eth.get_raw_transaction - this somehow works on the Binance smart chain, but does not work on infura. tx_hash = "...
0 votes
2 answers
2k views

Code example: How to get transaction hash before sending transaction

I know their might be examples online, but they do not really solve my issue. So let us say I have the code below: this.factoryContract = new ethers.Contract( "factoryContractAddress", ...
  • 1,553
1 vote
1 answer
413 views

Are the tx signed then RLP encoded then hashed to be transmitted to the blockchain for miners to mine?

Using the discussion of this link: https://ethereum.org/en/developers/docs/transactions/ It seems obvious that before the transaction is transmitted over the blockchain for miners to mine, the ...
  • 247
0 votes
1 answer
343 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 ...
0 votes
1 answer
2k views

decode ethereum input data

Howsit guys, I am busy going through the mempool and trying to track various transactions and parts of transactions. As a first step I thought I would list transactions and the bits I might need later ...
0 votes
0 answers
283 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 ...
0 votes
2 answers
158 views

ABI derived JSON in the "data" parameter of a raw transaction

This is what I have so far, please correct me if I'm wrong: The data parameter of a transaction is where we tell a deployed smart contract how we want to interact with it. It contains a hexed JSON ...
1 vote
1 answer
2k views

How to create and sign EIP1559 Transaction with Go

i am kinda new to golang and i would appreciate any help. My main purpose is offline signing EIP1559 transactions based on a json using go-ethereum. I have managed to sign legacy transactions ...
  • 31
0 votes
0 answers
138 views

Incorrect return value after calling getTransactionCount

I have only few lines in the code: async function test() { await web3.eth.getTransactionCount('{ WALLET }').then(console.log); } test(); The return values are random: 0, 22 (this is the real value)...
1 vote
1 answer
67 views

How can a customer prove me that he owns a certain address and made a certain transaction?

In my e-shops there may be situations when a customer sent me coins but forgot to add secret order pin code in the memo. In such cases he'd contact me via email and claim that a certain transaction ...
3 votes
1 answer
342 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[...
1 vote
0 answers
49 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 ...
0 votes
1 answer
297 views

Is it safe to publish a raw signed transaction in etherscan?

I'm making a flow of creating a transaction offline, and publish it using external node (etherscan.io). So the flow will go from here: I will use this code to generate a signed raw tx var { ...
  • 196
0 votes
2 answers
2k views

Transfering MATIC tokens on matic network

I'm attempting to transfer MATIC on the matic testnet (mumbai) and submitting the standard ERC20 transfer call (0xa9059cbb) isn't working. Here's my transaction: ...
2 votes
0 answers
21 views

Can you tell how much money a user sent and sender/reciever when it comes to Zero Knowledge Proofs? [duplicate]

As I understand Zero-Knowledge Proofs: You can tell someone sent a certain amount of money You can tell someone received a certain amount of money But you can't cryptographically tie the two together....
  • 121
1 vote
1 answer
110 views

What is wrong with this hand-made raw transaction?

Here are two RLP-encodings of two signings of the same transaction --- for Goerli. Notice how the "Signed by" address is different. This must be implying something is wrong with my signing ...
0 votes
1 answer
1k views

What is transaction memo? [closed]

So I'm following a library containing the file named "ProtcolConstansts.php", there's one line confusing me /** @var int Maximum length of transaction memo */ public const MAX_TX_MEMO_LEN = ...
0 votes
0 answers
108 views

What is the length of an signed transaction ? ( to be sent by method eth_sendRawTransaction )

I have spent days on signing a raw transaction, but all are failed. Now I want to know, what is the length of a raw transaction? and can you give me an real example of a signed transaction? For ...
  • 202
0 votes
1 answer
33 views

Transaction is included into the block but reverted

I'm trying to send USDT token (1.234567 USDT) from my wallet with this code: >>> from web3 import Web3 >>> >>> INFURA_URL = "https://mainnet.infura.io/v3/<infura id&...
  • 79

1
2 3 4 5 6