Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [sendrawtransaction]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
34 views

Can you schedule an eth transfer in the future?

Is it possible for person A to schedule an eth transfer to person B 1 week in the future, possibly by offchain signing the transaction? I've seen the concept of offchain signing and am wondering if ...
Nik C's user avatar
  • 11
1 vote
1 answer
245 views

Having a signed tx object from mempool in js how can I rebuild raw tx data using ethersjs or web3js?

I have a pending signed tx object received through subscribe on pending transactions in js. I need to build raw tx data to be able to send it directly to the network, but the following code does not ...
Ehsan Khodarahmi's user avatar
1 vote
1 answer
177 views

Transfer Token BSC Always Return Error

I use web3 php to connnect to BSC and it is work, unless one things that is to send BEP20 token to others wallet. I created some function like Get Balance of BNB, get Balance of BEP20 also transfer ...
Cloud Mining's user avatar
2 votes
2 answers
150 views

Sending TX in Ethereum won't return a response

I'm trying to send ETH in goerli by this code let provider = ethers.getDefaultProvider(process.env.ETHEREUM_NETWORK); let wallet = new ethers.Wallet(prK, provider); wallet.sendTransaction({ to: ...
Camila326's user avatar
  • 115
0 votes
1 answer
83 views

Can i send a signed raw txn to a smart contract without using buildTransaction()?

I'm trying to use 0x protocol on goerli and gathering the transaction data from their json response, which contains all the necessary information needed for the swap. Is it possible to successfully ...
brodiee's user avatar
1 vote
1 answer
88 views

Can I sign a transaction several days in advance and give it to a 3rd party so they can execute it whenever they want?

Let's say I create and sign with my keys a transaction to swap USDC for ETH with all the required parameters (both parameters for the swap and tx parameters like gas, etc), but I don't send it. If I ...
Hiperfly's user avatar
1 vote
2 answers
2k views

EIP-1559: Why does geth expect an input list for types.txdata?

I manually composed, signed, and serialized the following raw transaction: ...
q9f's user avatar
  • 32.9k
0 votes
1 answer
1k views

Web3 Python Value Error Transaction Type not supported

I'm trying to send a signed transaction from an interaction with a smart contract but it all falls apart when sending the raw transaction. My code is as follows import Globalvariables as thg ...
Pablo García's user avatar
1 vote
2 answers
4k views

ERC20 transaction underpriced

I am trying to transfer an ERC20 Token with the following code which is basically taken from here. Running it causes the following Error message: UnhandledPromiseRejectionWarning: Error: Returned ...
Nicolas Freitag's user avatar
0 votes
0 answers
25 views

How to force sending a transaction calling method on a contract even if it reverts? [duplicate]

I'm quite struggling with this from all day. I need to send a transaction on blockchain even if it says it will revert, but I can't understand how to do it since there's some kind of protection behind ...
MrSaulman's user avatar
1 vote
1 answer
2k views

Unable to send_raw_transaction using Web3.py on Fantom Network

I am currently trying to simply send FTM from one wallet to another on Fantom mainnet, albeit encountering a Value error 'rlp: expected List' as listed below. ftm = Web3(Web3.HTTPProvider('https://...
MSalty's user avatar
  • 123
0 votes
2 answers
421 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 ...
Mihai Dabiste's user avatar
0 votes
1 answer
686 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 ...
FranLegon's user avatar
0 votes
0 answers
611 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 ...
Ehsan Khodarahmi's user avatar
1 vote
1 answer
1k views

Raw transaction with web3j, tx hash is always null

I'm trying to send raw transaction with Web3j, to call a smart contract function. I try to set very high values for gas to avoid problems with it. But I always get a null tx hash. What is wrong in my ...
avl's user avatar
  • 31
0 votes
1 answer
486 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 { ...
bbnn's user avatar
  • 236
0 votes
0 answers
27 views

how can show block create information. when i make a contract creation

How can show below information at windows command console? When i use web3 to make contract creation. i browse some website. Some website tell me to use sendRawTransaction. But the sendRawTransaction ...
tytom2003's user avatar
0 votes
0 answers
155 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 ...
Siwei's user avatar
  • 322
2 votes
0 answers
116 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....
spraff's user avatar
  • 645
0 votes
0 answers
87 views

How to create a multisg account on Geth server?

As you know, multisig wallets are more secure approach in financial cryptocurrency businesses. In my researches, I found out how can I create a multisig wallet in Bitcoin blockchain using this link. ...
Mohammad Saberi's user avatar
1 vote
1 answer
2k views

sendRawTransaction error in web3.js

i am trying to send a request for my contract function to web3: my code snippets is here: const W3 = require('web3'); const express = require('express'); const ethTx = require('ethereumjs-tx')....
sollover's user avatar
  • 115
0 votes
1 answer
156 views

How to sign transactions while Geth does not provide private key?

I've lunched Geth for the first time and created some accounts on it. While creating accounts, I entered a password for each, and a key file is generated which contains encrypted private key belonging ...
Mohammad Saberi's user avatar
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
1 vote
0 answers
809 views

Sending secure transactions using web3.py

An ethereum account I had has been hacked, where whenever I send it, say, 0.1 eth, some evil bot immediately sends 0.0009 eth from that account to a dummy account, and then spends the remaining 0.0991 ...
Eric Falkenstein's user avatar
3 votes
2 answers
1k views

Does using a very high gas limit somehow get your transactions executed slower?

I'm executing transactions on mainnet with a NodeJS script: async function send(web3, transaction, destAddr, gasPrice, privateKey) { const options = { data : transaction.encodeABI(), ...
goodvibration's user avatar
4 votes
2 answers
7k views

web3, nodejs - How to put decimals values ​into the toBn function

I want the amount of tokens to be a decimal number. but i heard that toBn is not supported decimals number. When I put in a decimal number, I faced the following error: while converting number 0.15 ...
Covy Choi's user avatar
0 votes
1 answer
202 views

Web3 0.20 contract deployment

environment: Web3 0.20.7,Infura,node.js(backend) Deploy contract with Web3 0.20.7 pragma solidity ^0.5.1; contract Bang{ address holder; address proxy; constructor (address _holder, ...
user53449's user avatar
0 votes
1 answer
979 views

Get return data from sendSignedTransaction

I need access to data returned by function that also changes state. Example: I have a contract live on testnet with a function that creates and then returns a new ERC20 token. contract MyContract { ...
jasper's user avatar
  • 689
1 vote
2 answers
95 views

Transaction does not get processed

I am using a local testnet. I send transactions with eth_sendRawTransaction but unfortunately sometimes the transaction pass and sometimes not. When it does not pass I have two things happening at ...
Mathieu Dutour Sikiric's user avatar
0 votes
0 answers
526 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 ...
G-Virus's user avatar
  • 51
3 votes
1 answer
3k views

How to pay gas fee for new addresses of ERC20 tokens that initially have 0 Eth balance? [duplicate]

I have a confusion, When we create new address/account for an ERC20 token then it have 0 Eth balance. When we send some tokens to this address and then withdraw token again from this address require a ...
Muhammad Waqas's user avatar
0 votes
2 answers
282 views

how to write backend for contract if you use infura ropsten metamask and remix

i'm using metamask with ropsten. deployed my contract on ropsten using remix. for the backend i used infura to create instance of web3. ew Web3(new Web3.providers.HttpProvider('https://ropsten.infura....
Divansh Sachdeva's user avatar
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
0 votes
3 answers
1k views

web3.eth.sendSignedTransaction executed successfully but never any ETH transferred actually

as you see in below, i the raw transaction has been set by the gas simplify value, the returned value is an implemented transaction hashcode, but never assumed result by this transaction figure out ...
Hamid Jolany's user avatar
0 votes
1 answer
3k views

Sending transaction with web3.js

I'm trying to use web3.js 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
3 votes
0 answers
948 views

Signed transaction vanishing from testnet (Kovan & Rinkeby)

I've been attempting to broadcast transactions to both Kovan & Rinkeby, I'm building and signing them offline and using the Etherscan API to broadcast the signed transactions. I see them in the ...
Matt's user avatar
  • 31
3 votes
2 answers
1k views

Promise not resolved for web3eth.sendSignedTransaction

I am testing whether transactions that I'm signing offline are accepted by the Ropsten network. I'm submitting the transactions using Web3.js ([email protected]) as follows: I connect to an INFURA ...
econdepe's user avatar
1 vote
1 answer
401 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, ...
Adibas03's user avatar
  • 388
2 votes
4 answers
1k views

Help with signTransaction

i need help com many parameters for sign a transaction. What is "nonce"? How i calculte gas value? How i calculate gasPrice? what is data field? Chain ID 1 is a Mainnet? I will using infura. $...
Ingrid Cristaldo's user avatar
2 votes
3 answers
793 views

sending signed transactions from contract

Is it possible to send private key signed transactions directly from the contract? The thing I want to do is to create a similar function function sendTransactionForUser(_signedData, contractAddress)...
JustinZ's user avatar
  • 183
0 votes
1 answer
471 views

How can I send ethers from my smart contract to another address using transfer?

recievers_address.transfer(address(this).balance); when I use this from one of the functions of my smart contract Member "transfer" not found or not visible after argument-dependent lookup in ...
CryptoScroller's user avatar
2 votes
1 answer
1k views

Ethereum Transaction Using cUrl and web3.php, I get a Receipt but the Transaction is not sent to the Network

This has been doing my head in all day, after wading through and managing to get all my values converted to hex I create and sign the ethereum transaction using the web3p/ethereum-tx library from ...
Corey's user avatar
  • 21
0 votes
2 answers
531 views

Gas issue on sendRawTransaction on the rinkeby network

I'm facing a gas issue on rinkeby network on sendRawTransaction. Tested with various gas value to experiment and getting either insufficient funds for gas * price + value or exceeds block gas limit. ...
Ani's user avatar
  • 123
2 votes
1 answer
1k views

Send more than one raw transaction quickly will throw an error

web3.eth.getTransactionCount(addressFrom).then(function(v){ count = v; var amount = web3.utils.toHex(1e16); var rawTransaction = {"from":addressFrom, "gasPrice":web3.utils.toHex(20* 1e9),"...
戴廷逸's user avatar
0 votes
3 answers
2k views

Sending Signed Transaction returns pending and event:undefined

I am trying to send a signed transaction using web3 1.0 and Infura.io through the browser. When I run it I dont get any errors but the transaction never hits the blockchain so I am confused on whats ...
Ryan D's user avatar
  • 125
0 votes
1 answer
448 views

Trying to send signed transaction through web browser using ethereum-tx

I am working on signing and sending a transaction using web3 v1.0 and Infura.io. I have setup a script to run the TX but cannot seem to get ethereum-tx to connect in the browser. <script src="...
Ryan D's user avatar
  • 125
2 votes
1 answer
2k views

Getting TX is not defined when trying to send signed transaction [closed]

I am trying to learn how to send a signed transaction using web3 1.0 and Infura.io. I have node.js running locally for testing. I can successfully create an address and check balances but am getting ...
Ryan D's user avatar
  • 125
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
1 vote
0 answers
1k views

Geth RPC send_transaction error -32000

How do you calculate how much gas to use in a send_transaction? Amount: 0x670479cb5385800, // (decimal: 463949500000000000 wei 0.4639495 eth) Gas price: 0x6ddd00 // (decimal: 7200000 wei) Gas: ...
mocode10's user avatar
  • 143
2 votes
2 answers
2k views

Transaction Hash after deploying contract with Web3.py too long

I managed to successfully deploy a contract using Web3.py to the Ethereum Ropsten network using this bit of code def deploy(self): instance = self.w3.eth.contract(abi=self.abi, bytecode=self.bin) ...
TJB's user avatar
  • 153