Error: Returned error: The execution failed due to an exception. @ web3.eth.estimateGas

I am having problem using bignumber.js with web3: const sender = ‘0xss’; const recipient = ‘0xxx’; const amount = 1000; // have to use Bignumber for more than 1000 const decimals = 18; const amountHex = web3.utils.toHex(new BigNumber(`${amount}e+${decimals}`)); const count = await web3.eth.getTransactionCount(sender); const data = contract.methods.transfer(recipient, amountHex).encodeABI(); const estimateGas = await web3.eth.estimateGas({ from: sender,…

running bitcoin-cli -testnet getblockchaininfo

Hello when I run this command (bitcoin-cli -testnet getblockchaininfo) I get this: { “chain”: “test”, “blocks”: 0, “headers”: 0, “bestblockhash”: “000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943”, “difficulty”: 1, “mediantime”: 1296688602, “verificationprogress”: 4.453828060385498e-08, “initialblockdownload”: true, “chainwork”: “0000000000000000000000000000000000000000000000000000000100010001”, “size_on_disk”: 293, “pruned”: false, “softforks”: [ { “id”: “bip34”, “version”: 2, “reject”: { “status”: false } }, { “id”: “bip66”, “version”: 3, “reject”: {…

Solidity Contract Length

What is the max length of solidity contract? I have been trying to deploy a contract of 328 lines of code on Remix Browser with a locally created Quorum Private Permissioned Node. I get the following error Note Quorum version: quorum-v2.4.0 Genesis Config: “homesteadBlock”: 0, “byzantiumBlock”: 0, “chainId”: 10, “eip150Block”: 0, “eip155Block”: 0, “eip150Hash”: “0x0000000000000000000000000000000000000000000000000000000000000000”,…

How to calculate the Average velocity and the Average acceleration of Bitcoin transactions

I am working on a Bitcoin project and I would like to extract the following features 1- Average velocity: represents the speed with which bitcoins flow to a user 2- Average acceleration: represents the acceleration of bitcoin flow to a user I have the following attributes: user ID ( represents the user) the total number…