2022 Developer Survey is open! Take survey.

Questions tagged [sendsignedtransaction]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 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('...
user avatar
  • 27
0 votes
0 answers
13 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 ...
user avatar
  • 118
0 votes
2 answers
123 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 ...
user avatar
  • 147
0 votes
1 answer
30 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'...
user avatar
  • 111
0 votes
0 answers
52 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 ...
user avatar
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. ...
user avatar
0 votes
0 answers
16 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 ...
user avatar
0 votes
0 answers
88 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 ...
user avatar
  • 417
0 votes
1 answer
97 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 ...
user avatar
  • 1
0 votes
0 answers
111 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....
user avatar
0 votes
1 answer
92 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 ...
user avatar
  • 1
0 votes
0 answers
60 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 ...
user avatar
  • 11
0 votes
1 answer
202 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-...
user avatar
  • 113
0 votes
0 answers
156 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 ...
user avatar
  • 1
0 votes
0 answers
176 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 ...
user avatar
1 vote
1 answer
87 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 ...
user avatar
0 votes
1 answer
107 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. ...
user avatar
0 votes
0 answers
76 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(...
user avatar
0 votes
0 answers
352 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 ...
user avatar
1 vote
1 answer
911 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://...
user avatar
  • 113
0 votes
0 answers
205 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 ...
user avatar
  • 227
0 votes
0 answers
389 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 ...
user avatar
  • 21
0 votes
0 answers
135 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....
user avatar
0 votes
1 answer
148 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 ...
user avatar
0 votes
0 answers
42 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 ...
user avatar
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 ...
user avatar
  • 431
0 votes
1 answer
114 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 ...
user avatar
2 votes
0 answers
78 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 ...
user avatar
1 vote
0 answers
207 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,...
user avatar
  • 11
1 vote
2 answers
653 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 = ...
user avatar
0 votes
1 answer
86 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 ...
user avatar
0 votes
2 answers
874 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....
user avatar
0 votes
1 answer
35 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 ...
user avatar
1 vote
1 answer
315 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; } ...
user avatar
2 votes
2 answers
6k 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 ...
user avatar
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 ...
user avatar
1 vote
0 answers
261 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 ...
user avatar
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....
user avatar
  • 263