ethereum Questions
4
Solved
I want to make a simple smart contract that has a list, can set item, and can get the list.
Code in solidity:
contract lister {
mapping(int => string) list;
int id = 0;
function getList() r...
Cardin asked 3/6, 2016 at 5:52
2
Solved
I want to get token prices for uniswap and sushiswap exchange by using web.js
I am new to the crypto dev world, so please elaborate as much you can and if possible an example will be a lifesaver.
T...
Acadian asked 18/9, 2021 at 10:12
4
Showing an error while calling solidity contract, which is deployed already in ropsten-infura. I'm using web3(@0.19.1) for calling contract.
Anybody faced the same issue?
Passus asked 14/3, 2019 at 3:52
1
Compiled with problems:
ERROR in ./node_modules/cipher-base/index.js 3:16-43
Module not found: Error: Can't resolve 'stream' in 'C:\Blockchain\lottery-React\node_modules\cipher-base'
BREAKIN...
Multimillionaire asked 21/12, 2021 at 18:19
3
Solved
To start, let me mention this is an in-browser project, so i can only use
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js"></script>
So a few month...
Mansour asked 20/1, 2021 at 2:43
1
Solved
I am trying to look up pending transactions in the BEP20 network using web3.py.
As stated in in this stack overflow question, one option to do this is using the filter object.
Here is a minimal exa...
Chromyl asked 5/12, 2021 at 12:12
1
Hope you're doing well.
I am a developer and have a query regarding my 3d model preview on opensea testnet.
I have created a metadata file https://pattirose.growwithsabrina.org/nft/1.json
using pin...
Ability asked 26/11, 2021 at 13:0
6
I got empty array after I tried to web3.eth.getAccounts().then(console.log);and also got a warning which is./node_modules/web3-eth-accounts/src/scrypt.js Critical dependency: the request of a depen...
Aneroidograph asked 16/9, 2019 at 7:33
1
Solved
I'm running the following code with web3.py:
transaction = SimpleStorage.constructor().buildTransaction(
{"chainId": chain_id, "from": my_address, "nonce": nonce}
)
...
1
I want to build a Solidity smart contract in RSK and Ethereum that pays dividends every year.
Should I use the block time or can I rely on the block number, assuming a the current average inter-blo...
Twostep asked 24/11, 2021 at 20:45
5
While deploying contract on blockchain, on adding transaction it gives error insufficient funds for
gas *price +value
What is that mean?
Vaclava asked 23/3, 2017 at 8:27
2
What is the difference between msg.sender and address(this) in the below code?
**pragma solidity ^0.8.0;
contract Escrow{
address public payer;
address payable public payee;
address public lawye...
5
I'm trying to send wei/eth to the address of my solidity contract which have an external payable fallback function. My truffle javascript test below doesn't result in the balance of instance.addres...
Horoscope asked 10/10, 2018 at 13:4
1
Solved
Hello there I'm trying to use a contract made on solidity and deployed with brownie on my front end using React and typescript. also using the framework usedapp, as the documentation here says in o...
Otherwise asked 9/11, 2021 at 15:10
4
Solved
I have just started exploring Blockchain technologies and made my first smart contract the other day. To continue, I have tried to make a frontend for the smart contract but I am facing difficulty ...
1
Solved
I am attempting to generate a personal_sign in Golang like its implemented in ethers.js. Similar question but that ended up using the regular sign over the personal sign_implementation.
Ethers
// k...
Serpens asked 28/10, 2021 at 23:42
1
I am using Nextjs + Reactjs + Typescript. Without typescript it's working perfectly but while using Typescript I got this error.
By the way I am using useMemo here but I have tried initializing it ...
Summerville asked 27/10, 2021 at 16:35
1
Solved
I am writing and testing a smart contract. Using web3, I could not send a transaction from a Zero Address (0x0). I was wondering if it is ever possible to sign and send a transaction using the zero...
1
I've been trying to integrate WalletConnect by following this documentation of web3-react.
The configuration that I'm using for the connector is as follows:
import { WalletConnectConnector } from '...
Espousal asked 19/5, 2021 at 6:40
2
The code results in same output.
pragma solidity ^0.5.0;
contract mycontract
{
function add(uint c, uint d) public pure returns(uint)
{ uint e=c+d;
return e;
}
function add(uint j, uint ...
Asleyaslope asked 10/5, 2020 at 10:48
2
Solved
I need test ethereum for my pet project.
I go to https://faucet.rinkeby.io/ , put a link with my tweet with my Ethereum address in MetaMask, choose 3 Ethers / 8 hours.
The request was accepte...
2
Solved
As we know, metamask will no longer inject web3.js starting Jan 13, 2020. What are the approaches we should take to stop the dependency on web3?
Also how can we test it out with the existing Metam...
Interlock asked 4/12, 2019 at 9:19
4
Solved
I am trying to deploy my simple solidity smart contract onto the Rinkeby Network but I keep getting the error:
UnhandledPromiseRejectionWarning: Error: The contract code couldn't be
stored, ple...
Fruiterer asked 6/5, 2018 at 15:21
2
Solved
I have a struct Purchase in which I'm putting an array of payments. However, when I try to add the new payments array in my makePayment method I get an error back from the solidity compiler: "Inter...
2
I want to get all the accounts that a user has added in Metamask. I tried all web3.js methods to get accounts, but I always get just one account which is always the currently selected one.
Accord...
© 2022 - 2024 — McMap. All rights reserved.