Questions tagged [sendrawtransaction]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
20 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
1answer
35 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
1answer
21 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
1answer
16 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
0answers
52 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
1answer
97 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
2answers
38 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....
1
vote
1answer
89 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
3answers
88 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
1answer
67 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(...
2
votes
0answers
53 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
1answer
326 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
1answer
65 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
3answers
68 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
2answers
100 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
1answer
240 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
0answers
198 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
2answers
155 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
1answer
346 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
3answers
423 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
1answer
122 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="...
1
vote
1answer
653 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 ...
2
votes
0answers
554 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
0answers
209 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: ...
1
vote
2answers
163 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) ...
0
votes
1answer
183 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 ...
1
vote
1answer
151 views

problem deploying a contract

I am trying to deploy a contract on testrpc using web3.js, contract deploys fine when I deploy it from remix, it uses roughly the same amount of gas as the estimate. However, when I try to deploy ...
1
vote
1answer
30 views

Can't find broadcasted transaction

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

eth_sendRawTransaction parameter formatting

we have a JSON RPC method eth_sendRawTransaction as specified here. how is the raw transaction data formatted? I can't seem to find this anywhere. I'm guessing it consists of a signed transaction ...
1
vote
1answer
346 views

How to use “etherscan” to push a raw transaction without running a node?

According to this answer, how to use etherscan to push a raw transaction without running a node? In this case, do not we need to install Parity or geth or any Ethereum client ?
0
votes
1answer
565 views

How can I properly set the gas / value for sending a transaction with web3.js?

My code is: function sendEth(fromAddress, secret, toAddress, amount) { let params = { to: toAddress, from: fromAddress, value: web3.utils.toWei(amount + '', 'ether') }; console.log(...
1
vote
1answer
248 views

Transfer ERC20 token in mainnet with web3js(succeed in ropsten, failed in mainnet)

I want to transfer some ERC20 tokens in ethereum. I did some preparation work and tried in ropsten, it succeed. Then I changed the used api, wallet address, httpProvicer, contract address, and ran the ...
1
vote
1answer
78 views

Using json RPC without any libraries besides js

I am currently trying to call a function on my smart contract function adopt(uint petId) public returns (uint) that has already been deployed to the ropsten network... but here's the catch. I'm ...
1
vote
1answer
671 views

How to call write functions via Python web3.py, w3.eth.sendRawTransaction()

Hi I am running Python web3.py(Not web3.js) to interact with contract functions: txn = ctrtInstance.functions.setzString(zString).buildTransaction() txn['nonce'] = 3643 # I have to add those into ...