Questions tagged [sendsignedtransaction]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
12 views

web3-eth.umd.js:56 Uncaught (in promise) Error: TransactionSigner Error: gas limit is too low. Need at least 53000

const tx = myContract.methods.set(url); console.log("tx",tx) const gasPrice = await web3.eth.getGasPrice(); console.log("gasPrice",gasPrice) const dataNew = tx....
  • 11
2 votes
1 answer
72 views

web3.eth.sendSignedTransaction is not a function

I'm taking initiative to learn with Web3js and Ganache for testing interactions with blockchain. (So go easy on me being a noob pls) When trying #3 example from here: https://www.dappuniversity.com/...
  • 21
0 votes
0 answers
13 views

Ethers.js Error code B510: Not able to decode the data in rawTransaction using ethereum-tx-decoder. Please check the data sent

I have written this code to make a transaction. But I got an error when run it. Please help me. I stuck at this 2 days. Thank you very very much. const biconomy = new Biconomy(new ethers.providers....
  • 1
0 votes
0 answers
10 views

How to sign contract-deployment transaction to deploy later from MetaMask [duplicate]

I'm trying to sign a contract-deployment transaction from MetaMask to get the signature and deploy it later by sending a raw transaction to the network. I created a rawTx: const Tx = require('...
  • 29
0 votes
0 answers
22 views

Is it possible to sign typed data as operator

I am letting people create NFT vouchers with them by signing a typed data (_signTypedData). This is allowing me to lazily mint NFTs until someone actually mints the NFT by using this voucher. I wonder ...
  • 138
1 vote
2 answers
601 views

How to recover the public key from r, s and v without the private key

I would like to recover the public key (or address) from the r,s and v values of a signed transaction without using a private key. The idea of course being, that I want to use Nick's method to deploy ...
  • 219
0 votes
1 answer
124 views

Sign transaction with web3js not working properly

I'm trying to call a smart contract function on a transaction on CELO alfajores network with private keys. I'm using the signing transaction approach with a locked account. However, the transaction it'...
  • 111
0 votes
0 answers
195 views

sendSignedTransaction function returns TxHash without any error but the function is not being executed on polygon mainnet

I have deployed contract on Polygon mainnet. I wanted to call a write function using my private key from backend using web3.eth.sendSignedTransaction function, upon calling the function I was getting ...
0 votes
0 answers
13 views

Would it be a acceptable to sign a transaction and send it to the network at a later time?

I've noticed that gas fees change a lot and because my transactions are not time-sensitive I would prefer to pre-sign them and have a script send them to the network when the gas fees are lowest. ...
0 votes
0 answers
36 views

How can a third party sign and validate a transaction that does not involve money?

As a beginner in Solidity, I'm trying to figure out how to do someting with the things I know, but maybe there are other tools that would solve better my needs. Do Approve() global function works ...
0 votes
0 answers
158 views

Setting up ethereum transactions within a cloud function or AWS Lambda function?

I'm wondering if somebody has figured out how to transact on the blockchain via google cloud functions, or perhaps AWS Lambda? I am able to write web apps in Angular with leverage ether.js and the ...
  • 527
0 votes
1 answer
326 views

send signed transaction from smart contract

I need to know if it is possible to implement a smart contract to send signed transaction (signed with metamask). The user that sign the transaction must pay the fees. All examples that I'm reading is ...
  • 1
0 votes
0 answers
210 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
1 answer
158 views

Sell NFT by QR Code for specific amount

Currently I'm writing an app to interact with NFTs in a game. Therefore I want to implement a function to buy and sell an NFT by using a QR code. The seller should be able to create a QR code for his ...
  • 1
0 votes
0 answers
104 views

pass signedTypeData signature into a function call

I'm trying to collect a signedTypeData signature so I can automate some transactions to chain to avoid going through the "verify with metamask" pop-up each time. I've collected my signature ...
  • 11
1 vote
1 answer
292 views

SendSignedTransaction TIMEOUT

I'm trying to sign data offline and then send signed transaction via web3.js Here's my code snippet: const {sign} = require('@warren-bank/ethereumjs-tx-sign'); const {Loader} = require("loader-in-...
  • 123
0 votes
0 answers
313 views

Invalid sender, insufficient funds, nonce too low when sending raw signed transaction on Rinkeby via JSON-RPC (Infura)

I am writing a C++ program to interact with Ethereum using JSON-RPC calls to an Infura node. I am trying to send a signed transaction using "eth_sendRawTransaction" on the Rinkeby network as ...
  • 1
0 votes
0 answers
267 views

why is signTransaction so slow? Is it faster overall to use an unlocked account on a node?

I am using the following to sign a transaction with my private key (I am using Alchemy's web3): web3.eth.accounts.signTransaction(transactionConfig, privateKey) For the transactionConfig I am setting ...
1 vote
1 answer
117 views

Transaction never appear on Rinkeby

I've signed a transaction with my private key and then used the sendRawTransaction function to send the transaction on the network, I got the Transaction Hash, but when I use that transaction has in ...
0 votes
1 answer
230 views

@ethereumjs/tx Error: Returned error: Insufficient funds. The account you tried to send transaction from does not have enough funds

Moving to @ethereumjs/tx npm package after ethereumjs-tx has been marked as deprecated. My from address has sufficient Kovan network balance, but the following code throwing Insufficient funds error. ...
0 votes
0 answers
105 views

Send signed instructions to smart contract without Metamask but with Infura

I need to send instructions to mint an NFT but wish to do it without calling Metamask. So, I figured that I need to use Infura like so.. web3 = new Web3(new Web3.providers.HttpProvider(...
0 votes
0 answers
463 views

How to sign transaction using web3.eth.personal.sign, through Walletconnect

I am using the package Web3Modal to connect to different Ethereum Providers. And one of those providers is WalletConnect. Because it uses a Infura ID, I cant just sendTransaction(). First I need to ...
1 vote
1 answer
1k 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://...
  • 123
0 votes
0 answers
243 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 ...
  • 247
0 votes
0 answers
208 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
1 answer
265 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
1 answer
2k 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 ...
  • 543
0 votes
1 answer
125 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
0 answers
79 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
0 answers
211 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,...
  • 11
1 vote
3 answers
922 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
1 answer
108 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
2 answers
994 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
1 answer
36 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
1 answer
360 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
2 answers
8k 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
1 answer
2k 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
0 answers
302 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
1 answer
2k 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....
  • 293