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
0answers
6 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 ...
0
votes
0answers
5 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
2answers
31 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", ...
0
votes
1answer
21 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 ...
0
votes
0answers
16 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
1answer
57 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 ...
0
votes
0answers
19 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 ...
0
votes
2answers
30 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 ...
1
vote
1answer
188 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 ...
0
votes
0answers
12 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": "...
0
votes
0answers
25 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)...
1
vote
1answer
32 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 ...
0
votes
0answers
26 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 ...
0
votes
0answers
14 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 ...
2
votes
0answers
140 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
0answers
35 views

Sign ethereum transaction in rust

I'm newbie in Rust. I tried to sign raw transaction in Rust but I stuck in type. Here is my code use ethereum_types::{U256, H160}; let tx = ethereum_tx_sign::RawTransaction { ...
1
vote
0answers
23 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 ...
0
votes
1answer
67 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 { ...
0
votes
1answer
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: ...
0
votes
0answers
50 views

TransactionRevertedWithoutReasonError

var Tx = require('ethereumjs-tx').Transaction; const init1 = async()=> { console.log("async function called ....") var count = await web3.eth.getTransactionCount("...
0
votes
0answers
73 views

Ethereum Transaction not found

Tried to make a Ethereum transaction, was able to sign successfully and when using web3.js sendsignedtransaction to broadcast the signed transaction got a success response (returned the hash of the ...
2
votes
0answers
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....
1
vote
1answer
61 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 ...
0
votes
0answers
195 views

Trying to interact with ganache-cli fork through script

const {ChainId, Fetcher, WETH, Route, Trade, TokenAmount, TradeType, Percent} = require ('@uniswap/sdk'); const ethers = require('ethers'); const chainId = ChainId.MAINNET; how would I specify it to ...
0
votes
1answer
524 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 = ...
0
votes
0answers
31 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 ...
0
votes
1answer
23 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&...
1
vote
1answer
129 views

My signed transaction seems failed, and not broadcasted. why?

I want to do a very simple operation: send eth to another address. Here is what I did: Method 1 . use personal.send_transaction JSON-RPC interface. ( seems deprecated ) I run: curl --request POST --...
1
vote
0answers
41 views

Error in signing a raw transaction javascript -- calling a contract + attaching some msg.value

Here, I am trying to call a function(embrace) on a smart contract on Ropsten that needs two parameters and msg.value of 0.01 ether. But it's showing up the error that the msg.value is not sufficient. ...
1
vote
1answer
46 views

When calling ERC-20 token transfer() method nothing happens

I'm currently using version 1.2.9 and Using Infura Rinkeby as Provider. So basically I'm building a node application with Inbuilt wallet. Now I have successfully Created an Account and Used that ...
1
vote
1answer
353 views

What happens when you submit the same transaction to multiple providers?

Suppose I sign a transaction locally using eth_sendRawTransaction of an implementation (web3js, web3py etc.), and then send the same signed transaction to multiple providers like Infura, Alchemy and a ...
0
votes
2answers
400 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 ...
2
votes
0answers
38 views

Send raw transaction from geth when not synced (exceeds block gas limit)

I have a geth node which is not synced and I want to send eth. > TX={ from: FROM, to: TO, value: VALUE, nonce: NONCE, gas: GAS, gasPrice: GP } > personal.unlockAccount(...) > SIGNED_TX=eth....
0
votes
0answers
657 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){ ...
2
votes
1answer
631 views

How to construct a raw Ethereum transaction from transaction data

Let's say I have the following transaction information: { "jsonrpc":"2.0" "id":0 "result":{ "blockHash":"...
0
votes
1answer
37 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 ...
3
votes
1answer
2k views

Building a raw contract transaction with ethers.js

Can't find any good documentation on creating a raw transaction with contract data in ethers.js. The equivalent in web3 is adding the encodeABI on the data property. Any guidance on this? This isn't ...
0
votes
1answer
224 views

How to get a raw transaction in txpool via JSON RPC?

Is there any way to get a raw transaction via JSON RPC? I know how to get tx_hash from txpool, next I can get data like "from", "to", "gas", "input"... But how to get raw hex string? I mean a raw tx ...
3
votes
1answer
1k 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
1answer
269 views

Signing a raw transaction, wrong R and S values

I am trying to sign a raw transaction in javascript without relying on dependencies like web3, ethereumjs, etc. I am following the python tutorial found here, and porting to JS as I go: https://...
0
votes
1answer
344 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 ...
2
votes
1answer
1k views

Getting the warning Served eth_sendRawTransaction err="already known" on local blockchain with metamask

The problem: I call a smart contract function on my local blockchain, then I confirm the transaction on metamask and finally the transaction is submitted but the transaction does not get mined. On ...
2
votes
2answers
332 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
2answers
45 views

Can anybody here help me in understanding how transactions and block is getting verified [closed]

Please help me in understanding how transactions are getting verified and also how blocks are getting verified before appending it to the canonical chain.
1
vote
1answer
50 views

Are simultanous transactions possible (basic but potentially very dangerous security concern...most likely impossible...)?

Long story short I am curious how a contract stores variables in memory, so is it possible to spam say 100 transactions at once and the values to be changed afterwards...I am sure I am giving bad ...
0
votes
1answer
237 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
1answer
669 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 ...
1
vote
1answer
46 views

Why do we have to put 'hex' at the end of this function? Buffer.from('key' , 'hex')

I know that this line of code: Buffer.from('key', 'hex') Converts a string into its binary representation. My question is: what does adding the 'hex' at the end do? I am confused, since the key is ...
0
votes
0answers
62 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 ...
0
votes
1answer
223 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 ...

1
2 3 4 5