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.

59 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
56 views

A reliable way to disable/block contract creation when using eth_sendRawTransaction

I am looking for a reliable way to disable/block contract creation when using eth_sendRawTransaction via the JSON RPC. Do you think it is possible without changing the source code of geth/parity/...
2
votes
0answers
167 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[...
2
votes
0answers
49 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....
2
votes
2answers
425 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
0answers
280 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 ...
2
votes
0answers
3k views

Error: Returned error: Transaction nonce is too low. Try incrementing the nonce

I receive an error when sending raw transactions. I get the following error message. Error: Returned error: Transaction nonce is too low. Try incrementing the nonce. I get my nonce this way: ...
2
votes
1answer
939 views

what unit is used for the gas/gas limit in the ethereum/types lib?

I'm trying to create a raw transaction using NewTransaction send 1ETH to one transaction, set 21000 gasLimit(I understand this is fixed for any simple transaction) and set the gas price to 51 Gwei. ...
2
votes
0answers
1k views

Ledger Wallet Node JS api signTransaction_async - implementation issue

I tried to implement the Ledger node js api (https://www.npmjs.com/package/ledgerco) in my application. The first part with getAddress_async works, but I’m stuck with the signTransaction_async. I ...
2
votes
1answer
717 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
0answers
53 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
0answers
212 views

Replacement of Bitcoin's 'account' and 'listunspent'

I accept Bitcoin at my website. I use self-developed merchant, based on Bitcoin Core JSON-RPC calls. Now I also want to accept Ethereum. I downloaded geth and as I see it has absolutely different, ...
1
vote
0answers
26 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 ...
1
vote
0answers
43 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
0answers
32 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 ...
1
vote
0answers
277 views

My wallet got hacked - I do not know what do to

Someone hacked my eth wallet and when ever I deposit ethereum to the wallet my deposited ethereum is sent directly to his wallet automatically.. Pls how can I stop this issue because my wallet has my ...
1
vote
0answers
83 views

is there a library to convert transaction receipt to rlp?

I found ethereumjs-tx for transaction to rlp, but i didnt find any libraries to convert transaction reciept to rlp. or is there a way to get rlp format transaction receipt from a service like infura ...
1
vote
0answers
658 views

Transactions from multiple addresses to a single address in Ethereum

We are currently in the process of developing a payment plugin for merchants to accept crypto payments. We are currently generating a unique order for every order which is placed in the merchant store....
1
vote
0answers
60 views

The problem with rawTransaction

I have a problem with raw Transaction. Using this code to send tokens to another contract, something does not work. The transaction is signed correctly, everything is sent to the network but it does ...
1
vote
1answer
208 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 ...
1
vote
0answers
160 views

Getting return values from constant functions with signed transactions using web3 @1.0.27

I have a setup where no accounts exist on a local node and communication with contracts is done by creating raw transactions with Web3 (signed in code and not by user or node). On the contracts there ...
1
vote
0answers
728 views

Raw Transaction: GasPrice, Limit in Hex or Decimal?

When signing a raw Transaction like this: (example taken from Javascript API Docs) var Tx = require('ethereumjs-tx'); var privateKey = new Buffer('e331b6d698.......................23123', 'hex') var ...
1
vote
0answers
527 views

Python web3 Call Contract Not Working

On local ganache testnet, all functions of my contract are already working fine under JS web3. While under Python web3 (4.1.0), calling view function and sending ether to the contract work (so ...
1
vote
0answers
75 views

Encoding Transaction Arguments

I am building a simple high level library for off chain Ethereum transactions following ethereumjs-tx. From what I read and understand: 1) Transaction parameters such as "nonce","to","gas","gasPrice"...
1
vote
0answers
312 views

How to verify whether a certain transaction is mined by the newest block programmatically?

What I thought I should do I implemented this functionality with Bitcoin Core through zmq support. Keep "my transactions" through zmq's rawtx topic. When received zmq's rawblock, decode the raw ...
1
vote
0answers
283 views

transaction failed - out of gas (How can i return my ethereum and cancel Transaction)

How can i return my ether and cancel this transaction.?? and Ethereum will be return back fund Cryptopia right..?? Transaction link: 0x0991adfb4e316c920f32365b8949e46ae741c055547257e848c6fe92aa308757 ...
1
vote
0answers
861 views

How can I sign raw transaction generated by truffle?

I can create tokens by the following way. However, I want to sign raw transaction generated by truffle so that I don't need to store my private key online. How can I get raw unsigned transaction? $ ...
1
vote
0answers
255 views

Send signed transaction hash to the network

The Parity native signing app takes the hash of a transaction and signs this has with a private key, derived from a seed phrase. Below is the corresponding code from signer.js: let account = getState(...
1
vote
0answers
568 views

geth eth_sendRawTransaction return "invalid sender"

I am not very good at English ! Please forgive me . I use the sendRawTransaction to send a signed transaction . The geth returns an error and I can not find the reason
1
vote
0answers
314 views

Error when executing sendRawTransaction on kovan testnet

I am trying out execute sendRawTransaction on kovan testnet. I'm following the instructions described in https://kovan.etherscan.io/apis#proxy. I'm using a POST request to send the request. This is ...
1
vote
0answers
162 views

Issue contract outside of Geth (using Node.js) returns empty error

I want to issue a contract with constructor parameters, without running a Geth node. Technically, I run a Geth node with a websocket proxy: Light client (Node.js) <-- WebSocket --> Proxy (Node.js, ...
1
vote
0answers
193 views

pyethapp fails to send transactions in a private net

This question is related to this question but I'm using the pyethapp client instead of web3.js. I've created two accounts using pyetahpp: pyethapp account new # 1 pyethapp account new # 2 and then ...
0
votes
1answer
12 views

Transaction never appear on Rinkeby

I've signed a transaction with my private key and then used the sendRawTransaction function to send the transaction on the network, I got the Transaction Hash, but when I use that transaction has in ...
0
votes
0answers
30 views

Create a signed transaction on the front-end to be propagated by the back-end

I'm trying to allow users to sign a transacation, which is meant to call a smart contract method, on the front-end, so Metamask would prompt the user to sign message/transaction which would be sent to ...
0
votes
0answers
27 views

how to create script of this Site Ronin wallet

I want to create auto transfer script on to my ronin wallet to take all asset to send to another wallet all incoming asset to my account was transfer to another account but i dont know to create ...
0
votes
0answers
55 views

Understanding serialized signed raw transaction

I try to understand how the raw transaction hex is generated. This website provides an example script: https://besu.hyperledger.org/en/1.2.0/Using-Pantheon/Transactions/Transactions/ My inputs are: ...
0
votes
0answers
30 views

execution reverting when using w3.eth.call(), but going through when using MyContract.functions.myFunction(params).call()

I am calling my Contract in the two following ways: params = {"amount0": int(amount0), "amount1": int(amount1), "token0Flash": token0, "token1Flash": token1} ...
0
votes
2answers
29 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
35 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
0answers
32 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
0answers
33 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
0answers
46 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
68 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)...
0
votes
0answers
49 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
21 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 ...
0
votes
0answers
40 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 { ...
0
votes
0answers
55 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
90 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 ...
0
votes
0answers
212 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
0answers
42 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
0answers
803 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){ ...