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.

43 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
16 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
1answer
95 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 ...
2
votes
2answers
68 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
166 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
2k 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
590 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
945 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
641 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
47 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
201 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

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
166 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
71 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
317 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
47 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
92 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
157 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
458 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
451 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
57 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
265 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
252 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
756 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
242 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
498 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
276 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
159 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
189 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
32 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
0answers
24 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
358 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 ...
0
votes
1answer
32 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
142 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 ...
0
votes
0answers
30 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
26 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 = ...
0
votes
1answer
27 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
43 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 ...
0
votes
0answers
200 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 ...
0
votes
0answers
162 views

How do I send a transaction to a smart contract?

I need to build this transaction and send it to the blockchain how do I do it ? I always used ethsendrawTransaction just to send eth but never I never built this type of transaction: { "data": [ ...
0
votes
1answer
1k 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
0answers
263 views

Is it possible to serialize transaction data on geth or PHP?

I need ethereumjs-tx in PHP. Seems there is no PHP library so far. I found only JS and Python Library. Is it possible to serialize transaction data on geth? If not, I will use nodejs or create the PHP ...
0
votes
0answers
103 views

Who pays for the gas when i send a transaction containing a signed transaction of another user

I would love it if there was a way for me to pay the gas costs for a signed transaction I receive and then relay to a node. So I am the submitting the transaction, but its data contains a signed raw ...