Skip to main content

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
9 views

How are ethereum transaction sent over the wire in Network to peers

I understand how ethereum transactions are signed and proapagated. But while comparing the output of rawTransaction with the wireshark capture of Etherum EOA transaction, I could not map the ...
Richa's user avatar
  • 11
0 votes
1 answer
99 views

Using `types.DynamicFeeTx` for `EIP-1559` in golang creates an invalid raw transaction hex

I am trying to create a raw EIP-1559 transaction using the DynamicFeeTx method since I want to provide a gas tip cap. When I create this raw transaction, sign it and encode it using rlp, I get a raw ...
user131259's user avatar
0 votes
0 answers
19 views

transaction pending so long with high gas, correct nonce

I am making lottery contract, and want to execute set public variable by custom script. my contract code looks like this. // ... address[] public applicants; uint32 numWords = 5; function ...
rrrrssss's user avatar
1 vote
1 answer
43 views

Can you schedule an eth transfer in the future?

Is it possible for person A to schedule an eth transfer to person B 1 week in the future, possibly by offchain signing the transaction? I've seen the concept of offchain signing and am wondering if ...
Nik C's user avatar
  • 11
0 votes
0 answers
91 views

Hardhat MetaMask Error: Transaction decoding is not available for chainId 31337

I created a Real-Estate Decentralized Contract and connected it with Vite-React using ethers.js. I'm using Meta Mask and HardHat local network for Hardhat free Ether. I import 5 wallets of Hardhat to ...
Huzaifa Ahmed's user avatar
2 votes
1 answer
70 views

Error signing transactions with Alchemy using safeSdk.executeTransaction(safeTransaction) from @safe-global/protocol-kit (gnosis-safe)

SOLVED - SOLUTION TO BE POSTED BY ME TOMORROW! Hello builders! One Line summary: safeSdk.executeTransaction(safeTransaction) from @safe-global/protocol-kit does not work for signing transactions, I ...
brayve pancake's user avatar
0 votes
0 answers
138 views

Transaction not found using `cast publish` of Foundry

I wrote this function in go-ethereum to return a raw transaction: func createTx(c *ethclient.Client) (rawTxnHex string) { from := common.HexToAddress("...
Ahmed Rami Berrahal's user avatar
1 vote
1 answer
264 views

Having a signed tx object from mempool in js how can I rebuild raw tx data using ethersjs or web3js?

I have a pending signed tx object received through subscribe on pending transactions in js. I need to build raw tx data to be able to send it directly to the network, but the following code does not ...
Ehsan Khodarahmi's user avatar
0 votes
1 answer
48 views

Sign a transaction with Metamask which will be submitted later using a custom backend

Currently have a custom micro-service that sends & creates transactions depending on the use case which utilizes eth_sendRawTransaction meaning I'll need a web wallet to prompt the users to sign a ...
CoderMan's user avatar
2 votes
1 answer
91 views

How to access funds if the Gnosis Safe website is shutdown?

Imagine that the Gnosis Safe website and services is shutdown, how can users access their funds?
usama's user avatar
  • 21
2 votes
0 answers
87 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
1 vote
0 answers
9 views

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

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
1 vote
0 answers
120 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
3 votes
1 answer
757 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
1 vote
0 answers
47 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
2 answers
878 views

Padding bytes were not empty : while decoding txn input data

I'm decoding the raw input data of an eth transaction. I have the function signature to decode the input with. I'm using the eth_abi library for python. res = eth_abi.decode(['address', 'address'], ...
Saswata Dutta's user avatar
0 votes
1 answer
289 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
58 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
  • 75
1 vote
1 answer
40 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
24 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, ...
Ico's user avatar
  • 11
1 vote
0 answers
57 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
  • 327
0 votes
2 answers
162 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
1 vote
1 answer
92 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 ...
Hiperfly's user avatar
1 vote
1 answer
988 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? ...
ConfusedPorcupine's user avatar
0 votes
1 answer
192 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
2 votes
1 answer
547 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
0 votes
2 answers
926 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 ...
Sequoya's user avatar
  • 63
2 votes
2 answers
3k views

decode eth raw transaction

Can you decode this transaction: Etherscan tx: ...
ale's user avatar
  • 21
1 vote
2 answers
2k 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 ...
Marlo's user avatar
  • 361
1 vote
0 answers
382 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
0 votes
0 answers
158 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
2 votes
1 answer
514 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?
KHJUAF403456ZS3K564WAEF's user avatar
1 vote
1 answer
119 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 ...
baronsz's user avatar
  • 21
0 votes
0 answers
114 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
1 vote
2 answers
2k views

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

I manually composed, signed, and serialized the following raw transaction: ...
q9f's user avatar
  • 33k
0 votes
1 answer
237 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 ...
nz_'s user avatar
  • 180
2 votes
1 answer
1k 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: ...
q9f's user avatar
  • 33k
2 votes
4 answers
3k 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 ...
Bobface's user avatar
  • 385
1 vote
1 answer
152 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 ...
Vipul Prajapati's user avatar
1 vote
1 answer
3k 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,...
Cedric Martin's user avatar
0 votes
1 answer
1k 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/...
Barney Chambers's user avatar
0 votes
2 answers
425 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
1 vote
1 answer
401 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 = "...
T digger888's user avatar
0 votes
2 answers
3k 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", ...
YulePale's user avatar
  • 1,853
1 vote
1 answer
961 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 ...
Anonymous's user avatar
  • 287
0 votes
1 answer
705 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
1 answer
3k 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 ...
street rat's user avatar
0 votes
0 answers
631 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
0 votes
2 answers
401 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 ...
FranLegon's user avatar
1 vote
1 answer
3k 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 ...
Hskl's user avatar
  • 41

1
2 3 4 5 6