Questions tagged [smart-contract-wallets]

The tag has no usage guidance.

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

How can I set reflections tax fee at 0.25 [duplicate]

As you can't float in solidity how can I set reflection tax fee in decimals. Uint256 public taxfee = (any integer value) 👈 how can I set this fee in float for example taxfee = 0.50
0
votes
0answers
28 views

Ronin wallets being compromised

I want to format or configure my ronin wallet in a way that if any ETH comes into the address, it will automatically be sent to another address. I have the feeling that my private key is being ...
0
votes
1answer
12 views

Accept tokens in Smart Contract without allowance [duplicate]

I'm trying to develop an Smart Contract function that accepts and ERC20 token, and send it to another address. I know that I make the user to call approve and later execute the function: //check SC's ...
0
votes
2answers
15 views

How to write a smart contract that transfers funds from an address in the future

Following understanding that smart contracts do not have private keys and cannot sign transactions I am wondering how would a smart contract that transfers funds from an address in the future look ...
0
votes
0answers
17 views

How to make transaction in ERC20 tokens inside smart contract [duplicate]

Hello everybody hope you are doing well, I am developing a Lottery smart contract which is capable to enter users inside the smart contract, pick winners, the most good part of the contract is it is ...
0
votes
0answers
8 views

Ronin wallets auto send asset to another ronin wallet

i have axie infinity team with 5 scholar now i want to all my my scholar ronin wallets to automatic transfer to my main ronin wallet everytime they claimed the assets anyone here how to use javascript....
0
votes
0answers
21 views

Small Love Potion Create Automatic transfer to another account everytime i claimed the SLP of same Browser using javascript extension [closed]

example : Scholar Address = ronin:d7e31ea4ffbfb6d6e1491599ac123b4b1dd5c59b Main Account Address = ronin:d513f7951073ab3eb8c82919f706f23ddd293051 Small Love Potions Contract Address = ...
0
votes
1answer
16 views

Is there a way to check if the transactions are happening on binance smart chain network or ethereum smart chain?

I'm new to block chain development and developing a DApp on binance smart chain. In my DApp, I changed the network provider from default ethereum web provider to binance test network provider. DApp is ...
1
vote
1answer
14 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.
0
votes
0answers
20 views

Mint 100+ NFT Smart-contract HELP

I am new to writing smart contracts. I am having difficulty mint many NFTs in a single function call. Here is my code mint-nft.js: require('dotenv').config(); const API_URL = process.env.API_URL; ...
0
votes
1answer
18 views

Contract address for a contract that was deployed by another contract in ethereum

I am trying to figure out if this pattern for an ethereum smart contract would be possible or are there limitations in solidity or the evm which would prevent this. Contract A is deployed on the ...
0
votes
0answers
7 views

Safest way to manage my assets from a smart contract

I am working in a develop for manage all the assets of my company. Actually we are using fireblocks for have all of our asset safety. But the problem with this service is, that they do not have ...
0
votes
0answers
9 views

web 3 - why calling smart contract return empty Result object

I am using ReactJs for the frontend. At first, I click the first button, and it shows me connected. After that, I click the send button which call myContract, and it returns the object like below: ...
0
votes
0answers
9 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 ...
1
vote
1answer
53 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
15 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
1answer
109 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
21 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
15 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
10 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
14 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
26 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
11 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
13 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
19 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
49 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
9 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
22 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 ...
3
votes
0answers
139 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
8 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
38 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
43 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
45 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
40 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
33 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
35 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
21 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
52 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
42 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
32 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 ...
2
votes
1answer
90 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
43 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
41 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
17 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
63 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 ...