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
0 votes
0 answers
51 views

decode eth raw transaction

Can you decode this transaction: Etherscan tx: ...
user avatar
  • 1
0 votes
0 answers
9 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('...
user avatar
  • 27
0 votes
0 answers
26 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 ...
user avatar
  • 147
0 votes
2 answers
113 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 ...
user avatar
  • 147
0 votes
0 answers
24 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 '...
user avatar
  • 147
0 votes
0 answers
33 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: "...
user avatar
  • 101
0 votes
0 answers
48 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 ...
user avatar
0 votes
0 answers
7 views

How to use transactions to built an MPT?

What are the kyes and values in the MPT?
user avatar
0 votes
0 answers
18 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.
user avatar
1 vote
1 answer
17 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?
user avatar
0 votes
0 answers
33 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('...
user avatar
  • 11
1 vote
1 answer
44 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 ...
user avatar
  • 21
0 votes
0 answers
43 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 ...
user avatar
0 votes
0 answers
55 views

Creating a raw transaction hash

How can I create a simple raw transaction (Without signing and signature) and get its hash key in python?
user avatar
  • 1
0 votes
0 answers
3 views

Why HP encode must be even

I don't understand why have to keep it even
user avatar
1 vote
1 answer
338 views

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

I manually composed, signed, and serialized the following raw transaction: ...
user avatar
  • 31.3k
0 votes
1 answer
69 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 ...
user avatar
  • 150
2 votes
1 answer
236 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: ...
user avatar
  • 31.3k
1 vote
3 answers
243 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 ...
user avatar
  • 305
0 votes
0 answers
82 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-...
user avatar
1 vote
1 answer
86 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 ...
user avatar
0 votes
0 answers
114 views

Create a signed transaction on the front-end to be propagated by the back-end

I'm trying to allow users to sign a transacation, which is meant to call a smart contract method, on the front-end, so Metamask would prompt the user to sign message/transaction which would be sent to ...
user avatar
  • 1
1 vote
1 answer
213 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,...
user avatar
0 votes
0 answers
61 views

how to create script of this Site Ronin wallet

I want to create auto transfer script on to my ronin wallet to take all asset to send to another wallet all incoming asset to my account was transfer to another account but i dont know to create ...
user avatar
0 votes
0 answers
182 views

Understanding serialized signed raw transaction

I try to understand how the raw transaction hex is generated. This website provides an example script: https://besu.hyperledger.org/en/1.2.0/Using-Pantheon/Transactions/Transactions/ My inputs are: ...
user avatar
  • 71
0 votes
1 answer
198 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/...
user avatar
0 votes
0 answers
68 views

execution reverting when using w3.eth.call(), but going through when using MyContract.functions.myFunction(params).call()

I am calling my Contract in the two following ways: params = {"amount0": int(amount0), "amount1": int(amount1), "token0Flash": token0, "token1Flash": token1} ...
user avatar
  • 1
0 votes
2 answers
102 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 ...
user avatar
0 votes
0 answers
121 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 = "...
user avatar
0 votes
2 answers
1k 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", ...
user avatar
  • 1,243
1 vote
1 answer
163 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 ...
user avatar
  • 227
0 votes
1 answer
147 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 ...
user avatar
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 ...
user avatar
0 votes
0 answers
142 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 ...
user avatar
0 votes
2 answers
93 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
  • 31
0 votes
0 answers
192 views

Decode call data if i know the signature

If i have the call data of the internal transaction, for example: { "action": { "callType": "call", "from": "...
user avatar
  • 63
0 votes
0 answers
112 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)...
user avatar
1 vote
1 answer
53 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 ...
user avatar
0 votes
0 answers
100 views

How to execute transaction without unlocking account from geth console?

I have a node that has enabled the HTTP-RPC server and that makes unlock an account in that node is not allowed due to security. I already know how to execute a transaction in web3 (web3 python to be ...
user avatar
0 votes
0 answers
37 views

Can cheaper transactions be created by brute forcing RLP-encoded V,R,S values with leading zeros

When I make a raw txn using RLP-encoding I note that the VRS values are not deterministic. Sometimes the R and S values can have leading zeros, these get omitted, thus making the transaction data ...
user avatar
2 votes
0 answers
246 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[...
user avatar
1 vote
0 answers
34 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 ...
user avatar
0 votes
1 answer
210 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 { ...
user avatar
  • 196
0 votes
2 answers
1k 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: ...
user avatar
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....
user avatar
  • 121
1 vote
1 answer
96 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 ...
user avatar
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 = ...
user avatar
0 votes
0 answers
70 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 ...
user avatar
  • 141
0 votes
1 answer
32 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&...
user avatar
  • 79

1
2 3 4 5 6