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
2 votes
1 answer
274 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
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
0 answers
14 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 "...
3 votes
1 answer
842 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 ...
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
2k views

decode eth raw transaction

Can you decode this transaction: Etherscan tx: ...
0 votes
0 answers
12 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
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-...
2 votes
0 answers
35 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 ...
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
0 answers
43 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
6k 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 ...
3 votes
1 answer
469 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
498 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 ...
4 votes
2 answers
5k 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 ...
0 votes
2 answers
314 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 ...
2 votes
3 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
1 answer
439 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 ...
3 votes
0 answers
191 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 =...
1 vote
0 answers
24 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
13k 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
271 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
138 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
33 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
18 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
34 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
1k 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
71 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 ...
7 votes
5 answers
4k 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 ...
1 vote
1 answer
57 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 ...
2 votes
3 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 ...
1 vote
1 answer
347 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? ...
51 votes
5 answers
102k 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 ...
2 votes
1 answer
1k views

How to build a simple transaction?

Where is the information on the tx package build protocol? Bitcoin as an example, Bitcoin Wiki - Protocol Documentation: tx Is there an example of serialization for python like this answer to How to ...
0 votes
2 answers
555 views

How to create transactions and delay its broadcast to other nodes

I am creating a project where i need to use my smart contract to add data to the storage but in a programatically delayed way: I am using web3 in my nodejs server, and i want to create the ...
36 votes
4 answers
24k views

What is the ethereum transaction data structure?

I'd like to know the detail of the Ethereum transaction data structure. What data is stored in transaction?
0 votes
2 answers
2k views

Meta transaction with web3

iam just wondering. Are meta transactions not the same like raw transactions, which are signed by the user in frontend and send to a backend, where the transaction gets deployed?
1 vote
1 answer
299 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
1 answer
63 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 ...
0 votes
0 answers
452 views

sendRawTransaction insufficient funds while there is enough balance

Sorry I probably create a topic that was answered multiple times but unfortunately I couldn't find a solution. I'm trying to use RPC server of Geth to send a raw transaction. I've an address with a ...
3 votes
4 answers
9k views

Decode raw transaction

How can I decode a raw transaction using Go / go-ethereum ? There is no method/function to read the raw bytes or the hex into a transaction https://godoc.org/github.com/ethereum/go-ethereum/core/types ...
1 vote
0 answers
320 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: "...
20 votes
4 answers
35k views

How to properly create a raw transaction and sign it using web3 in browser

I want to create and sign a transaction in browser using web3. In order to create a raw transaction, I think I have to do something like this (hopefully you can fill the gaps of my knowledge) var pk =...
0 votes
2 answers
573 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 ...
12 votes
5 answers
16k 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
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: ...

1
2 3 4 5 6