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.

0
votes
0answers
28 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
16 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
0answers
9 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
vote
1answer
66 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 ...
1
vote
0answers
39 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 ...
0
votes
1answer
29 views

ecrecover not giving back the adress of the sender

I am trying to understand how eliptic curve work and when i try to get the sender of this transaction: https://etherscan.io/tx/0x14a298c1eea89f42285948b7d51eeac2876ca7406c9784b9b90dd3591d156d64 ( ...
1
vote
1answer
57 views

How to build a simple transaction?

Where is the information on the tx package build protocol? Bitcoin as an example, Bitcoin Wiki - Protocol Documentation: tx Is there an example of serialization for python like this answer to How to ...
0
votes
1answer
39 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(...
1
vote
1answer
16 views

Can anyone with part of the chain (e.g. a light node) read unencrypted transaction data?

I need clarification on the fact that "the blockchain is public and anyone can read it". Given a node which is storing only, say, 1 block from the blockchain, can that node read the transaction data ...
0
votes
1answer
26 views

Request user to sign state changing transaction with metamask using Infura and web3js

Can't seem to find the right function to ask the user to sign a transaction via metamask, this is my code so far: const bet = '102500000000000010' const account = '...
0
votes
2answers
75 views

Unable to make a transaction with Data using Java api ethSendRawTransaction

I am trying to make a transaction between two different accounts using Java. It works perfectly fine as long as I am not using "Data" parameter. My intent is not to call a smart contract but to make ...
1
vote
1answer
104 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 ...
0
votes
0answers
12 views

Which kind of error does LOG15 in Ethereum-geth client is about? i always encounter it when When unmarshalling msg.data()

I marshal a struct locally, and then send the marshaled data to ethereum geth client. But when i unmarshal it in geth , i always meet a log15 error. I have explored it for a long time, but didn't ...
0
votes
0answers
50 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": [ ...
1
vote
1answer
60 views

Is it possible for a smart contract to relay raw signed transaction

I am rethinking the flow for token transfer and confirmation on the network (ERC20,ERC721...). I am unaware of a way presently to: 1- transfer tokens and 2- trigger a call in different contract, ...
1
vote
0answers
35 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 ...
0
votes
0answers
45 views

Spending from an Ethereum Private Key Paper Wallet

I have an Ethereum paper wallet with the private key. I want to only spend a fraction of the ethereum on this private key. I also have a few USDC tokens on it that I want to also spend. How can I ...
0
votes
0answers
44 views

eth_sendTransaction doesn't exist when using Infura node

I'm trying to sign a transaction offline and then send it using sendRawTransaction since I'm connected to an Infura node. My raw transaction looks like this let rawTransaction = { "from":...
2
votes
1answer
328 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 ...
0
votes
1answer
43 views

How to send raw transaction if I don't have private Key but I know my password?

I am doing raw transaction to send token from one account to another. But I don't have private key of my account but i do have the password. How can I send raw transaction using my password only. Here ...
1
vote
0answers
103 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....
0
votes
1answer
74 views

web3.py locally signed transaction rejected because of invalid nonce

I'm trying to sign locally a transaction to a smart contract method using web3.py. I'm using ganache and there is one interesting issue when I send a transaction as the contract deployer everything ...
0
votes
2answers
354 views

ropsten: insufficient funds for gas * price + value using web3

Im using "web3": "^1.0.0-beta.37" And I want to understand How can I send rawTransaction My code is: const pk = 'xxxxxxx'; const rawTransaction = { "to": "...
1
vote
1answer
211 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 ...
1
vote
1answer
228 views

Invalid sender when sending Raw Transaction, signed w/ ethereum-tx on PHP

I am using PHP and ethereum-tx library https://github.com/web3p/ethereum-tx to sign transactions but when trying to send them to the node I got an "invalid sender" error. Besides, exactly the same ...
0
votes
1answer
288 views

Meta transaction with web3

iam just wondering. Are meta transactions not the same like raw transactions, which are signed by the user in frontend and send to a backend, where the transaction gets deployed?
2
votes
1answer
397 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 ...
1
vote
1answer
477 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+...
1
vote
0answers
397 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: ...
1
vote
1answer
266 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 ...
0
votes
1answer
165 views

Error “invalid sender” received randomly when broadcasting a hand signed raw transaction

I'm working on a mobile wallet app, where I sign a raw transaction and try to broadcast it through https://etherscan.io/pushTx. The problem is that it sometimes gives me the error "insufficient funds ...
3
votes
1answer
198 views

Can I get the raw transaction using Nethereum?

How do I get a raw transaction using web3/Nethereum? An example of a raw transaction can be seen here: https://etherscan.io/getRawTx?tx=...
0
votes
1answer
48 views

Facing an issue in transaction signature generation using a C library

I'm trying to generate a signature for a raw transaction using an ECDSA library implemented in C. Here are the transaction parameters: const txParams = { "nonce": "0x05", "gasPrice": "...
0
votes
1answer
69 views

transaction value does not match signed transaction params in ethereumJS-TX

I sign this transaction with Ethereumjs-tx: { nonce: 8, gasPrice: 20, gasLimit: 25000, to: '0x45cc01d4b9ad49b81527d5b6629da8664bb525d3', value: 1000000, data: '0x00', ...
0
votes
2answers
238 views

How to sign a transaction automatically? [duplicate]

An api will call the smart contract function. It should sign the transaction on its own instead of human intervention. I think raw transaction can work here. Are there any other options? Any help is ...
0
votes
1answer
262 views

generating raw trx and sending it to the network shows “invalid sender” error

I'm trying to make an ethereum raw transaction by php and these libraries: https://github.com/simplito/elliptic-php https://github.com/kornrunner/php-keccak https://github.com/web3p/rlp this is my ...
1
vote
1answer
289 views

generate v parameter in ethereum transaction

I'm trying to generate ethereum raw transactions. this is keccak hash of my transaction: f2ad2e2b6f398f76df2f5adacc84e39e926871bd2f82a3055319f8d4f4eeb8ce after signing it with my private key I ...
2
votes
1answer
64 views

How can I find out what had been sent in the Hex Data?

I am using MetaMask to send a token from one account to another. In two different transactions, one with Optional Hex data and the other one doesn't has. When I got geth and use the follow commands: ...
0
votes
2answers
433 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 ...
1
vote
0answers
37 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 ...
4
votes
2answers
758 views

RangeError: private key length is invalid (In New ETH Transaction pragmatically)

Followed this Ans Ans1 and Ans2 but no solution got. const web3 = new Web3('https://ropsten.infura.io/v3/3c52917848e945229c0d33d632b10490'); const account1 = '...
1
vote
1answer
27 views

Can't find broadcasted transaction

I'm trying to broadcast a transaction hex: ...
1
vote
0answers
76 views

How can I sign a transaction using c or c++(arduino) [closed]

I want to create and sign transactions on arduino as offline.But I am not know this.Please help me.
0
votes
0answers
432 views

How to generate a raw transaction and sign it with a private key and output the signed transaction with web3js 1.0? [duplicate]

I'm using a html file to try and test out methods on web3js. I want to be able to transfer tokens but first I need to be able to generate a raw Tx, sign it and output the signed transaction. How ...
1
vote
1answer
65 views

Can somebody (anybody) please help me figure out how to send an ERC-20 token from my wallet to another using web3js 1.0.0?

I've been trying to follow the documentation, but then that mentions things that are not native to Javascript like "Buffer" so I find a thing called ethereumjs-tx to let me use that. My HTML page to ...
0
votes
0answers
114 views

What is a “Buffer” in web3js and why is it required to send a token via a raw transaction over web3?

I am trying to use web3js to send tokens via a simple web interface. From what I can see this requires using a "raw transaction" and sendSignedTransaction() function. In the example in the ...
1
vote
2answers
224 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)...
1
vote
1answer
606 views

Nethereum // Infura/RPCclients

I am having a heck of a time getting transactions to post on mainnet. The issue is not my wallet balance or gas related. A balance lookup on the same contract works correctly.. However, i cannot get ...
0
votes
1answer
27 views

Issues with transaction signing

I have a desktop app that accepts payment from user in ETH and provides it some service for a certain amount of time depending on the amount. For that the user needs to sign the transaction in the ...
1
vote
1answer
392 views

Generating and signing a transaction - what am I doing wrong?

I am writing a program in c++ for generating and signing transactions. The transaction it generates seem to be invalid. Every time I try to broadcast it, I get an error saying insufficient funds on ...