Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
1 answer
551 views

Wait for incoming ethereum transactions and credit them after n confirmations

I'm trying to create a website where users can deposit ethereum. For my server I'm using node.js and express.js. I looked into web3.js but the docs are unclear to me and I don't know which functions ...
gggggggggg's user avatar
0 votes
0 answers
54 views

Optimizing ETH transaction code

I am using the below code for executing ETH transactions with web3.js Is it an optimized code? is there any room for improvements, what else can I add, or how can I handle exceptions/errors const ...
ershad7's user avatar
2 votes
1 answer
6k views

Best way to decode transaction input on the client side

I need to decode transaction input on the client side. Libraries like ethereum-input-data-decoder needs NodeJS dependencies like fs. Now I decode the one type of contract methods as follows: const ...
Narnik Gamarnik's user avatar
0 votes
1 answer
2k views

web3.eth.getBlock("latest") giving no object in the block!

I am trying to get the numbers of transactions in a rinkeby testnet in the last block I wrote the following code var Web3 = require('web3'); const Project_ID_Infura = 'write your own Infura ID'; ...
Anonymous's user avatar
  • 287
1 vote
1 answer
954 views

Send transaction throw bsc with web3

i'm trying to send a transaction via bsc using WalletConnect and web3 This is the connection code const provider = new WalletConnectProvider({ rpc: { 1: "https://bsc-dataseed.binance....
Francesco Grazioso's user avatar
6 votes
2 answers
13k views

tx fee (2.11 ether) exceeds the configured cap (1.00 ether), how to bypass default cap?

I'm getting this error when trying to make a simple ETH(BNB) transaction with very high gas, I've tried using different scripts with both web3 and ethers.js and both throw the same error on the BSC ...
Charlie's user avatar
  • 61
0 votes
1 answer
3k views

Web3.js Batch Request Limit?

I'm trying out Batch Request provided by web3.js. In the example below I want to test making 300 transactions but i get the error log displayed below. I'm trying to figure out the error log but it ...
Conviley's user avatar
  • 390
1 vote
1 answer
179 views

Exit process after sending multiple tx asynchronously

I have written a function that allows me to send an arbitrary amount of transactions, asynchronously, to my smart contract. However the process stays open even after the last transaction has finished. ...
Conviley's user avatar
  • 390
2 votes
1 answer
480 views

How to retrieve transaction hash value from the Promise object using web3js?

I'm trying to retrieve the transaction hash value after I call my smart contract method. My Promise object looks like below. returnPromise: Promise { "pending" } ​ <state>: "...
TThom's user avatar
  • 49
12 votes
4 answers
16k views

How to get events emitted by a transaction with web3.js

I'm writing a user interface in Javascript and I'm using the web3.js library. I have the transaction hash of a confirmed transaction. I would like to get an array of all events emitted by that ...
Jesbus's user avatar
  • 10.5k
0 votes
1 answer
201 views

Get lastest input transaction of the account

I am trying to get the recent IN transaction of the account while i try web3.eth.getTransactionCount("0xF092966e7bcc2b5646e0F0c20A715584DB37cd4B").then(function(trans){ console.log(trans); }); ...
Sammu Sundar's user avatar
2 votes
2 answers
480 views

Transmit array as first parameter in web3.js

When I develop in solidity combined with web3.js, I face some problem recently. I create a contract code below //setContractDetail(index,bool isConsentItem,uint8[] detailItems) function ...
Hermes Keng's user avatar
0 votes
2 answers
763 views

What happens when we use "callback" in a function ? and when do we need to use it?

What happens when we use "callback" as a keyword in a function ? And when do we need to use it ? and what happens if we do not use it ? For example in the following JavaScript code: function ...
Questioner's user avatar
  • 2,700
1 vote
2 answers
1k views

web3.toAscii(transaction hash) for web3js version 1

When i used web3.toAscii I received the following error : I think the reason is my web3 version i.e. '1.0.0-beta.34' If so, is there any alternative command for web3 version 1 for the following ...
Questioner's user avatar
  • 2,700
0 votes
1 answer
495 views

Creating a transaction from a webform - invalid number of args

I have a HTML web page where I am feeding user entries into a smart contract that is designed to "store" the entries in transactions. I have most of the application working, but I'm having trouble ...
Forrest's user avatar
  • 65
60 votes
6 answers
126k views

error: replacement transaction underpriced

Im trying to send a raw transaction using web3 to ropsten testnet and Im getting this error: replacement transaction underpriced where sometimes my tx works and sometimes I get this error. my tx ...
Ernane Luis's user avatar
4 votes
2 answers
532 views

Web3 Javascript API -- Transaction Object Not Matching Documentation

Noob question about the Web3 Javascript API. When I use web3.eth.getTransaction(), the object that comes back has some properties that I cannot seem to find in the documentation. For example, here is ...
mgalka's user avatar
  • 253
3 votes
1 answer
130 views

Isn't there an unlockAndSendTransaction function in web3 JavaScript API?

I really believe that I saw a function named unlockAndSendTransaction on a web3 Javascript API reference page somewhere on Friday 12/09/2016 but today (Monday, 12/12/2016), I am unable to find this ...
Ajoy Bhatia's user avatar
  • 1,446
4 votes
1 answer
375 views

Contract code not executing from web3, works from Mist

I seem to be having a problem w/ contract code not executing when called from web3 (works when called from mist). The Eth goes to the contract, so I know it is making the call at least. I am calling ...
babycakes's user avatar
  • 183