Questions tagged [sendrawtransaction]
The sendrawtransaction tag has no usage guidance.
60
questions
0
votes
0
answers
51
views
Deployment of a contract via the sendRawTransaction RPC-call avoiding EIP155 reverts
I want to send a contract deployment transaction just through the raw signed transaction data.
Here is what i have done:
import { ethers } from "hardhat";
import { Transaction } from '...
0
votes
0
answers
50
views
Why am I getting "cannot unmarshal object into Go value of type string" error when creating a raw transaction?
When I ran the code below on the local blockchain, in ganache, it worked fine but when I connect to Rinkeby I get the error above.
var Web3 = require('web3');
var EthereumTransaction = require('...
0
votes
0
answers
146
views
Comparing msg.value with 'require' can be really confusing
First of all, I am using BSC, the solidity is ^0.8.0. The contract is simple enough, there are only 2 functions here, one is using require, another is not. The mission of this contract is to test msg....
0
votes
0
answers
74
views
send_raw_transaction threading with python?
I'm kinda freaking out here. I'm trying to use send_raw_transaction function (web3 python library) using threading to be able to send multiple transactions at the same time (of course with multiple ...
1
vote
1
answer
544
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
406
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
...
0
votes
1
answer
576
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
129
views
Create a signed transaction on the front-end to be propagated by the back-end
I'm trying to allow users to sign a transacation, which is meant to call a smart contract method, on the front-end, so Metamask would prompt the user to sign message/transaction which would be sent to ...
0
votes
0
answers
23
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
984
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
0
answers
228
views
Understanding serialized signed raw transaction
I try to understand how the raw transaction hex is generated. This website provides an example script: https://besu.hyperledger.org/en/1.2.0/Using-Pantheon/Transactions/Transactions/
My inputs are:
...
0
votes
2
answers
128
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
188
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
174
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
451
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
232
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
20
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
72
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
73
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
64
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
1k
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
112
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
609
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 ...
2
votes
1
answer
817
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(),
...
0
votes
1
answer
322
views
About send Ethereum Classic (ETC) coin
Need guideline for send ETC coin using web3js,As per documented flow I understand we can access all methods same as ETH but I have query regarding set provider for ETC after that I can connect to ETC ...
3
votes
2
answers
6k
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
176
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
667
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 {
...
0
votes
2
answers
62
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
396
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
2k
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
258
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
3k
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
2k
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
872
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 (web3@1.0.0-beta.51) as follows:
I connect to an INFURA ...
1
vote
1
answer
287
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
892
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.
$...
0
votes
3
answers
407
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
466
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
984
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
467
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
895
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
1k
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
358
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
4k
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
995
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: ...