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
0answers
25 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
15 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
16 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
24 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
40 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
28 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
30 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
20 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
37 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
95 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
118 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
17 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
16 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
62 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
35 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
24 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
147 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
111 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
27 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
1answer
146 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){ ...
0
votes
1answer
152 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
0answers
39 views

How can I pass an unsigned transaction to a smart contract?

I have an unsigned transaction that I got from the 0x API in my web3 app. I would like to pass it as an argument to a function within a smart contract, is this doable? how? I already read about a ...
0
votes
1answer
25 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 ...
2
votes
1answer
737 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
141 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 ...
2
votes
1answer
531 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
141 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
212 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 ...
1
vote
1answer
777 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
154 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
41 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
87 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
296 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
35 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
44 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
147 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 ...
0
votes
1answer
31 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 = ...
3
votes
3answers
4k 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 ...
0
votes
1answer
40 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 ...
0
votes
0answers
50 views

Do send raw transactions consume extra gas as opposed to a send transaction

I would assume the portion of verifying the signature consumes gas. I'm asking this because it seems infura does not handle signed transactions and I have a getBalance Call that is failing. I would ...
2
votes
1answer
115 views

Will nonce increase even when the transaction fail?

Will nonce increase even when the transaction fail? For example, nonce=0 -> tx succeed nonce=1 -> tx succeed nonce=2 -> tx fail Then I want to send a new raw transaction, should I assign ...
0
votes
1answer
68 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?
1
vote
1answer
120 views

Web3 - Assign nonce to smart contract transact

I have a smart contract. I want to execute one of its state modifying functions. This is the code: const result = await smartContractObject.methods .addSomething(_valueToAdd) .send( { gas: '...
2
votes
2answers
485 views

Understanding serialized unsigned raw transaction

I'm currently learning about RLP (ethereum-under-the-hood-part-ii, wiki-eth-rlp) and Ethereum transaction structure, my goal is to create an unsigned raw tx and then sign it. Right now I'm playing ...
2
votes
2answers
2k 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 ...
2
votes
0answers
226 views

Signing a raw transaction, OpenSSL, C++

I'm trying to sign my raw transaction and each time I'm getting a different signature (r, s). Please help me how to sign transactions properly in C++ OpenSSL. I'm trying the following way but ...
0
votes
0answers
268 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 ...
1
vote
0answers
26 views

How to process null TransactionReceipt?

I have some transaction that is sent and from time to time when I call the eth_getTransactionReceipt I get a null. I see esentially two approaches for handling this: I could reiterate the call to ...
0
votes
1answer
119 views

Ethereum Boardcast shows error: non-canonical integer (leading zero bytes) for *big.Int, decoding into (types.Transaction)(types.txdata).S"

I meet with a problem, does someone can help me how to deal with leading zero in raw-transaction? My raw transaction is: ...

1
2 3 4 5