Questions tagged [sendtransaction]

The tag has no usage guidance.

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

error : "Value was either too large or too small for a Decimal" await web3.Eth.TransactionManager.SendTransactionAsync(transactionInput); In c#

Every thing is working fine till I execute var transactionHash = await web3.Eth.TransactionManager.SendTransactionAsync(transactionInput) await web3.Eth.TransactionManager.SendTransactionAsync(...
Mudasir Mudasir's user avatar
0 votes
1 answer
36 views

Signing a valid ERC20 transfer transaction

I'm building a backend that has an endpoint to set up a send transaction. This send can be a native, ERC20, ERC721, or ERC1155. The idea is to configure the transaction correctly according to its type,...
Vitor M. Almeida's user avatar
0 votes
2 answers
221 views

'err: insufficient funds for gas * price + value:

I am using sepolia testnet, to make a signed transaction between two accounts locally, below is the code :--- let { Transaction: Tx }= require('ethereumjs-tx'); let {Web3} = require('web3'); const ...
Shubham's user avatar
  • 13
0 votes
2 answers
70 views

Transaction executed but 0 ETH sent

When I try to send EHT using the below code, the transaction executes, but 0 EHT is sent: const getEthereumContract = () => { // const provider = new ethers.provider.Web3Provider(ethereum); ...
Valentyn Kasyan's user avatar
1 vote
1 answer
89 views

How to broadcast a signed transaction and cover gas?

I'm providing a custodial wallet API solution and everything is handled through APIs. The flow looks like this: 1. Client request (tx payload) => MyServerAPI.sendTransaction(tx payload) 2. Where ...
icebox's user avatar
  • 11
0 votes
1 answer
30 views

How can I see the history of an ERC1155 token on-chain?

Let's say I have 10 tokens of a specific token id within an ERC1155 smart contract. If I send 1 of those tokens to another address and then this address send it elsewhere, is there a way I can see the ...
Falcon Stakepool's user avatar
2 votes
2 answers
565 views

How to find out when pending transactions go through? Ideally I'd be alerted

How do I know when transactions are either successfully mined or still sitting in the mempool? I don't want to just overbid on gas to get my transaction to get mined faster / more instantly from the ...
0xshells's user avatar
2 votes
1 answer
70 views

How do I prevent people from seeing my transactions and the information about these transactions?

I don't want to expose my pending transactions to the public mempool b/c I want to prevent arbitrage and tactics like frontrunning.
0xshells's user avatar
1 vote
1 answer
37 views

ERC721 Open Zeppelin (BUY NFT) : function buy(_tokenID) gives error: "Fail with error 'ERC721: approve to caller'" in Polygon

I hope you are doing well? I am new to the world of web3 and to this forum and I hope to find some help in solving my problem. I create an ERC721 contract that would initially allow me to be able to ...
H F's user avatar
  • 13
2 votes
1 answer
78 views

The economics of batching transactions on main net

I want to know if it is feasible to achieve even a marginal saving on gas fees if you were to write a smart contract to send N transactions in batch as opposed to making N separate transactions. Given ...
Richard Jarram's user avatar
0 votes
0 answers
24 views

Open Metamask with parameter

I would like to open metamask and send token specific. I have 2 questions: How to change token. How to change amount. I want to sent token MT(USDC) but when call metamask alway open sent token MATIC....
Tran Huynh Van's user avatar
1 vote
1 answer
56 views

web3py sendTransaction without private key

I am trying to make a transaction, but failing. I have ganache-cli with 1000 ETHs in each wallet. I am running some python scripts to make transaction. Using this link, I am not able to do so. This ...
Yash Madhwal's user avatar
3 votes
1 answer
275 views

How to send USDT from Metamask in Binance smart chain in Dart?

There is an online shopping app written in Flutter, right now, this app can connects to the Metamask wallet using walletConnect_dart package. It gets user's account address. The goal is to pay with ...
Davoud's user avatar
  • 141
1 vote
1 answer
322 views

Send eth by deploying a Contract ( Ethers.js )

Is there a way to send eth to another wallet at the same time with deploying smart contract? let factory = new ethers.ContractFactory(abi, bytecode, signer); const contract = await factory....
MAD's user avatar
  • 11
0 votes
1 answer
320 views

HOW TO TRANSFER ERC1155 NFT TO ANOTHER WALLET

I Have A Ethereum ERC 1155 NFT in my Trust W. I want to send it to my MetaMask Wallet. Do I send this NfT to my MetaMask the same way as if I was sending a regular NFT?. Like normally sending a BNB ...
StuckDrop's user avatar
0 votes
1 answer
25 views

How can I automatically transfer an amount of Ether when I transfer my NFTs erc1155 to another account? That's my code

// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import &...
Federico Freddi's user avatar
2 votes
2 answers
88 views

Sending TX in Ethereum won't return a response

I'm trying to send ETH in goerli by this code let provider = ethers.getDefaultProvider(process.env.ETHEREUM_NETWORK); let wallet = new ethers.Wallet(prK, provider); wallet.sendTransaction({ to: ...
Camila326's user avatar
0 votes
1 answer
164 views

How to send BNB to multiple address without using for loop

I need to send BNB or BSC tokens to multiple addresses. I saw some answers but they are used for loop. I can't use a loop because it takes a lot of time and the server is not responding. Is there any ...
sri vijay's user avatar
1 vote
0 answers
240 views

How can we send contract transaction with Web3dart package?

I'm using web3dart package to send tokens on the Ethereum blockchain. but every time returns error : [log] RPCError: got code -32000 with msg "filter not found". [log] #0 JsonRPC.call ...
user113939's user avatar
0 votes
2 answers
755 views

Multicall transaction execution using uniswap router failing

I'am trying to swap multiple tokens in single transaction (multicall). The transaction is going into pending state and failing after some time. The code snippet and the transaction hash is attached ...
Bejo Jeffrin's user avatar
0 votes
1 answer
823 views

how to sign with raw transaction data - EthersJs, Infura

As the below picture display. If I know the raw transaction data, then how can I sign this transaction with the ethers.js? Thanks. Supplement The raw transaction data is display on the metamask. I ...
SylorHuang's user avatar
0 votes
1 answer
117 views

Transaction gas problem

I wanna send transaction and before that i wanna calculate the gas fee and input value as much as : finalAmount = value - gasFee For doing this i get gas price from provider this way: const gasP = ...
Alireza's user avatar
  • 350
0 votes
0 answers
153 views

Optimism Transaction: Input List error

I have encountered a tricky issue when making a simple transfer transaction on Optimism. I use a standard UI flow to construct the following transaction object (output by Ethers.Js). The transaction ...
jdarington's user avatar
0 votes
2 answers
258 views

Connect different wallets and make a transaction on each at the same time

I want to connect my different eth wallets to a contract and I want to claim the token from that contract from different wallets at the same time. do anyone knows how can I do this one? Please help me ...
Dasappan's user avatar
0 votes
0 answers
59 views

Swift development with Alchemy SDK - sendTransaction - Connection failed

We use swift to develop a wallet app. Tried to use "sendTransaction" in Alchemy SDK to post the request. But got the following errors like: "2022-10-09 11:13:35.488947+0800 RequestDemo[...
Prism Optics's user avatar
3 votes
1 answer
56 views

Problem publishing ethereum transaction after signing

I am trying to publish ethereum raw transaction after signing, with proper gas fees, and chainID. Unexpectedly, some signatures are published but some others fail to publish with error Invalid Sender. ...
MJay's user avatar
  • 140
2 votes
1 answer
632 views

How can i make a contract receive payment from a particular address and hence forth that same wallet address can't make payment to the contract

i know the question may sound silly but I'm relatively new. I'm trying to make a contract to receive payment from a particular wallet address just once and henceforth that address that made the ...
Patrick Ehimen's user avatar
0 votes
1 answer
2k views

How to mint NFT using ethers.js?

I'm a beginner in blockchain dev... I'm using the famous Hashlips ERC721 smart contract (available here: https://github.com/HashLips/hashlips_nft_contract/blob/main/contract/SimpleNft_flat.sol ). The ...
Henri's user avatar
  • 113
1 vote
1 answer
72 views

What is the transaction life cycle?

When I want to send 1ETH from an address A to address B, utilizing for example Metamask, what's going on behind the scenes? At the time that I click on submit/send the 1 ETH, does Metamask try to ...
Nikolas's user avatar
  • 15
2 votes
2 answers
627 views

Send ETH using ethersjs without private key

Most tutorials I googled need wallet's private key to send ETH, such as this. How can we send ETH without knowing the private key using ethersjs? So, that user can just call their MetaMask and send.
ratib90486's user avatar
0 votes
1 answer
306 views

Use WETH for NFT MArketplace

I am working on WETH pragma solidity ^0.8.5; import "./Token.sol"; contract WETH { function transferFrom(address recipient, uint256 amount) external { Token token = Token(...
Rohit Mittal's user avatar
0 votes
0 answers
29 views

Getting issue while installing @ethereum-alarm-clock/cli

Ran Command : npm i -g @ethereum-alarm-clock/cli Issue received below : I am able to install other packages though, Is there something i need to do? while npm i -g @ethereum-alarm-clock/lib , I got
Rohit Mittal's user avatar
1 vote
1 answer
73 views

Solhint: Why should I avoid multiple calls of "send" in a single transaction?

function withdrawAll() public payable onlyOwner { uint256 _each = address(this).balance / 4; require(payable(t1).send(_each), "Account is being paid out"); require(payable(t2)....
Gray Blanchard's user avatar
0 votes
1 answer
557 views

Error when including extra data in web3.eth.sendTransaction()

According to the docs for web3.eth.sendTransaction and the docs for eth_sendTransaction: The transaction object can contain an optional data parameter which should be a String that consists of: either ...
Sprout Coder's user avatar
0 votes
2 answers
894 views

Send ETH to Contract Fails in Tests

I'm trying to send ETH to a contract in tests using hardhat await owner.sendTransaction({to: greeter.address, value: "1000000"}), but it reverts with "function selector was not ...
Kof's user avatar
  • 2,849
0 votes
1 answer
104 views

can i send my testnet ethers to external testnet account?

I am rich now. I installed geth on ubuntu, created a testnet chain, made an ethereum account, mined 100 ethers, and tried sending 20 ethers to another testnet ethereum account. It seems I am learning ...
carrotcoach's user avatar
1 vote
3 answers
2k views

How to send ether from a smart contract address to another address?

I have a contract that I can deposit ethers by using a fallback function. The question is, I want to send the ethers INSIDE THIS smart contract to another random address. I am not asking to send ...
Abdulhakim's user avatar
0 votes
1 answer
628 views

How to specify priority fee and max fee per gas in Geth' JSON-RPC API?

A legacy transaction can be created with the following parameters through the eth_sendTransaction API: params: [{ "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to&...
q9f's user avatar
  • 32.6k
0 votes
3 answers
615 views

I am trying to create a store_transaction and change the Blockchain by passing a value

I am trying to create a store_transaction that is later on signed and sent and trying to receive a transaction receipt. I am getting error while creating a store transaction while trying to build it. ...
Sameer's user avatar
  • 11
0 votes
1 answer
437 views

Creating a smart contract that only accepts a specific ERC20 token [duplicate]

Currently building a smart contract that will basically receive money from users and users can withdraw what they've put into. I want the money held by the smart contract to be only USDC (+ USDT maybe,...
Xeway's user avatar
  • 26
0 votes
2 answers
418 views

web3.utils.toWei("1", "ether") appears as 4722.36648287 ether in metamask notification

I'm new to ethereum and when using web3.utils.toWei("1", "ether") it doesn't work properly. const transactionParameters = { from: metamaskaddr, gasPrice: '0x09184e72a000', // ...
NCoin's user avatar
  • 3
0 votes
2 answers
665 views

What are the major differences when making a send transaction with ethers.js, hardhat, geth, and eth-cli?

There seems to be so many tools to make a send transaction. What are the differences from using ethers.js, hardhat, geth, and eth-cli? I'm just trying to process a bunch of private keys for my service ...
Patoshi パトシ's user avatar
0 votes
1 answer
2k views

I am getting the following error : RPC Error: Invalid parameters: must provide an Ethereum address

I am getting the following error: RPC Error: Invalid parameters: must provide an Ethereum address. It is a simple code to send transactions using a metamask chrome extension. <script> let ...
Syscontech Support's user avatar
0 votes
1 answer
393 views

How to add transaction deadline?

I am using web3 to make transactions but I am stuck on how can I add transaction deadlines in web3.eth.sendTransaction function. I am using 0x API for getting the swap quote. My code :- await web3.eth....
Mohit's user avatar
  • 124
5 votes
3 answers
1k views

Is there an easy to use command line tool to create send transactions in Ethereum and forks of ethereum?

I'm trying to run a service that processes a bunch of ETH private keys and need to create send transactions via the command line. I know about geth, but are there other easier to use command line apps ...
Patoshi パトシ's user avatar
1 vote
0 answers
205 views

Sending AVAX on Fuji testnet using MetaMask: "RPC Error: Invalid parameters: must provide an Ethereum address"

I am able to manually send some AVAX from one to another wallet on the Fuji testnet using MetaMask. Now I am trying to program it as an on-click button on my dapp as follows: const ...
mooshot's user avatar
  • 11
1 vote
1 answer
690 views

How to set the receiver of ETH in a contract to send ETH from one address to another with solidity usign call() in remix IDE

I'm starting to learn solidity, and I'm trying to build a sendEther contract where some address sends an amount of ether to another address. I'm building it on remix, and I'm having trouble while ...
Lorenzo Battistela's user avatar
0 votes
1 answer
137 views

How to use web3 to send ETH from wallet A to wallet B through an intermediary Smart Contract?

I want to send eth from 1 wallet address A to wallet B address but through an intermediary Smart contract, what should I do? I don't know how to solve that problem yet. EX: https://bscscan.com/tx/...
Review ICO ANHZAIBRO's user avatar
3 votes
4 answers
1k views

Is there a way to control METAMASK via some type of api feature? I want to use it as my backend to send / receive eth and tokens

Is there a way to replace geth with just using metamask via some type of api via the command line? I want to interface with metamask to send and eth and erc20 tokens. Right now geth works, but it has ...
Patoshi パトシ's user avatar
0 votes
0 answers
24 views

How to force sending a transaction calling method on a contract even if it reverts? [duplicate]

I'm quite struggling with this from all day. I need to send a transaction on blockchain even if it says it will revert, but I can't understand how to do it since there's some kind of protection behind ...
MrSaulman's user avatar