Questions tagged [sendtransaction]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

how to get(catch) returned value from function that changes state, in front-end

contract test{ function test1(string memory _name) public returns(address) uint tempData = uint (keccak256(abi.encodePacked(_name,block.timestamp))); address batchNo = address(tempData); return ...
0
votes
0answers
19 views

can i get returned value from contracts that changes state in javascript [duplicate]

pragma solidity >= 0.5.0; uint x; function getX() public returns(uint){ x = 6; return x; }
0
votes
0answers
12 views

infura return null when eth_getTransactionReceipt

I am trying to send some test ether on Rinkeby network using Infura, Im using some php library to make it. <?php use Web3p\EthereumTx\Transaction; use Web3\Web3; $valueSend = dechex(0.1 * 10**18); ...
0
votes
1answer
27 views

Trying to send a transaction with ethers.js

I'm trying to send this transaction using etthers.js and getting transaction details as output but when I try to put the txnhash on etherscan it shows nothing, I tried rinkeby and kovan. [private key ...
0
votes
0answers
14 views

“exceeds block gas limit” on partially synced geth

I am trying to send eth when my geth node is not fully synced (it's very, very slow) { currentBlock: 10683052, highestBlock: 10780597, knownStates: 57935524, pulledStates: 57929853, ...
0
votes
1answer
68 views

Truffle Contract sendTransaction not immediately returning transaction hash

I am using Truffle Contract to call a Smart Contract method that writes to the ethereum blockchain. My web3 client is connected to my own Open Ethereum node. Below is the code (nodejs) that I am using ...
0
votes
0answers
7 views

MainNet Truffle Contract sendTransaction request not returning transaction receipt

I just deployed my smart contract to MainNet and starting to test my DAPP. I am running my own public Open Ethereum node where I send my transactions to. I am NOT mining in this node. From what I can ...
0
votes
0answers
21 views

Is there a way to know if a Solidity method will revert?

I have some solidity methods in my contract, and when i make a send in web3.js i would like to know if there is a way to know if the functions are going to revert by using call. Per-example , in ...
1
vote
0answers
34 views

In Web3, why is simply signing transactions with private key more secure than unlocking the account and using sendTransaction?

In Can anybody Point out the Difference between Web3.eth.sendTransaction and web3.eth.signTransaction?, the author of https://ethereum.stackexchange.com/a/73705/61096 mentions how unlocking an account ...
0
votes
1answer
41 views

receive ether from address only after another address has sent ether

I have a two smart contracts. One receives ether(ReceiveEther) and the other sends ether(SendEther). I have it set so whoever made SendEther can only send to ReceiveEther if both contract creators ...
0
votes
0answers
21 views

Geth returns tx hash but blockchain

I have a Geth server on light mode, and implemented sending transactions based on web3.php project. Everything works well, except sending transactions. The code I am using sends from, to, and value ...
0
votes
0answers
34 views

eth_sendTransaction gas required exceeds allowance

$result = $client->callMethod('eth_sendTransaction', [array( "from" => $address->address, "to" => "0xac52822dde76b9c4cd701d5f4402acedb2a86cc1", ...
1
vote
2answers
41 views

How to send PAXOS token which has not transfer method?

I'm new in Ethereum contracts. I could implement sending USDT tokens through web3.php, and everything work well. Now, I want to add PAXOS and send such tokens through my system. But I found there is ...
0
votes
0answers
26 views

Geth returns txhash of sendTransaction() but nothing is broadcasted on Ethereum blockchain

I have a strange issue with Geth. The code I've written is based on web3.php and worked well up to now. Currently, I'm testing sending ETH via sendTransaction() method. The operation finishs and I ...
1
vote
1answer
249 views

Is it possible to send ERC-20 tokens with the gas from another account? [duplicate]

I'm creating a DApp platform which allows customers to send and receive USDT (ERC-20 Token). The problem I have is that if customer want to send some Tethers out, he should have enough ETH too as the ...
0
votes
1answer
112 views

What are the steps to send ERC-20 tokens?

I need to send USDT and other ERC-20 tokens via Geth on Ethereum. I'm using PHP and Web3.php library to work with Ethereum. So far, it worked well for everything. Now, I need to start sending tokens ...
0
votes
2answers
35 views

Should I use getTransactionCount() result in sendTransaction()? [duplicate]

As I read, getTransactionCount() returns the number of transactions sent from an address. Which of below items should I consider? Not to use returned nonce? Use the returned nonce number as a ...
0
votes
1answer
39 views

Insufficient funds v4.0 ethers.min.js

When the sendTransaction is executed , it returns insufficient funds at Object.n [as throwError] (ethers.min.js:1) at ethers.min.js:1 at tryCallOne (core.js:37) import { Wallet, providers, ...
2
votes
0answers
25 views

Loader when confirm clicked in metamask

I want to add a loader to UI when there is a click on confirm transaction popup on metamask. When user clicks on confirm I want to show the loader until the transaction is confirmed. Is there a way to ...
0
votes
1answer
34 views

send erc 20 tokens with full code example

I apologize for posting another question. Here I'm giving the full example code which is giving me the respond: "txHash undefined" when I try to send erc20. I want to fix this code. If you have even ...
0
votes
0answers
70 views

Insufficient funds for gas * price + value web3 sendSignedTransaction

My wallet balance is 3.994937 RIN and I have set value (to be sent) to 0.00005 RIN (50000000000000 Wei) and I have set both gasPrice to 5208 (21000)and gas Limit to 5208 (21000 Wei). ChainId=4 ...
0
votes
1answer
42 views

CLI wallet where I can pass in a Private Key and send out ETH and then delete this key?

Is there a CLI command where I can pass in an ethereum private key and send some coins to another address? I'm trying to build out a reoccurring payment system where a user can send 1 eth to another ...
1
vote
1answer
70 views

Generate new address, Send and Get transaction then Check transaction

I'm just starting in the ethereum and trying to build an app using Web3 and Nodejs. I'll need your lights so I can get any idea to know how to resolve those points: I have my own public address and ...
0
votes
1answer
47 views

In ethereum private blockchain, how to get list of transactions of particular address?

I build own ethereum private blockchain.Generating address and assign to users.Now how I will get the transaction info If user make payment from any third party api to our generated address then how I ...
0
votes
2answers
31 views

Private Ethereum blockchain Transaction Issue

Sending ether from one address to another using web3js. Getting issue of "account unlock with HTTP access is forbidden"
0
votes
1answer
98 views

end process after web3 sendTransaction return transactionHash

I want to end the process after sendTransaction return transactionHash. Here is my code currently : const Web3 = require('web3'); const web3 = new Web3("http://127.0.0.1:8545"); async function task(...
0
votes
1answer
77 views

Why Send Transaction is Error 'exceeds block gas limit'?

Why can't I send Ethereum with a code like this : const Web3 = require('web3') const provider = new Web3.providers.HttpProvider('https://provider') const web3 = new Web3(provider) const account = ...
1
vote
2answers
76 views

How to provide data for sendTransaction using web3.js 1.0

I'm using web3.js 1.0. I want to use sendTransaction method to call a contract method, but I don't know how to provide data parameter for it. For example suppose we have a contract named myContract ...