calling smart contracts methods using web3 ethereum

Trying to work around the blockchain using Ethereum, I'm facing problems when trying to interface with a deployed contract. What I would try to achieve is to call a method to display information...

Smart contract method is not a function in web3

I am trying to follow an older tutorial on web3, but am getting errors that I believe are due Solidity being updated. I have the following code shown below var express = require("express"), ...

What should the "params" argument to web3::contract::Contract::query look like?

I'm trying to interact with a multisig smart contract (the Gnosis multisig) and ask for the transaction details and for the number of confirmations. Here's the straightforward Python code for what...

connexion to infura fail with web3 in firebase cloud functions

I have an issue with Firebase cloud function. The connexion to infura fails when my function is called. I have upgraded to Blaze plan as mention here, but it didn't change. Here is my code: const...

Uncaught Error: Returned values aren't valid, did it run Out of Gas?

I'm listening to events of my deployed contract. Whenever a transaction gets completed and event is fired receiving the response causes following error: Uncaught Error: Returned values aren't...

Error: Returned values aren't valid, did it run Out of Gas? on selfdestruct()

the code works fine, cause i'm following an online crash course. my problem is when i enter selfdestruct() it says something about an error, that i am unsure of what. please have a look, and see...

Error Unable to resolve module `http` from web3-providers.umd.js

I installed web3 to link Solidity to React-native. As in the code below, I deployed it from Remix and entered the address and ABI. import Web3 from "web3"; const web3 = new Web3( new...

pip install web3 not installing

any advice would be greatly appreciated. I have installed visual studio like it tells me in the error and I have also attempted to pip install this in a venv environment however its still not...

Uncaught (in promise) Error: Returned values aren't valid, did it run Out of Gas?

my package.json "dependencies": { "web3": "^1.2.1" } my App.js async loadBlockchainData() { const web3 = new Web3(Web3.givenProvider || 'http://localhost:7545') const network =...

How can I get more information on Python unexpected SIGABRT?

I'm using: MacOS Catalina, version 10.15 (19A603). python 3.7.4 pip3 Running and Debugging the following Python code within venv: import jose print(jose) from jose import jwt token =...

Ethereum - in web3js, new contract instance with empty methods

I have a function that creates a valid solidity file, it's name is "makeContract". I think it's better not to post the whole function at first because it has 97 lines, but if someone asks I post....

Web3 Cannot get value of a public variable from contract

Solidity code: pragma solidity ^0.5.8; contract remainNew{ address public owner = msg.sender; uint public cubeCount = 0; modifier onlyBy(address _account){ require( ...

Failed to install gcc on Python-3.7-alpine docker container

I am trying to set up a Python docker container, when I run the command "docker-compose up" to build the Dockerfile it throws me this error message below. The docker file was successfully built...

Why are these Ethereum Contracts not sweeping USDT?

I have an Eth contract, called the controller, which is used to: Generate new eth deposit addresses, one for each user, which is an eth contract as well. Sweep these deposit contracts when a user...

cannot install web3 in python virtual_enviroment

I am using $pip install web3 inside a python_virtual_env, but I get the error below. Defaulting to user installation because normal site-packages is not writeable Collecting web3 Using...

Passing FixedArrays and Bytes to smart contract

I am having some issues with passing a 2 x 2 matrix to a function using the web3 library. The library is meant to pass parameters to an ABI (Abstract Binary Interface) which calls a smart contract...

ImportError: Couldn't import Django after running " heroku python manage.py migrate" in CMD

I have a following error after running " heroku python manage.py migrate " in CMD. C:\Users\ky2001\Desktop\my_app>heroku run python manage.py migrate Running python3 manage.py migrate on ⬢...

Unhandled promise rejection trying to deploy smart contract

I'm trying to deploy a simple contract to Ganache, like so: const fs = require('fs'); const Web3 = require('web3'); const web3 = new Web3('http://localhost:8545'); const bytecode =...

How to interact with OpenZeppelin proxy contracts from Truffle console?

I cannot figure out how to use @truffle/contract to interact with contracts deployed by package @openzeppelin/truffle-upgrades (ProxyAdmin and AdminUpgradeabilityProxy). I have deployed my...

Localhost 3000 unable to recognize metamask wallet

I have run npm start and have connected my metamask wallet via a custom RPC ganache host: 127.0.0.1: 8545 with chainID 0x539 on metamask. The ChainID i am not sure about as when I entered the...

Why is it impossible to deploy a smart contract (to Mainnet) using Truffle?

Why is deploying to Mainnet using Truffle so difficult? Here is a rundown of trying to deploy to Mainnet... Current Gasprice is 110 Wei. Therefore 110000000000 wei Let's plug that in.. mainnet:...

Solidity and React: cannot use method.call() for view functions in a contract

I was trying to make a to-do list using react as my front-end and solidity as my backend. I used Truffle and Ganache to test it. I successfully set up the private blockchain and imported multiple...

Compute uniswap pair address via python

I`m trying to compute (off-line, i.e. without an http requests) address of an Uniswap pair, with python, web3 and eth-abi libraries, based on this solidity example. address factory =...

What is the meaning of package name before @git in package-lock.json

When I try to run npm install, I got an error: Could not install from "node_modules/eth-sig-util/[email protected]+https:/github.com/ethereumjs/ethereumjs-abi.git" as it does not contain a...

web3 install fails due to Insecure Credential Storage and Insecure Credential Storage

Installing latest web3 version 1.3.5 on Ubuntu with npm version 7.12.0 fails with a couple of high severity errors. What is typical time-frame for a fix? npm audit report underscore 1.3.2 -...

Web3 Error: Geth Could not transact with/call contract function

I decided to run my own ethereum/bsc fullnode. I downloaded geth-linux-amd64-1.1.0 and ran it like this: geth --syncmode "full" --http --http.port 8545 --http.corsdomain "*" --http.addr...

Returned values aren't valid, did it run Out of Gas? web3 1.5.0 and sol-0.5.15

I am new to the field of blockchain and ethereum. I have been trying to create a simple testing network using truffle and ganache where I created a new workplace in truffle and tried to build a...

Panic: max fee per gas less than block base fee: address 0xbc8153EE0b1E9B1f1E8153945400dc38EDbD8638, maxFeePerGas: 1 baseFee: 875000000

I found the following example for working with the SimulatedBackend. Until recently that worked fine, however this code now results in a panic (panic: max fee per gas less than block base fee:...

'code': -32603, 'message': 'Error: Transaction reverted without a reason string' while i'm trying to use swapExactTokensForTokens UNISWAP

I have read documentation on this function. I'm using Hardhat to visualize Blockchain at a particular moment. I deposit() ETH to WETH, then I approve() WETH to router. Everything looks fine. But...

PIP failed to build package cytoolz

I'm trying to install eth-brownie using 'pipx install eth-brownie' but I get an error saying pip failed to build package: cytoolz Some possibly relevant errors from pip install: ...