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
6 votes
3 answers
5k views

How to decode a raw transaction in Python?

I have a raw_tx in hex format which I'm going to broadcast via eth_sendrawtransaction JSON-RPC method. I want to check this raw_tx by decoding it on fields: gas, gas_price, nonce, value, etc. Some ...
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 ...
3 votes
1 answer
631 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[...
0 votes
1 answer
660 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
2 answers
415 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 ...
13 votes
6 answers
18k views

Get raw transaction from hash

I wonder if there is an equivalent to bitcoind's getrawtransaction, i.e., a command to dump a raw transaction in hex format, given its hash id. I am working preferably in geth.
0 votes
1 answer
616 views

Send transaction with locked contract -> Error: insufficient funds for gas * price + value

I'm trying to send a transaction for a token with a locked contract. I'm doing this to find out when this contract will be open. So I'm expecting to get some kind of error like "ERC-20 Token Transfer ...
0 votes
1 answer
2k views

Web3 sendSignedTransaction Transaction cost

I'm new to Ethereum world. I've just manage to create an example that calculates transaction fee and sends a signed transaction without a contract using Web3js library. My issue is that my test ...
0 votes
1 answer
48 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 ...
58 votes
6 answers
118k views

error: replacement transaction underpriced

Im trying to send a raw transaction using web3 to ropsten testnet and Im getting this error: replacement transaction underpriced where sometimes my tx works and sometimes I get this error. my tx ...
3 votes
1 answer
903 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
1 answer
659 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 =...
0 votes
0 answers
15 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 ...
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 ...
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-...
0 votes
1 answer
1k views

ethereumjs-tx Returned error: invalid sender

When i am trying to send signed transaction via ethereumjs-tx. I get this Returned error: invalid sender web3Http.eth.getTransactionCount(myAddress,"pending").then(function(blockcount){ ...
1 vote
1 answer
29 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 ...
1 vote
2 answers
2k views

generate v parameter in ethereum transaction

I'm trying to generate ethereum raw transactions. this is keccak hash of my transaction: f2ad2e2b6f398f76df2f5adacc84e39e926871bd2f82a3055319f8d4f4eeb8ce after signing it with my private key I ...
0 votes
0 answers
82 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 ...
8 votes
6 answers
5k views

Given a RAW Transaction - how to get senders address

Is it possible to get the senders address using golang when all you have is the raw transaction string. I can decode it and get the nonce, hash, to etc as these are all exported functions from the ...
2 votes
4 answers
2k views

How to send transaction/call function from server-side?

After an event emits from my smart contract and I hear it server-side, I want to call a certain function in the smart contract and pass it some information to use. I'm wondering how you place a ...
2 votes
1 answer
64 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 ...
3 votes
1 answer
66 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) ...
2 votes
1 answer
85 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?
0 votes
1 answer
41 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 ...
2 votes
4 answers
2k 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 ...
0 votes
0 answers
130 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("...
1 vote
1 answer
214 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 ...
0 votes
0 answers
128 views

What's the best way to get multi-chain (EVM only) transaction details given a wallet address?

Context I want to display user transactions as shown in Polygon scan (with all the details, logs, decoded input field, etc.) Currently I use Ankr's getTransactionsByAddress to get the transactions for ...
2 votes
1 answer
531 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 ...
0 votes
0 answers
32 views

Explain Validate Transaction Proof Method Parameters

This is url of a transaction on bscscan. I want to simulate this transaction with web3.py. In "Input Data", I don't understand value "...
2 votes
2 answers
3k views

decode eth raw transaction

Can you decode this transaction: Etherscan tx: ...
0 votes
0 answers
14 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);...
2 votes
0 answers
82 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 ...
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 ...
1 vote
0 answers
109 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 & ...
16 votes
4 answers
7k views

How can I easily parse a raw transaction?

In the Bitcoin ecosystem, there are tools like https://blockchain.info/decode-tx to decode a raw transaction. Is there a site that offers the equivalent for Ethereum? I'm looking for an easy way to ...
4 votes
2 answers
6k views

How to create a RawTransaction for contract interaction Web3j

I want to sign a transaction that calls a smart contract function and send it to the Rinkeby network. I found on Web3j documentation the RawTransaction class that supports the methods for the ...
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 ...
8 votes
3 answers
14k views

What is the networkid and chain id of truffle cli?

I am using truffle console to deploy contracts and using Nodejs/web3js to interact with it. I wanted to use ethereumjs-tx for signing transactions, here is the reference link. I am not sure how can I ...
1 vote
2 answers
3k views

Raw transaction hex from etherscan?

Anyway to get the raw Hex of a transaction from etherscan? I know in Bitcoin you can do this on blockchain info with ?format=hex I want to rebroadcast a tx when it gets dropped from the mempool
1 vote
2 answers
792 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'], ...
0 votes
1 answer
260 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
56 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. ...
1 vote
1 answer
37 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
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, ...
1 vote
0 answers
53 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 ...
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: ...
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 ...
0 votes
2 answers
150 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 ...

1
2 3 4 5 6