Questions tagged [smart-contract-wallets]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11 votes
1 answer
8k views

What is DSProxy and how does it work?

Several Ethereum projects use DSProxy to make their protocols more user-friendly. What is DSProxy exactly and how does it work?
Paul Razvan Berg's user avatar
6 votes
1 answer
3k views

how to deploy a smart contract on same address in ethereum and binance

I have a challenge from my client that he wants to deploy a token contract on ethereum & binance but wants to have same contract address ? He has proved to me that it is possible but has shared no ...
Ashish kumar's user avatar
6 votes
2 answers
2k views

How to use a placeholder image during minting, and then only updating metadata with the actual URI after minting?

As per the title. I want to be able to have a placeholder image for my NFTs, something like this: https://opensea.io/collection/thealcabones Then subsequently, after launch, I then update the metadata....
Welpers's user avatar
  • 61
5 votes
6 answers
8k views

Help Please hardhat.config.js * Invalid account: #0 for network: Rinkeby - private key too short, expected 32 bytes

Hi Please i get this error while compiling hardhat.config.js : * Invalid account: #0 for network: Rinkeby - private key too short, expected 32 bytes i have my private key in dot env copied from ...
BHUNTX.eth's user avatar
5 votes
2 answers
5k views

What are some reliable multisig wallet solutions for Ethereum?

so I partnered up with 4 people that we work on a project. It is not that we dont have some basic level of trust with each other but we would like to have some added reassurance when it comes to ...
papajo's user avatar
  • 171
4 votes
1 answer
2k views

How to retrieve multiple values returned from solidity with ether.js?

In ethers.js documentation, it is written to retrieve data like below // 'contract' is an instance of Contract made with ethers.js // Get the current value let currentValue = await contract.getValue();...
Yongjun Kim's user avatar
4 votes
1 answer
5k views

ERC20 decimals in smart contract

How will I tell the EVM and wallet about the decimal? Do they automatically read it from the constructor function???
Zartaj Afser's user avatar
  • 3,689
4 votes
2 answers
1k views

How do i read the value returned by a method in my smart contract in web3j

I'm following a tutorial in which the instructor is calling contract.getConuter().send this returns the value of the counter on smart-contract but in my case, it's returning TranscriptReciept object. ...
Shoaib Kakal's user avatar
4 votes
1 answer
2k views

Scam where unsolicited airdrop NFTs, if sold, drains victim's wallet

There are many reports of random NFTs being distributed to collectors' eth wallets on Opensea, and if the recipient accepts an offer to sell them, or lists them, they apparently verify a MetaMask ...
user610620's user avatar
  • 1,518
4 votes
3 answers
4k views

504 HTTP Error when trying to get ETH from Goerli testnet (Alchemy Goerli Faucet)

I'm trying to get some ETH from the Alchemy GOERLY FAUCET but the client keeps sending 502 or 504 HTTP errors all day. Do you have any alternative, please?
Zakaria's user avatar
  • 41
4 votes
1 answer
2k views

Is it possible to use a smart contract without connecting to a wallet?

I've a web application where I have some structure with ids and a function to get prices by an id from an smart contract, and I've payable functions. I'm not able to show prices for each item if I don'...
Loui's user avatar
  • 71
3 votes
1 answer
3k views

Error: chainId address mismatch

i'm trying to deploy a simple smart contract with node-js on a ganache-GUI but i keep getting this Error: chainId address mismatch; may chainId is the same as the networkId in the ganache app witch is ...
mostafa alipour's user avatar
3 votes
1 answer
480 views

Where are the Ethereum smart contracts actually stored?

I am trying to understand where are the smart contracts actually stored. On most of the websites where I managed to get some info, it says that smart contracts are stored on the blockchain, but they ...
Boki XD's user avatar
  • 121
3 votes
2 answers
4k views

Solidity : Error encoding arguments: Error: invalid BigNumber string

I just begun to learn solidity by following a youtube video(https://www.youtube.com/watch?v=M576WGiDBdQ). This is duplicated question for Why do I keep getting invalid argument?, but I can't resolve ...
Young-Kwang Oh's user avatar
3 votes
2 answers
154 views

How does WBTC on Ethereum work?

I'm trying to wrap my head around how WBTC works on the Ethereum blockchain. My understanding at the moment is that when BTC is sent to a particular BTC address, then a WBTC is generated on the ...
你的老师's user avatar
3 votes
1 answer
377 views

how do i solve KeyError: 'wallets'?

I followed the answer to a similar question posted on here by adding dotenv: .env to the top of my brownie-config.yaml file but still having the same issue. This is my code in the brownie-config.yaml ...
Basho's user avatar
  • 31
3 votes
2 answers
740 views

Is possible to call a non-payable function of smart contract and send Ether to contract at same time?

I deployed and verified a smart contract without declared a function as payable. Now I need to send ether at same time a non-payable function is called. Any posibility? I don't want my DApp to pay gas ...
Extrange planet's user avatar
3 votes
3 answers
186 views

How can Account Abstraction work without EOAs

One of the promises of AA was that we would no longer need EOAs. However, when I see providers of smart wallets like Safe and Biconomy, both still require you to have an EOA to call the contract, ...
Dimitri Borgers's user avatar
3 votes
1 answer
41 views

from where do we give the gas fees while deploying from vscode on a testnet?

just a quick question I was following the patrick collins course on solidity with javascript and in it, we deployed a contract created on vscode using hardhat deploy on a testnet rinkeby But since ...
Jaskaran Singh's user avatar
3 votes
1 answer
152 views

Deploy Upgradable contract with factory contract

I have a simple contract below Swap.sol that is upgradable. // SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "@openzeppelin/contracts-upgradeable/proxy/utils/...
Haris's user avatar
  • 123
3 votes
1 answer
375 views

Error: exceeds block gas limit / transaction underpriced

When I call the function .send({ from: accounts[0], gas: "5000000000" }); and attempt to deploy my contract, I get an :Error: exceeds block gas limit." When I switch to a much lower ...
Louis L's user avatar
  • 31
3 votes
1 answer
154 views

Is it possible to stake ETH and automatically send the rewards to another wallet?

I'm wondering if there is an established way for me to stake ETH from one address and have a different address earn the staking rewards?
newnew's user avatar
  • 31
2 votes
2 answers
6k views

How to get smart contract information about ABI token balance by web3?

when I get ethereum block data like below... from web3 import Web3 w3 = Web3(Web3.HTTPProvider('http://127.0.0.1:8545')) print(w3.isConnected()) block = w3.eth.get_block('latest') it can get block ...
Minwoo's user avatar
  • 61
2 votes
1 answer
1k views

Lock and unlock in solidity

I want to create a simple smart contract, where initial supply is 1000 and send 1000 to a specific wallet. Now I want the supply of wallet(1000) to be locked for a year and every month a 5% of that ...
stofu's user avatar
  • 93
2 votes
1 answer
861 views

Detect receiving token address in "receive() payable"

for the given receive function , is there a way I can detect the receiving tokens address (Detect what coin my contract is receiving ) is it possible to extract this information from msg ? receive() ...
0xD1x0n's user avatar
  • 140
2 votes
2 answers
4k views

TypeError: Member "toString" not found or not visible after argument-dependent lookup in uint256

im having a big trouble trying to resolve this problem. Maybe anyone here can help me find it. This is the .sol contract and im having this error: TypeError: Member "toString" not found or ...
vasik's user avatar
  • 71
2 votes
2 answers
631 views

How to interact between DB and smart contract?

I want to create a smart contract and when I transfer coin on it, it's automatically update on the DataBase (I use Cassandra), so you do your things on the website with it and you can win or loose ...
Louis HUORT's user avatar
2 votes
3 answers
4k views

How to write a Solidity function that accepts ERC20 tokens as payment? [duplicate]

There is an ERC20 token (contract 1 - I do not own this.) and the tokens are being used to pay for a service in my services contract (Contract 2). I can easily send contract 1 tokens from the user ...
lopezdp's user avatar
  • 123
2 votes
3 answers
502 views

token.transferFrom() Will Not Work with ERC20 Token

I've made an ERC20 token (TaylorSwiftCoin, aka SWFT), and I'm attempting to make a very basic smart contract. I'm running this on the Dune TestNet, and I simply want this smart contract to take 100 of ...
Henry's user avatar
  • 21
2 votes
1 answer
274 views

Can I lock an account to a specific smart contract?

I want to lock an account to a specific Smart contract. So that the account will allow only the transactions from this specific smart contract. If some other smart contract tries to interact with this ...
G Pavithra 's user avatar
2 votes
1 answer
549 views

Mint nft on Testnet

If we can use testnets while verifying your wallet address with smart contract, e.g. Rinkeby Robsten vs. can we use testnet to confirmed opensea account?
Slavic.Qᴼˣ's user avatar
2 votes
1 answer
817 views

How to encode initializer in gnosis-safe proxy contract?

Currently I start learning gnosis-safe contracts I have a small doubt in gnosis-proxy contract how to encode initializer in createProxyWithNonce function. Reference transaction id : https://rinkeby....
Akshay Tarpara's user avatar
2 votes
4 answers
3k views

I am getting error ERC1155: transfer to non erc1155 receiver implementer means

pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract newToken is ERC1155{ using ...
Samresh Kumar Jha's user avatar
2 votes
1 answer
909 views

Error : Using ".value(...)" is deprecated. Use "{value: ...}" instead

Somebody please help me find the correct pattern to make this solidity error disappear, I'm using specifically solc^0.8.0, here is my code snippet : function fundAirline() isAirlineRegistered(msg....
Yaa_seen's user avatar
2 votes
1 answer
1k views

Stop frontrunner bots by comparing block.number of buy tx versus sell and transfer tx?

I'm wondering whether I can stop / impair the 'standard' frontrunner / sandwich bots from frontrunning my (pretty standard) ERC20 token contract. I'm thinking to add a mapping called "...
Cheasy's user avatar
  • 21
2 votes
1 answer
1k views

What is the pupose of TokenID increment in OpenZepplin implementation?

I am exploring OpenZepplin implementation of ERC721. One thing I found in example of Counters.sol to increment/decrement tokenId. I do get that we do not tokenId for the uniqueness in case the owner ...
Volatil3's user avatar
  • 337
2 votes
1 answer
721 views

Who pays the computation fee in account abstraction ERC-4337? in what currency?

I hear that by imposing account abstraction specified in ERC-4337 EOA is not the only one that can instantiate a transaction. What I'm confused about is the actual entity that pays the gas fee and the ...
Yongjun Kim's user avatar
2 votes
1 answer
470 views

Node modules is not added in the folder after running yarn hardhat

Even after adding the hardhat packages by yarn multiple times, node modules are not showing in the folder. What am I doing wrong?
absng842's user avatar
2 votes
2 answers
523 views

transfer/deposit ether on contract fails

I am trying to deposit Ether on a smart contract. Looking at the documentation my approach first looked like this: // SPDX-License-Identifier: MIT pragma solidity ^0.0.8; contract SendEther { ...
rajohs's user avatar
  • 179
2 votes
2 answers
1k views

calling smart contract function from React

I am calling smart contract function in Solidity from React, which should count the votes for the specific choices. The function works perfectly when I call it from my truffle console. However, when I ...
Timotej Arnuš's user avatar
2 votes
1 answer
59 views

Don't know how to get money out of smart wallet

Three years ago I bought some Ethereum. Little as I knew I put some of it in a smart contract. The smart contract says it has 0.21 ether. https://etherscan.io/address/...
Jorrik Klijnsma's user avatar
2 votes
1 answer
125 views

Is it possible to create a paymaster that use ethers in smart contract wallet as gas payment

In the context of ERC-4337/account abstraction, we know that paymasters are able to sponsor a UserOperation from a smart contract wallet, we can even allow the use of an ERC20 token in a smart ...
swkcoding's user avatar
2 votes
1 answer
3k views

ERC721: caller is not token owner or approved

Can someone help me figure out what is missing with the contract below the functions mint, listToken, buyNFT work fine Although, when it comes to putUpForSale, the transaction keeps reverting with the ...
user9958772's user avatar
2 votes
1 answer
46 views

Way to send tokens(I created ) to another smart contract for Crowdsale

I want to develop a crowd_sale contract. I have an ERC20 token contract. Now I want to transfer the tokens to the crowdsale contract at the time of deployment, so that people can buy tokens from that ...
Zartaj Afser's user avatar
  • 3,689
2 votes
1 answer
342 views

I am getting virtual machine error while running my brownie fundme contract

PS E:\brownie_fund_me> brownie run scripts/fund_and_withdraw.py --network ganache-local INFO: Could not find files for the given pattern(s). Brownie v1.16.4 - Python development framework for ...
Kamal Shah's user avatar
2 votes
1 answer
35 views

I don't understand how to fix this error i am trying to deploying my contract with python

This is my code please help, I am busting my head for 2 hours I have installed many libraries, I don't know if I am doing it wrong or what from solcx import compile_standard, install_solc with open(&...
Karamjeet Singh's user avatar
2 votes
2 answers
65 views

Serious uses for blockchains with smart contracts?

It seems like many of the canonical "use cases" for smart contracts don't hold much water under examination. Typically the issue stems from the fact that the points of contact between the ...
jsstuball's user avatar
  • 121
2 votes
1 answer
773 views

KeyError: 'wallets'

Screenshot of directory: This is the code in my brownie.config.yaml file: reports: exclude_contracts: - SafeMath dependencies: - smartcontractkit/[email protected] - ...
rizonpoint's user avatar
2 votes
1 answer
249 views

Retrieve deposited number of Uniswap LP tokens from smart contract

I’m doing yield farming on a smart contract and I try to find out the total amount of my deposits. I know that I can follow the ERC20 tx on etherscan, but I would like to find an easier way. Under ...
user3630024's user avatar
2 votes
0 answers
49 views

How to do a paymaster from scratch?

I just read and learned about the account abstraction concept, and I like it when I know it has a gas-less concept (paymaster). During reading and implementing, I have some questions: If I start ...
Wind's user avatar
  • 21

1
2 3 4 5
11