Questions tagged [sendrawtransaction]
The sendrawtransaction tag has no usage guidance.
59
questions
1
vote
1
answer
103
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 ...
0
votes
0
answers
91
views
EIP 1559 transaction structure
I am trying to develop a web3 library for deploying a contract, interct with the smart contract functions etc using the RPC methods in Golang. I know there is go-ethereum but doing it for my own ...
1
vote
0
answers
109
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 ...
2
votes
2
answers
112
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: ...
0
votes
1
answer
75
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 ...
1
vote
1
answer
70
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 ...
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:
...
0
votes
1
answer
911
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
...
1
vote
2
answers
3k
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 ...
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 ...
1
vote
1
answer
1k
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://...
0
votes
2
answers
379
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
1
answer
582
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
0
answers
511
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 ...
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 ...
0
votes
1
answer
437
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 { ...
0
votes
0
answers
26
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 ...
0
votes
0
answers
142
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 ...
2
votes
0
answers
110
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....
0
votes
0
answers
77
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. ...
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')....
0
votes
1
answer
151
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 ...
2
votes
1
answer
2k
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 ...
1
vote
0
answers
786
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 ...
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(),
...
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 ...
0
votes
1
answer
200
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, ...
0
votes
1
answer
912
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 {
...
1
vote
2
answers
88
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 ...
0
votes
0
answers
489
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 ...
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 ...
0
votes
2
answers
277
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....
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 ...
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
...
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(...
3
votes
0
answers
936
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 ...
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 ...
1
vote
1
answer
385
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, ...
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.
$...
2
votes
3
answers
746
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)...
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 ...
1
vote
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 ...
0
votes
2
answers
530
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.
...
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),"...
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 ...
0
votes
1
answer
418
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="...
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 ...
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:
...
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: ...
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)
...