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
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
0 votes
1 answer
395 views

Is it safe to share my signed transaction publicly?

If someone got hold of my Ethereum signed transaction, is my wallet still safe? Can they extract the raw transaction from the signed transaction to get my private key?
Happy Bird's user avatar
0 votes
2 answers
623 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 ...
Kaki Master Of Time's user avatar
0 votes
1 answer
715 views

How are ethereum transaction prioritized ?

What will make a transaction more likely to win the following smart contract ? function win( address player, unit bet ) constant returns(bool) { if( now < gameStartTime) return false; if(...
Nabil Sham's user avatar
0 votes
2 answers
925 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
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
399 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
0 votes
1 answer
490 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 { ...
bbnn's user avatar
  • 236
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: ...
Kalev Maricq's user avatar
0 votes
1 answer
2k 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 = ...
emppeak's user avatar
0 votes
1 answer
39 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&...
Vassily's user avatar
  • 79
0 votes
2 answers
1k views

How to generate a transaction for ERC20 token?

I'm currently use this package to generate new transaction in ETH: https://github.com/kornrunner/php-ethereum-offline-raw-tx Now I want to generate a transaction for an ERC20 token like Tether. As I ...
Hamid Naghipour's user avatar
0 votes
1 answer
108 views

Do we need to create raw transaction for every UTXO that we use during a transaction? [closed]

Let say I have 2 UTXOs, one has value = 0.0001 and another one has value = 0.00005. Now I want to send 0.00014. SO now I have to use both UTXO to perform transaction. So do I have to create 2 raw ...
Trivedi Yash's user avatar
0 votes
1 answer
1k views

How to decode an Ethereum transaction input of an 0x transaction

The input data is very large. I believe there are multiple functions called. Can I just hash each of the functions in the ABI, get the 6 characters and compare them to the first six characters of the ...
Apothan's user avatar
  • 11
0 votes
1 answer
3k views

Decode transaction inputs with go-ethereum

When making a contract transaction using go-ethereum (golang) how can I decode the transaction inputs. Specifically Given a tx.Data []byte , the contract's contractABI abi.ABI and the method that ...
Nico Vergauwen's user avatar
0 votes
1 answer
405 views

How to know the execution time of transaction when miner execute it

When i send three consecutive transactions to my contract (deployed on ethereum testnet), how can i know the exact time (at milli/micro/nano level) which transaction executed (on miner side) first and ...
Amir Ali's user avatar
  • 447
0 votes
1 answer
776 views

Request user to sign state changing transaction with metamask using Infura and web3js

Can't seem to find the right function to ask the user to sign a transaction via metamask, this is my code so far: const bet = '102500000000000010' const account = '...
Lourenco Bruto da Costa's user avatar
0 votes
1 answer
348 views

How to send raw transaction if I don't have private Key but I know my password?

I am doing raw transaction to send token from one account to another. But I don't have private key of my account but i do have the password. How can I send raw transaction using my password only. Here ...
crypto S.'s user avatar
  • 345
0 votes
2 answers
2k views

How to sign a transaction automatically? [duplicate]

An api will call the smart contract function. It should sign the transaction on its own instead of human intervention. I think raw transaction can work here. Are there any other options? Any help is ...
Shubham Chadokar's user avatar
0 votes
1 answer
289 views

Offline signed contract throws 'exceeds block gas limit'. Why can't I deploy?

I'm trying to deploy a smart contract onto the Ethereum blockchain by signing the transaction on an offline computer and then transferring the byte code to an online system for deployment. Because of ...
kawthuldrok's user avatar
0 votes
2 answers
613 views

how to send tokens back from escrow smartcontract to wallet

i am trying to send tokens out from escrow smartcontract to seller's address and for tokens i am using different ERC2O standard smart contract. so i can send like buyer can send from ERC20 ...
Akshay Pilankar's user avatar
0 votes
1 answer
644 views

Batch generating raw transactions nonce problem [duplicate]

I'd like to batch generate a large number of transactions for one account and sign them in a more secure environment. Ideally I would create a queue of unsigned transactions (here in my understanding ...
jeff's user avatar
  • 603
0 votes
1 answer
266 views

Can there be multiple transactions with the same nonce and from address?

I am trying to create a state-channel by signing transactions directly, and I was wondering that the nonce might be troubling in this case.
ranchalp's user avatar
  • 540
0 votes
1 answer
466 views

Can the ethereum attach message like bitcoin in transaction?

Can the ethereum attach a message in transaction? for example, l want attach the message "hello" in common transaction(not contract create). thanks
Yinglong Zhang's user avatar
0 votes
1 answer
2k views

Call a Contract With Web3JS/ethereumjs-tx

I want to execute a smart contract on the blockchain. As far as I understood this web3js offers two options call: executes the contract method locally without using gas execute: executes the contract ...
Andi Giga's user avatar
  • 439
0 votes
1 answer
1k views

sendRawTransaction not appearing / being submitted to the network

I'm new to Javascript, so bear with me. I've successfully gotten web3.js working in a HTML file, with getBalances working as it should. (I don't want to use Node.js for now) However now I'm stuck at ...
David T's user avatar
  • 316
0 votes
1 answer
94 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
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
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
0 votes
0 answers
148 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 ...
Nishanth Gobi's user avatar
0 votes
1 answer
46 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
0 votes
1 answer
287 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
57 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
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
0 votes
1 answer
189 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
0 votes
0 answers
157 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
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
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
0 votes
2 answers
423 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
0 votes
1 answer
704 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
630 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
0 answers
200 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)...
user3630024's user avatar
0 votes
0 answers
155 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 ...
Siwei's user avatar
  • 322
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){ ...
Cryptoineer's user avatar
0 votes
1 answer
643 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 ...
Arnas Pecelis's user avatar
0 votes
0 answers
182 views

creating transaction with dynamic arguments (objects/variables)

My scenario is to make transactions (deploy contract, calling its functions, etc.) with arguments (which are dynamically created/extracted from some json abi file). For example; function ...
Amir Ali's user avatar
  • 447
0 votes
1 answer
163 views

Can I call a contract function in the "data" element via web3, especially when I am using conversion to bytes?

In other words, say In Python I have something like that: signed_txn = w3.eth.account.signTransaction(dict( nonce=w3.eth.getTransactionCount('0x0000000000000000000000000000000'), gasPrice = ...
Robert Ggg's user avatar
0 votes
1 answer
167 views

Is it possible to partially signed tx without nonce and then a third-party proxy will fill the right nonce?

As part of building managing nonce mechanism, we thinking about several approaches for issue tx from frontEnd without the need to wait till it mined before sending the next tx. Is it possible to ...
user3652172's user avatar