Questions tagged [smart-contract-wallets]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Multi-user Smart Contract Wallet Concept

I am relatively new to Solidity development, I'd like any thoughts or warnings about this type of implementation. It is not complete as far as receiving ERC20 tokens goes, or checking ownership, it ...
0
votes
1answer
17 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: ...
0
votes
1answer
12 views

Has there (yet) been lawsuits due to smart contract bugs?

I was reading up on smart contract vulnerabilities. So, in case someone deposits Eth to my smart contract, say as a Auction Bid. Then someone else exploits a bug to empty the smart contract balance. ...
0
votes
2answers
28 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 ...
0
votes
1answer
10 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
0answers
9 views

Cutting "transaction fee" other than "gas" in an ERC20 token transfer transaction

good day. I'm new to smart contracts and couldn't figure something out. I am using the following contract for ERC20 token transfer. Actually, everything works fine, there are transfers, but what I ...
0
votes
1answer
7 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 ...
0
votes
1answer
9 views

How to a write a subsidies contract?

I am new to solidity and Trying to wrapper my brain around it; I have being Writing this contact but, I am getting an error , cannot able to Store variable in contract. Function of contracts:- _dbs2....
0
votes
1answer
20 views

In React.js, How can I get return data from smart contract method including event and emit?

I have smart contract server function and that function including emit and event. event TokenMinted( address indexed _recipient, uint256 indexed _tokenId ); function ...
0
votes
0answers
7 views

Transferring NFTs with approved Smart Contract

Im currently developing an ERC-721 DApp and I would like to give the owner of the NFT the chance to approve a Smart Contract Address, so that the Smart Contract can do the transaction. Now I have the ...
0
votes
0answers
12 views

How To Call The Smart Contract Function Automatically on specific time? [duplicate]

I am working for a client to create a lottery contract. But my problem is that I am new to solidity. I have successfully created the lottery contract and it's working as expected. here is the contract....
1
vote
1answer
18 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 ...
0
votes
0answers
44 views

managing multiple smart contracts

Looking for general feedback or advice about multiple smart contracts, each with unique options, offered by a platform for users. Is this common? For example, contract 1 is a barebones contract, costs ...
0
votes
0answers
8 views

ethereum blockchain and off-chain(cloud)

I have 2 questions regarding the DApp data Is it possible to store data on ethereum blockchain and off-chain(cloud) at the same time from DApp? Can we create a link between ethereum and off-chain ...
0
votes
1answer
19 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
11 views

In Solidity How to Get/Send Part of Ether Stored in msg.value?

assuming i have the function: // Fucntion that act like a wallet in which i deposit ether in it say 100ether function storeEth() public payable onlyOwner{ } but then i want to withdraw or ...
2
votes
0answers
67 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....
0
votes
0answers
7 views

How can I find and post my NFT on RARIBLE?

I made my first NFT using Rarible and Torus Wallet. It appears as successful on the Wallet and Etherscan. How do I proceed now? I used Create - Erc 721 on Rarible. Thank you
0
votes
0answers
34 views

How is this smart contract "lazy minting" without a voucher?

The project Crazy Cyber Bunny has the following smart contract from etherscan. Snippet below: function mintCyberBunny(address _to, uint _count) public payable { require(msg.sender == ...
0
votes
1answer
52 views

Kill smart contract and retrieve funds [closed]

So I made a mistake and paid ETH (4.6=15k) via coinbase commerce from BEP20 instead of ERC20, after research coinbase commerce doesn't used diversion patch, they used forward smart contract (https://...
0
votes
1answer
32 views

DeclarationError: Identifier not found or not unique. "contract Ownable is Context "

I´m trying to compile an smart contract created in cointool using REMIX, but it shows the following error and I didn't know how to solve it. Could you please help me? This is error message: ...
0
votes
1answer
44 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
0answers
39 views

How to apply mapping? Betting on multiple matches using 1 address?

how to change the data structure of playerInfo so that instead of one value for playerInfo[msg.sender].matchSelected, it would have a mapping of values. Also, you need to include resultSelected in the ...
0
votes
1answer
27 views

what is the relationship between contract accounts and smart contracts?

I am confused; some textbooks refer to account contracts as smart contracts while others have different sections. Are these two concepts the same! To the best of my knowledge, contract accounts are ...
0
votes
0answers
8 views

Create Contracts from a Contract and Push it to an Array (Solidity 0.7.0 or higher)?

So basically, I'm using Remix and I have two contracts AuctionManager and BlindedAuction/Auction The auction manager will run first and it holds an array of addresses, whenever a beneficiary creates ...
0
votes
1answer
25 views

Creating tokens on BSC mainnet vs BSC testnet

I am starting to test with creating tokens. My contracts deploy correctly in mainnet but fail to deploy on testnet (the transaction gets reverted). What are the main differences between mainnet and ...
0
votes
1answer
20 views

How to create multiple contract instances for each user for a multisig wallet contract in front end UI

So I am making a multiSig wallet and i am making a UI with web3.js and all of that. I am pretty much finished my project and evrything looks and works great and i have included the ability for ERC20 ...
0
votes
2answers
36 views

Migration to test net works, but not to main net

I am trying to deploy my contract to the ETH mainnet / livenet. Everything works fine for the testnet, and also the dry-run for the mainnet works, but not the actual migration. Here is the output: ...
0
votes
0answers
30 views

(BSC) How to get info about Smart Contract's code if the source code is not present on bscscan?

For example, I know the ABI of the contract, but the functions are not present on the source code on bscscan.com. Anybody have an idea on what's going on here? Thanks.
0
votes
0answers
35 views

How to make address withdraw full amount in wallet or none

I'm doing a project where I want to make a banknote for an etherum, but the main problem is I want the user to access the hidden private key of ethereum wallet, access it and withdraw the full amount ...
0
votes
1answer
29 views

Can I create a multi-wallet in web3 that can store/receive/send other tokens like shiba, safemoon etc?

Please am totally a novice in eth and web3 stuff I managed to know how to create wallets in web3 but the part am totally not getting is.. I don't know if this wallets can be used to receive/store ...
1
vote
1answer
63 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 ...
0
votes
1answer
35 views

Send ERC20 token from a forwarder contract address to another address

I am having difficulty spending the funds in a smart contract address. The smart contract address was generated using an ETH forwarder smart contract - https://github.com/primozkocevar/SigWallet-ERC20/...
0
votes
1answer
17 views

Charge ecr20 token for network fee instead of eth [duplicate]

Is it possible to subtract the network fee from the user's ERC token instead of subtracting from the eth balance using web3js
0
votes
1answer
36 views

Withdraw failed with "transaction revert" error solidity compiler ^0.8.4

I am writing my first smart contract, it's very barebone with two functions deposit and withdraw. Testing using hardhat and etherjs contract test { mapping(address => uint256) balances; function ...
0
votes
0answers
15 views

Using metamask to sign ERC20 approvals

I have a frontend UI and NodeJS backend with web3js to interact with my smart contract. I'm able to interact with the smart contract using metamask by using window.addEventListener("load",...
0
votes
0answers
5 views

How to re-evaluate the weigh of user reward avoid using for loop

I am working on a dapp with a pyramid structure. when a user stake/withdraw tokens to/from this contract a % of the token amount goes to the existing staking holder in the pool. I am currently ...
1
vote
2answers
52 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
2answers
220 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 ...
0
votes
1answer
39 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
17 views

How to write smart contracts using solidity to control other smart contracts?

I am learning blockchain tech and try to write some smart contracts racking my brains for the following things using Proxy. a smart contract that can extract data from a different contract and save ...
0
votes
1answer
14 views

How to transfer DAIs from account to smart contract and vice-versa?

I used the below code to send 0.1 DAI from my account to a smart contract: const tokenTx = await daiTokenContract.approve('accountAddress', ethers.utils.parseEther("0.1")); await tokenTx....
1
vote
0answers
22 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 ...
0
votes
3answers
109 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
0answers
94 views

MetaMask - RPC Error: Error: [ethjs-query] while formatting outputs from RPC

I am very new to Ethereum smart contract solidity programming. Currently, I have been facing this issue when I try to pass a variable from my Node.js servlet to the smart contract I deployed using ...
0
votes
1answer
24 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
77 views

Solidity Smart Contract - Split and Send Contract ETH Balance Between Two Accounts

Want to start off by saying thanks in advance. I'm very new to solidity, so really appreciate your time. I've built a basic smart contract for testing purposes, and I'm running it on Remix. I want to ...
0
votes
0answers
24 views

NULL value returned when trying to fetch data from solidity smart contract from react js

I'm trying to make a Student Management System using Ethereum blockchain. I've linked my smart contract (solidity) with react frontend. I try to get the setted value from the smart contract, but this ...
0
votes
0answers
24 views

Unlock a wallet address for use in smart contracts

I want to unlock my wallet address for use in Smart Contracts. I’ve already done it on Ganache Cli on a forked chain but I don’t know how to do it on the mainnet. Thanks in advance!
0
votes
0answers
10 views

Why my hash value for separate files is not being rendered?(Ethereum Solidity)

I'm trying to store my files in IPFS and get the hash value and store them in the smart contract.I want to render my hash value in the frontend page. But in the below code the hash value of first ...