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
4 votes
1 answer
10k views

how to send transaction with web3.py

I'm trying to use web3.py with infura.io to interact with my smartcontract. here is my simple greeter contract code pragma solidity ^0.5.7; contract greeter{ string greeting; function greet(...
ajay's user avatar
  • 239
4 votes
1 answer
3k views

How to make smart contract call using INFURA and NodeJS web3js

I can not understand how I can prepare the transaction to be signed. Because INFURA does not support eth_sendTransaction but only eth_sendRawTransaction (INFURA API which then requires you to prepare ...
kitsune's user avatar
  • 219
4 votes
1 answer
1k views

Transaction Signing & Hashing

I've been looking through EthereumJ, Trying to understand how transaction hashing and signing works. From what I can tell from the code, the signature is created by signing the hash of the RLP ...
Lev Knoblock's user avatar
4 votes
3 answers
684 views

Sign a raw TX without a library?

I am looking for a way to sign a transaction manually by having the necessary input without using any libraries. I haven't found how the signing process exactly works anywhere hence why I am asking ...
Alex Papageorgiou's user avatar
4 votes
1 answer
851 views

How to get the transaction hash once it is mined?

In JavaScript (web3.js), how do I get the transaction-hash corresponding to a function executed in my smart contract?
Paul's user avatar
  • 43
4 votes
1 answer
1k views

Invalid transaction v,r,s values with geth when reading from of signed MEW RLP transaction

I generated a signed transaction with myEtherWallet: ...
ligi's user avatar
  • 1,183
3 votes
1 answer
8k views

Get the balance of an ERC20 token at an Ethereum address [duplicate]

I'm trying to get the balance of a token on an Ethereum address. So let's say my Ethereum address has 1 SNT. I'd like to make a call to get that 1 SNT as a response. I've written many other calls ...
LampShade's user avatar
  • 640
3 votes
2 answers
6k views

How to get the value of the transaction?

I am using web3.py but I need help to know the value of the transaction sent. I know that the information is stored in the input but how do I parse the string. I know nothing about ABI. Here is the ...
strangethingspy's user avatar
3 votes
2 answers
722 views

Tx.origin and msg.sender when sending signed Raw transaction

A client with address A signs a raw transaction, and leaves it all ready to be sent, gives it to the server with address B, which later will send it with sendSignedTransaction(...). What will be the ...
ranchalp's user avatar
  • 540
3 votes
1 answer
6k views

What is chainID? Raw transaction from myEther wallet

So I just ran a function from a contract on Ropsten from myetherwallet.com. It ran fine via metamask, but I was just wondering what chainID was in the rawTx file? { "nonce":"0x2e", "gasPrice":"...
thefett's user avatar
  • 3,910
3 votes
2 answers
534 views

Is possible to send tx by someone else

I mean if I have address A and no ethers on it. And I will construct valid tx & and sign it with my privkey. Can I send this raw signed tx to my friend with address B, and he will push it to the ...
gkucmierz's user avatar
  • 783
3 votes
3 answers
1k views

How do I SendRawTransaction with document hash? [closed]

I'm a total newbie to blockchain and just started with it a week ago. I have already deployed a private Ethereum blockchain and want to use it to ensure document integrity which means that I'll be ...
Syed's user avatar
  • 153
3 votes
2 answers
4k views

How to call a function and to read return values from an external deployed contract address?

I am trying to call a function from deployed contract address using the below format DeployedContractAddress.call(bytes4(keccak256("get(address)")),0xfffff); But when trying to call the get(_address)...
lekshmi's user avatar
  • 447
3 votes
4 answers
9k views

Decode raw transaction

How can I decode a raw transaction using Go / go-ethereum ? There is no method/function to read the raw bytes or the hex into a transaction https://godoc.org/github.com/ethereum/go-ethereum/core/types ...
Books's user avatar
  • 181
3 votes
1 answer
3k 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 ...
Dan's user avatar
  • 187
3 votes
1 answer
2k views

Creating raw transactions for sending ERC721 tokens

I was able to create raw transactions for eth following this article https://medium.com/blockchain-musings/how-to-create-raw-transactions-in-ethereum-part-1-1df91abdba7c However, how can I create raw ...
kosta's user avatar
  • 283
3 votes
3 answers
4k views

How to make transaction using private key and address using web3j

I have a private key and address . Is it possible to make transaction with these parameter using web3j.
Ajit Soman's user avatar
3 votes
1 answer
1k views

Ethereum transaction binary data field

There are a few questions on creating transactions and signing them offline using ethereumjs-tx. What I'm interested in is how do we build the binary data field based on the desired functionality. E.g....
bozzle's user avatar
  • 896
3 votes
1 answer
896 views

Can I use any nonce as long as it is not previously been used?

When creating raw transactions, do I have to increase the nonce always in increments of 1 or can I use any nonce as long as it has not been used before? Are there any specific rules? Could I also go ...
q9f's user avatar
  • 32.9k
3 votes
2 answers
2k views

How to generate a raw transaction with data using Pyethereum

How do you use Pyethereum to generate a raw tx to send to the blockchain? I can do it successfully with a transaction with no data, but when I am attempting to use data, it does not function properly. ...
blockchaindotsol's user avatar
3 votes
1 answer
858 views

Read the timestamp of the transaction via JSON RPC?

How do I retrieve the timestamp of a mined transaction using the JSON RPC?
Nico's user avatar
  • 807
3 votes
1 answer
462 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 ...
tyyen's user avatar
  • 67
3 votes
1 answer
4k views

Sending a raw transaction

I'm trying to send ether from one address to another. I have a valid generated address and a private key for that. I have a node is working on Linux in fullmode and RPC server listening on the default ...
G-Virus's user avatar
  • 51
3 votes
1 answer
2k views

Assign metadata to a transaction

How can I append some (extra) data to a transaction that calls a contract method (with given parameters)? The transaction has only one 'data' field which is used to serialize the method call. If I ...
Lucian Boca's user avatar
3 votes
2 answers
2k views

field size and value range of chainId (EIP-155)

EIP-155 defined a list of chain IDs, e.g. main net is 1 Ropsten is 2. I don't seem to be able to find a definition about its supposed value range and data size. Quoting the yellow paper rule (287) ...
Linmao Song's user avatar
  • 2,357
3 votes
2 answers
684 views

javascript local sign and sendRawTransaction to remote node

In order to use Web3 provided by MyEtherAPI, I need to locally sign a transaction, since myetherapi supports only eth_sendRawTransaction. I found a good source to do so on github, unfortunately it ...
Consy's user avatar
  • 592
3 votes
1 answer
2k views

Send raw transactions using eth-lightwallet

I am creating a wallet app and trying to sign and send raw transactions using eth-lightwallet. function functionCallWallet(){ var fromAddr = document.getElementById('functionCaller').value ...
codestruggle's user avatar
3 votes
1 answer
743 views

How to deploy smart contract with raw transaction

I want to deploy transaction with raw transaction without using hardhat or web3 method. my code looks like this. // constructor params const name = 'My Contract'; const symbol = 'MC'; const maxSupply =...
rrrrssss's user avatar
3 votes
1 answer
2k views

Send signed transaction from nodejs to private SmartContract using webjs in Quorum network not working

Context I have a quorum network mounted following the example of 7nodes. In node 1 I have deployed a smart contract privately, putting the public key of this ("BULeR8JyUWhiuuCMU/HLA0Q5pzkYT+...
victor_reiner's user avatar
3 votes
1 answer
2k views

Can I get the raw transaction using Nethereum?

How do I get a raw transaction for a transaction on the blockchain using web3/Nethereum? An example of a raw transaction can be seen here: https://etherscan.io/getRawTx?tx=...
Thorkil Værge's user avatar
3 votes
1 answer
5k views

serializing byte array for transaction data

I've upgraded from python 2 to python 3 and some code that used to work is now broken. I can't seem to fix it. Any suggestions? Worked in python 2 # Convert hex string to byte array hex_string = ...
Holly Rosenberg's user avatar
3 votes
1 answer
1k views

Raw transaction nonce won't increment until confirmation

I am building transactions manually and have been able to successfully create raw transactions which can be broadcasted to the network. My problem is, that while I can get a nonce from the web3....
James's user avatar
  • 341
3 votes
1 answer
928 views

How can a raw transaction be generated with pyethereum library?

Is it possible to generate a raw transaction using pyethereum library taking inputs wallet json, password, along with transaction parameters? My attempt below, I get the hex, when inputting hex into ...
ablxpp's user avatar
  • 33
3 votes
1 answer
904 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 ...
Kevin Chow's user avatar
3 votes
1 answer
647 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[...
Eduardo Furtado's user avatar
3 votes
0 answers
6k 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: ...
Sam's user avatar
  • 41
3 votes
0 answers
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 ...
Jeroen's user avatar
  • 191
3 votes
0 answers
65 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/...
emoniax's user avatar
  • 31
3 votes
2 answers
72 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) ...
solinooby's user avatar
  • 261
2 votes
1 answer
6k 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":"...
Peteris's user avatar
  • 1,005
2 votes
2 answers
5k views

encode data input of the raw transaction to update an contract function? [duplicate]

I need to update a contract by calling one of their function but I cant use web3.js so I need to send a raw transaction. example of function to be call on the contract: test(address buyer, uint256 ...
Ernane Luis's user avatar
2 votes
2 answers
3k views

decode eth raw transaction

Can you decode this transaction: Etherscan tx: ...
ale's user avatar
  • 21
2 votes
1 answer
673 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://...
Albert Renshaw's user avatar
2 votes
1 answer
826 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: ...
Lei Yao's user avatar
  • 21
2 votes
1 answer
3k views

Not able to decode the input data from transaction using web3j

I am creating transactions using web3j and passing some private data in that transaction. The transaction is also getting mined . I have subscribed to the mined blocks, where I am fetching the ...
Twinkle Shine's user avatar
2 votes
1 answer
2k views

Signing a transaction: What is actually signed? [noob question]

I'm trying to wrap my head around how signing transactions actually works. As I understand ECDSA signatures roughly work like this: There is a magic function, let's call it sign that takes two ...
Chris's user avatar
  • 1,302
2 votes
4 answers
2k views

How to send transaction/call function from server-side?

After an event emits from my smart contract and I hear it server-side, I want to call a certain function in the smart contract and pass it some information to use. I'm wondering how you place a ...
savard's user avatar
  • 448
2 votes
1 answer
1k views

Send transaction with same nonce as another transaction but lower gas price

I want to send a transaction using web3, and I want this transaction to have the same nonce as other transactions - so far so good. The issue comes when I set a lower gasPrice than the other ...
Victor's user avatar
  • 443
2 votes
1 answer
490 views

eth-lightwallet: what is the difference between a functionTx and a valueTx?

In eth-lightwallet, there are two types of Tx creation functions; txutils.valueTx(txObject) and txutils.functionTx(abi, functionName, args, txObject) My guess is; although their inputs are very ...
jeff's user avatar
  • 2,550
2 votes
1 answer
1k views

How to encode empty transaction fields?

I want to RLP-encode a(n unsigned) transaction. Some fields of the transaction can be empty/null/zero. I want to know how they are encoded, though. Let's assume the following transaction fields: ...
q9f's user avatar
  • 32.9k