Questions tagged [sendtransaction]

The tag has no usage guidance.

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

How to build, sign and send a Polygon transaction in Golang?

I would like to build a transaction and insert specific data in the data field. Then sign and send it to the network. Is it possible to do so ? PS : I managed to do this with an ETH transaction, but I ...
1
vote
1answer
31 views

Can I send ETH to an Smart Contract address?

I'm developing an Smart Contract based in the Openzeppelin's Crowdsale one. When I test the Crowdsale Smart Contract manually, sending ETH with metamask, the SC returns me the correct amount of tokens....
0
votes
0answers
10 views

Can I send BNB and BEP20 token in the same web3 sendTransaction?

I'm trying to develop a javascript function to send BNB and a BEP20 token, at the same time, in one transaction, with web3. let decimals = web3.utils.toBN(18); let bnb_amount = web3.utils.toBN(...
0
votes
0answers
13 views

What default RPC does Metamask use for sending Ethereum transactions to the blockchain

When I send a transaction through Metamask, what RPC endpoint do they use to transmit this info to the blockchain?
0
votes
1answer
28 views

Why aren't my transactions sometimes getting to the mempool?

I am using web3 and an infura node to broadcast transactions. let result = await web3.eth.sendTransaction({ to:receiveAddress, from:web3.eth.defaultAccount, value:...
0
votes
0answers
21 views

web3SendInstance.eth.sendTransaction returning txhash but transactions get lost

I am using web3.eth.sendTransaction to try and send Ether from one address to another let result = await web3SendInstance.eth.sendTransaction({to:receiveAddress, from:web3.eth.defaultAccount, ...
0
votes
1answer
17 views

insufficient funds for gas [duplicate]

sorry I'm too stupid to transfer eth from one account to another. I want to transfer all eth from one wallet to the other. With eth.getbalance the value is: 26303362261697318 About 0.12193 eth web3....
0
votes
1answer
102 views

Unauthorized transaction from Ronin Wallet

I'm facing a big problem related to my Ronin Wallet, i bought ETH as usual and trying to send it to Axie Infinity, but after i got the ETH i bought, another random transaction appeared as if i ...
0
votes
1answer
30 views

ERC20 Mint Function returns "Uncaught (in promise) Error: Transaction has been reverted by the EVM"

I want to allow an external app to mint tokens when a user performs an action. I have a separate contract that calls the "mintTo" function for an ERC20 token. Here's the token contract. ...
1
vote
0answers
53 views

Is there any trick (besides high gas fee) to get transactions included in the next Polygon block?

I recognize some arbitrage opportunities on the Polygon network and tend to include my transactions in the next block. Since Polygon's transaction time is too low, I know that I have to do it quickly ...
0
votes
0answers
24 views

Call a smart contract from the backend but have a user pay for gas

I want to lock down a method to only be callable by the owner (backend) but I would like the user who is claiming a reward to be the one that pays the gas for the transaction. After doing a lot of ...
0
votes
0answers
34 views

How to execute transaction without unlocking account from geth console?

I have a node that has enabled the HTTP-RPC server and that makes unlock an account in that node is not allowed due to security. I already know how to execute a transaction in web3 (web3 python to be ...
0
votes
0answers
32 views

json rpc sendTransaction signs internally?

When sending json RPC request to geth node. params: [{ "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567&...
0
votes
0answers
37 views

Send transaction & get receipt with log

Using sendTransaction to submit a tx. It works. Then wanting to get the receipt and check the logs to extract data. That codes works in isolation. How to put the two together? The problem is the ...
1
vote
1answer
160 views

Can i write in the data field of a transaction?

I read here Is it possible to insert some custom data in the DATA field of an Ethereum Transaction? that it is not possible to write in the data field of a transaction, even if it is a simple balance ...
0
votes
0answers
115 views

Geth console - eth.sendTransaction returns "unknown account" ERROR using Clef accounts

I'm approaching to Ethereum with Geth and Clef using the official docs: Geth: https://geth.ethereum.org/docs/getting-started Clef: https://geth.ethereum.org/docs/clef/tutorial I have a problem when ...
1
vote
0answers
20 views

How to fix gas-related errors in sending a transaction

I tried to make my first transaction but kept failing. I searched here and there but still could not find a solution. And came here to write a question. I am trying to send some from account[0] to ...
1
vote
1answer
948 views

How to sign a transaction using web3.js and ethereumjs-tx on the BSC testnet

How do I sign and send a transaction using web3.js and ethereumjs-tx on the BSC testnet? I have found this question and answer: Is it possible to send transaction in Binance Smart Chain using web3 and ...
0
votes
0answers
26 views

sendTransaction timeout

Sometimes my node just stop sending transactions, I can use most of the commands, but sendTransaction just timeout. eth.syncing return false eth.blockNumber return the latest block htop shows my ...
0
votes
1answer
118 views

Delay between IPC transaction call and submitting to mempool

I encountered a problem, where a web3j transaction was successfully submitted via IPC call and yet, it was not submitted to mempool for another 40 minutes. Etherscan did not show the TX as pending and ...
0
votes
0answers
11 views

UnhandledPromiseRejectionWarning when attempting to send a signed transaction

I was able to create a rawTransaction and sign the transaction without issue with the code below. var rawTransaction = {"from":myAddress, "gasPrice":web3.utils.toHex(yessir),"...
0
votes
0answers
40 views

send a certain portion to a specific address with every transaction

i have created a Smartcontract. now i want the functionality: where 2.5% of every transaction is transferred to a fixed address. say the address is 0x809341c1c1cba2d6accf8188bca463a119443d. i know it ...
1
vote
1answer
2k views

Understanding Binance withdrawal fees measured in ERC20/transmitted via the ERC20 network

Let's say I'd like to withdraw 1inch from Binance to any sort of crypto wallet. On the Binance fee schedule webpage one finds the following (column names above, screenshot of fees below): Coin/Token | ...
1
vote
0answers
109 views

Unknown account while trying to send transaction via OptimismProvider

I'm trying to make use of OptimismProvider to sign the transaction on Mumbai Matic. I'm making use of provider.send("eth_sendTransaction", [hexTxn]) and instantiating provider object by: ...
0
votes
1answer
20 views

User experience while using sendTransaction

What is best practice for user experience when sending a transaction? I was blocking UI with a spinner. I am doing this: //BlockUI const sentTransaction = await sendTransaction(transaction) ...
1
vote
0answers
27 views

How do I send transaction from a non-sealer node/account that can be validated by a validator?

Quick review of my system : Every nodes are connected through geth, clique (so a proof of authority system) I have a bootnode that isn't a sealer I have one main_node that is a sealer I have one ...
0
votes
0answers
11 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
2answers
921 views

If I send a transaction with a low gas fees and then send another one with high gas fee elsewhere?

Let's say, I send a transaction, all of my Ether, with low gas fees and it'll take hours for it to complete. Right away I send another one, from the same wallet or address, also all of my Ether, to ...
0
votes
0answers
24 views

dynamic value (amountEth) doesnt work in very basic web3 UI webpage

I am a newbie and try to learn to code web3 interfaces to call basic smart contract funtions. For now I made a button - when clicked it send 1 ETH to a specific (static) address. This worked fine... ...
1
vote
1answer
1k views

Provider does not have a request or send method to use

I am doing the Ethereum and Solidity: The Complete Developer's Guide and I am unable to resolve this error. The code is expected to do a transaction via await factory.methods .createCampaign(this....
0
votes
1answer
153 views

Confusion over sendTransaction vs contract methods

I'm building a UI that talks to a smart contract and I'm using contract methods. const data = await contract.methods.buyCredits().send({ from: account, gas: 233000, value: ...
1
vote
1answer
918 views

message: 'invalid argument 0: json: cannot unmarshal hex string without 0x prefix into Go struct field SendTxArgs.value of type *hexutil.Big'

I am using a JSON RPC request and source code is as follows: var options ={ url: "http://127.0.0.1:8545", method: "POST", headers: {"Content-Type":"...
0
votes
0answers
23 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; }
2
votes
1answer
2k 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
1answer
250 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
75 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
153 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
87 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
73 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
69 views

eth_sendTransaction gas required exceeds allowance

$result = $client->callMethod('eth_sendTransaction', [array( "from" => $address->address, "to" => "0xac52822dde76b9c4cd701d5f4402acedb2a86cc1", ...
1
vote
2answers
70 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
47 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
1k 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 ...
1
vote
1answer
699 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
96 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
82 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, ...
3
votes
1answer
103 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
63 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
139 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 ...