Questions tagged [sendsignedtransaction]

The tag has no usage guidance.

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

How do I send test Eth from one EOA to another on the Rinkeby testnet using Infura?

I am trying to check if I am able to send one test ether from one Wallet (Wallet 2) to another Wallet (Wallet 1) using JavaScript. I tried to do this using the codes below but for some reason, this is ...
0
votes
0answers
31 views

MetaMask RPC Error: Already Known

I am trying to send a pair of transactions to a smart contract on Ropsten. I thought this might be a nonce issue on the second of the transactions where it wasn't being updated to a proper value but ...
0
votes
0answers
22 views

Difference between Receipt & Confirmation callbacks

I'd like to verify programmatically that a transaction was successful - that is the Etherum network itself recognizes that for a given transaction hash, it was valid. Using web3.eth....
0
votes
0answers
21 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
0answers
20 views

Is it possible to change sendSignedTransaction timeout?

Unfortunately the BSC network is overloaded, and the node what I use is 1000 blocks behind the mainnet. When I send a transaction I get the following error: Error: Transaction was not mined within 50 ...
0
votes
1answer
177 views

How to sign a transaction for a smart contract call using Ethers? [duplicate]

I'm looking for a complete example of a javascript/typescript based code for signing a transaction for a smart contract function call (that changes the contract state) and also the broadcast of the ...
0
votes
1answer
42 views

is there a way to send() a method from the smart contract itself using web3?

i'm pretty new to solidity and web3. I trying to make a faucet so obviously the person interacting with the smart contract won't have enough token to cover the fees of the transaction so it doesn't ...
2
votes
0answers
69 views

Forwarding signed transactions as if they were sent by key owners

Can a contract act as a postal worker for a human user / key owner? The idea is the key owner would sign two transactions. The first transaction is for any call to any address. The second transaction ...
1
vote
0answers
167 views

Error: Only replay-protected (EIP-155) transactions allowed over RPC [duplicate]

When I try to send funds from a token address to another I encounter this error: only replay-protected (EIP-155) transactions allowed over RPC My Code: const contract = new web3.eth.Contract(ABI,...
1
vote
1answer
231 views

unsigned transactions not supported - web3, infura, @ethereumjs/tx

I am working on sending signed transactions using web3, @ethereumjs/tx, and infura. However, I am getting an error "unsigned transactions not supported". Here my code, credit: const Web3 = ...
0
votes
0answers
66 views

Transfer ERC20 token from smart contract to wallet using sendSignedTransaction

I have s smart contract that holds ERC20 DAI token that needs to be transfer to my wallet. Using javascript web3 side on kovan testnet: const EthereumTx = require('ethereumjs-tx').Transaction const ...
0
votes
1answer
33 views

How can I check if a transaction will broadcast and get added to the blockchain?

Like we have a function called estimateGas in 'web3' and it creates a dummy transaction which is not added to the blockchain, is there some way to test if my signed transaction will broadcast properly ...
0
votes
2answers
494 views

How to get transaction hash without waiting for await call?

for my demo I need the transaction hash instantly without waiting for callback of sync call. Here my code: aggiungiAllaBlockChain: async(u,n,c,e) => { try { const web3 = new Web3(App....
0
votes
1answer
18 views

How can the contract move funds from a user wallet to a contract address

We are creating a system where every month some ethers shall be transferred from user wallet to a contract wallet. We are focusing on creating a dapp too, so a user will initiate this request and once ...
1
vote
1answer
193 views

Automatically register number into Kovan test net with signed transaction (Infura API + NodeJS)

I have a very simple Smart Contract deployed using remix.ethereum which is: pragma solidity ^ 0.6.0; contract primerContrato { uint storeddata; function set(uint x) public{ storeddata = x; } ...
2
votes
2answers
3k views

web3.eth.sendSignedTransaction is not returning promise or promised event emiter

I am testing whether transactions that I'm signing offline are accepted by the Kovan network. I'm submitting the transactions using Web3.js (web3@1.20) as follows: I connect to my Open Ethereum 3.0.1 ...
1
vote
1answer
985 views

How to send signed transaction to blockchain from different account

I have user's private key to sign a erc20-token transfer transaction in my DAPP. Now I want to send this transaction from different account so that 2nd account pay the gas fee. Is it possible through ...
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
976 views

web3js: Can I send a signed Transaction without wait the result?

Commonly, I dow const receipt = await web3.eth.sendSignedTransaction(web3, signed_transaction); console.log("tx_hash:", receipt.transactionHash); console.log("gas_used:", receipt.gasUsed); console....