Category "ethereum"

totalsupply() is not a function openzeppelin contracts

I'm trying to import some contract files from open zeppelin so my solidity smart contracts can inherit their functionality, when trying to write chai tests that

Can we deploy same ERC20-token on different blockchains?

I want to deploy my own ERC-20 token on different blockchains, so is there any possibility to deploy the same token contract on different blockchains. If we do

Getting error while deploying smart contract using truffle

2_deploy_contracts.js ===================== Replacing 'SimpleStorage' ------------------------- Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({ code:

Decode constructor arguments in solidity

I playing Ethernaut Level 8. The goal is to get access to the private password state variable and unlock the contract. I know one could use await contract.unloc

Amazon Managed Blockchain not showing Ethereum network

I am a newbie in smart contract development. I just create a smart contract for some analyze how it works, so I used the truffle suite with vs code to create a

Write to ethereum wiithout metamask

I'm trying to write some data to Ethereum Rinkeby test network without using meta mask, But while calling the method i'm getting the error below , But my argume

Sender account not recognized on private ethereum network

I'm currently developing a dApp in Solidity and am working on a web3 library to handle communication with it. I struggle with the process of new account creati

Can you call a Solidity contract method with only Metamask?

I’m wanting to use Metamask in my app to let users pay a fixed ETH fee (plus gas) to call a method from my Solidity contract. I looked at the Metamask doc

How to extract ethereum from the smart contract

I am a newbie in the blockchain technology and I have question. I just deployed an Ethereum smart contract to the Rinkeby testnet network and minted a few NFTs.

When compiling my solana code , I am getting "TypeError: Named argument "username" does not match function declaration."

pragma solidity ^0.8.4; import "hardhat/console.sol"; contract Ewitter{ struct User{ address wallet; string name; string username;

Does approve take time to be confirmed, and how to deal with this in BSC?

Hi I am doing BSC DApp using web3 with react. I am very new to this field. I found after call approve, the transfer(or zapInToken in my case) will not be succes

Standard Common Practice Method in Solidity to perfrom any type of division?

I am trying to do the following calculation with solidity: 3,000 / 45,000,000 = 0.000067 with the following method: // SPDX-License-Identifier: MIT pragma solid

Is there any way to initiate a disconnect request to the Metamask wallet?

I'm building a decentralized application where users can connect their cryptocurrency wallet (Metamask) to my website. They can initiate a connection request by

How to get all tokens from Ethereum Chain

I want to know how to get a list of all existing erc20 tokens in the ethereum blockchain. Because I want to get a list of all coins what a users holds in his wa

Is it possible to connect someone else's MetaMask account?

I've been told that signing a message on a Dapp is the only way to prove that you actually own the account you are connecting with (i.e., simply connecting your

How can I implement a lazy-minting smart contract that doesn't actually mint NFTs?

This is my first experience writing a smart contract, so I am still trying to navigate how this all works. I have a smart contract on the Rinkeby test network t

Is possible to see output data when tracking a transaction from its address on Etherscan?

I wonder if it is possible to see "Output Data" on Etherscan for non-view transactions that returned values, I mean it is possible to see "Input Data" when fetc

ValidationError on smart contract function call for no apparent reason(web3py)?

I am trying to call Uniswap's Router's function swapExactTokensForETHSupportingFeeOnTransferTokens(). When I enter the values manually on etherscan, it goes thr

ERC1155 Sell/Buy NFT Solidity

My contract for ERC1155 marketplace to mint buy and sell the NFT. The nft is getting minted , However the NFT is not showing in market place and not able to pur

Web3 Python Gas Gwei not working: intrinsic gas too low

Why is the gas fee not working? If I remove the gas fee, the transaction works. But if I add a gas fee, the transaction fails and returns error: {'code': -32000