Questions tagged [smart-contract-wallets]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7
votes
1answer
5k 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?
4
votes
1answer
576 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 ...
4
votes
1answer
321 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....
2
votes
1answer
41 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/...
2
votes
1answer
39 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 ...
2
votes
1answer
224 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 ...
2
votes
1answer
188 views

KeyError: 'wallets'

Screenshot of directory: This is the code in my brownie.config.yaml file: reports: exclude_contracts: - SafeMath dependencies: - smartcontractkit/chainlink-brownie-contracts@1.0.2 - ...
2
votes
1answer
76 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 ...
2
votes
0answers
12 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 ...
2
votes
0answers
53 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?
1
vote
2answers
82 views

Who pays gas fee for ERC-20 token transactions in exchanger?

i am developing an exchanger as a hobby project in next js. I am just starting to learn about blockchain. I am generating new deposit ethereum addresses for every user. Now my main confusion is, when ...
1
vote
1answer
311 views

Cannot read properties of undefined (reading 'address')

Im trying this Solidity and VueJS tutorial from MEDIUM. I even git cloned the github sourcecode, but I keep getting this error on the browser console: ERROR 1: Error initializing Drizzle. ERROR 2: ...
1
vote
1answer
471 views

Scam where unsolicited airdrop NFTs, if sold, empties 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 ...
1
vote
2answers
912 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 ...
1
vote
1answer
206 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 ...
1
vote
1answer
124 views

If someone performed an arbitrage, is it possible to see the smart contract he executed if I know his wallet address?

For example if I look at an address like this: https://bscscan.com/tx/0xfbe65ad3eed6b28d59bf6043debf1166d3420d214020ef54f12d2e0583a66f13 I can see the transactions, but is it possible to see what ...
1
vote
1answer
109 views

How to write a smart contract for access level (read/write)?

I have seen a couple of tutorials on how to code smart contracts, but I can not quite gather how to write one for permission and access level on a blockchain. How can you grant access to a user to ...
1
vote
1answer
2k views

what is the cheapest way for sending ethereum from 10 account addresses to 10 account addresses?

What is the cheapest way to send ether to 10 addresses? By using smart contract or using externally owned account to send one by one...? I know that the gas limit of a normal transaction is 21,000......
1
vote
2answers
713 views

Can someone help me figure out how to get my UNI from an old MCD vault?

So here's my problem: My UNI drop was sent to and outdated instadapp mcd vault at contract address: 0xc653461d3D4c6AD53c16ebE16fa07f820e115139 which i am the owner of at address: ...
1
vote
1answer
26 views

How do you transfer eth out of smart contract from etherscan?

I have eth on a smart contract from people minting our nfts. How do I transfer that eth out? Can i do it on etherscan as long as I'm signed into the address that uploaded the contract to mainnet? Here ...
1
vote
1answer
23 views

How can I create a smart contract using another smart contract?

I want to create a smart contract which I can link to my website using web3.js and create input fields for creating a contract using the main contract and I can set the fees also which should go ...
1
vote
1answer
82 views

multiple arguments giving error web3 [closed]

.addMedicalReport( patientBio.id, patientBio.name, patientBio.birthDate, patientBio.phoneNumber, patientBio._address, patientBio.MedReportId, ...
1
vote
1answer
61 views

Why does sites like Etherscan display complete state of transactions?

I just started learning about Ethereum, found sites like etherscan.io very interesting, but was wondering about few things, please help me understand. Question 1 Why etherscan.io display complete ...
1
vote
1answer
96 views

How to call smart contract function when the owners address receives ethers?

A token ERC-20 smart contract can call functions when the transfer() function is called to send or receive tokens. I can test if is the owner address and make things. Its possible that my smart ...
1
vote
1answer
106 views

Exchange Deposit Smart Contract

I'm developing ETH and ERC20 tokens deposit service. for every user I need unique wallet address, Can I develop a smart contract to generate unique wallet address for every user? Can I transfer ...
1
vote
0answers
33 views

Sign ERC20 transaction by wallet A and broadcast by wallet B [duplicate]

I have 2 wallets: wallet A and wallet B where wallet A holds some amount of an ERC20 token. I would like to be able to transfer some of those ERC20 tokens from wallet A to wallet B in a way that ...
1
vote
1answer
21 views

Can two different addresses be assigned to a single smart contract?

For example, if I want to send money to my smart contract at address A. And then send money to the same smart contract at address B.
1
vote
0answers
23 views

Important Question regarding Github repository. Need kind Help!

I am facing some errors during the installation of dependencies. whenever I run npm install the dependencies start downloading however after a few seconds it gives the following error shown in ...
1
vote
0answers
54 views

Withdraw funds from contract

I made the following withdraw function in my smart contract: function withdraw() public onlyOwner { (bool success, ) = msg.sender.call{value: address(this).balance}(""); } I call ...
1
vote
1answer
27 views

error input in remix

Error: types/values length mismatch (count={"types":3,"values":4}, value={"types":["address[]","address","uint256"],"values":[&...
1
vote
1answer
542 views

How do I execute the withdraw function to withdraw token from smart contract?

Total newbie here. So I deployed a contract and already did the flash loan, but now I want to withdraw the remaining funds that I deposited into the smart contract (for the premium fee). How do I ...
1
vote
1answer
75 views

Ethereum Solidity (smart contract) blockchain implementation for selecting a node as a miner to add the block

If I use a proof-of-work (PoW) algorithm in the Ethereum blockchain, the node selects to mine a new block is totally random as per my local implementation using Go-Ethereum and inter-process ...
1
vote
1answer
458 views

Error when call contract method on binance smart chain

when a i call any of contract methods (the contract is the pancakeswap factory), this error return error: call revert exception (method="allPairsLength()", errorSignature=null, errorArgs=[...
1
vote
1answer
438 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'...
1
vote
1answer
38 views

As a contract owner, how do I remove the ethers from the contract address automatically to my wallet?

As a contract owner, how do I remove the ethers from the contract address automatically to my wallet?Can I have a function that when the contract receives the ethers from the costumer, it ...
0
votes
1answer
428 views

I want learn smart contract trading [closed]

ALL I WANT learn about smart contract trading. I see on etherscan many bot making big money daily with smart contract. E.g I see bot are work single transaction swap weth to token to Eth In than bot ...
0
votes
3answers
239 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 ...
0
votes
1answer
75 views

Transfer ERC20 tokens of a smart contract

I have an smart contract where people had to send some ETH using a simple transfer. Some of them transferred ERC20 tokens and not ETH. Is there a way of sending this ERC20 tokens back to it's owners? ...
0
votes
2answers
338 views

Is it possible to send tokens to any smart contract address?

This is a BSC address but I noticed people are able to send tokens to a smart contract address. I thought only wallets can receive compatible tokens: https://bscscan.com/address/...
0
votes
1answer
25 views

What happens when the owner kills a multisig wallet?

if the owner decide to kill a multisig wallet (Smart Contract), Is he/she will be able to do kill the contract? If so where does the ether get deposited to?
0
votes
1answer
48 views

Using ERC20 inside of ERC721

My question may be very beginner, but I can't find examples or ways to apply this, for a better explanation I'm putting my ERC20 and ERC721 code below // SPDX-License-Identifier: MIT pragma solidity &...
0
votes
1answer
25 views

How to subscribe to native Ethereum transfer from Argent wallets?

I am wondering how do I subscribe to native ETH transfer events such as this one https://etherscan.io/tx/0x7357f1f0885811b2888dad7e7b1aa0f3016c7b0f8a179e37e463d5e941889bab#eventlog with topic[0]: ...
0
votes
1answer
40 views

TypeError: Wrong argument count for function call: 0 arguments given but expected 1. token = new ERC20Basic();

When I try to compile the code on Ethereum's own site, I get the following error. Can you help me? line: 99 pragma solidity ^0.6.0; interface IERC20 { function totalSupply() external view ...
0
votes
1answer
29 views

How to verify JSON result of smart contract method call on my own backend?

I am developing the dApp (related to ERC-721 based NFT) which works with my own backend. I am going to send the result JSON for a smart contract method call to my own backend. On my backend I want to ...
0
votes
1answer
53 views

What happens to the balance of the contract account?

I am just having issue understand the concept behind smart contracts. I understand that EOA triggers a tx to a contract account and that the hashcode calls a program on the EVM (a separate entity to ...
0
votes
1answer
67 views

ERC20 token conversion to ETH or USDC

How can we convert ( via smart contract coding ) any erc20 token like BAT back to ETH or USDC ? I am very new to smart contract programming and I want to write the smart contract for the conversion. ...
0
votes
1answer
43 views

How to securely send a message

I was wondering that can I encrypt a string, send it to a smart contract, for that to be decrypted only by some address's private key? e.g "Hello" to be encrypted in a way that it would be ...
0
votes
1answer
26 views

ParserError: Expected ',' but got ';' 31 | require(balance0f(from) >= value, 'balance too low';

I'm getting this error when trying to compile: ParserError: Expected ',' but got ';' --> gabicoin.sol:31:56: | 31 | require(balance0f(from) >= value, 'balance too low'; | ^ Below is the code: ...
0
votes
2answers
185 views

Can retire funds from a smart contract

I deploy a smart contract and I provide it with some eth. Now I want the amount I did provide. Ideas? pragma solidity ^0.5.0; // Multiplier-Finance Smart Contracts import "https://github.com/...
0
votes
1answer
166 views

Time locked wallet contract withdraw revert

I have a time locked wallet code which withdraws the fund after some period: // SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; ...