Questions tagged [smart-contract-wallets]

The tag has no usage guidance.

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

Issue interfacing smart contract with the front end

I'm actually trying to write a simple smart contract with front end that takes a value from the user and saves that in the variable in the smart contract. The index.html part of my project is <!...
1
vote
1answer
11 views

multiple arguments giving error web3 [closed]

.addMedicalReport( patientBio.id, patientBio.name, patientBio.birthDate, patientBio.phoneNumber, patientBio._address, patientBio.MedReportId, ...
2
votes
1answer
30 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 - ...
0
votes
1answer
24 views

Is there anyway to implement Proof of stake (PoS) in Ethereum?

I am looking for a mechanism that implements Proof of stake (PoS) in ethereum. I am working on a mechanism that closely related to PoS, however, I do not find any other platforms. I was hoping that ...
1
vote
1answer
39 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 ...
0
votes
0answers
18 views

Smart contract using uniswap and transaction fee [closed]

I'm thinking of a decentralized application like Metamask that takes 0.875% fee on its swaping feature. I'm wondering how is it possible to create a contract using uniswap's swaping feature and by the ...
0
votes
0answers
13 views

Need help getting ETH back after BSC transfer [duplicate]

I have tried to transfer ETH from Binance to Trust Wallet using BSC. The funds went to C.R.E.A.M. Finance, which is accessible through Trust Wallet's DApp. It seems like there is no option to withdraw ...
0
votes
0answers
22 views

worl1.sol:214:42: ParserError: Expected ';' but got '{' (bool success, ) = recipient.call{ value: amount }(“”);

when i deploy it gives me this error: worl1.sol:214:42: ParserError: Expected ';' but got '{' (bool success, ) = recipient.call{ value: amount }(""); pragma solidity ^0.6.0; library ...
0
votes
0answers
26 views

HOW DO I TRANSFER MY VOX COIN FROM A CUSTOM ADDRESS WITH DECIMAL 6 TO A ADDRESS WITH DECIMAL 18

I have Vox coin but on a contract address and with decimal 6 and on Smart Chain Network.. I transferred my coin to another Vox coin wallet with Decimal 18 but show as 0.00, if I should add custom ...
0
votes
1answer
36 views

Unable to approve KNC token. Fails with error: “Error: Transaction has been reverted by the EVM”

I've tried approving with multiple different spender addresses but no luck. Token approval works fine when I try a different token, e.g. DAI. I've made sure I have the correct KNC contract address and ...
0
votes
1answer
25 views

Is it possible to use smart contracts to do money transfers? If so, how?

I've recently gotten into blockchain and I was having trouble understanding smart contracts. Is it possible to use smart contracts to do money transfers? Something similar to Venmo I guess. when I ...
0
votes
0answers
23 views

Withdraw money from a contract

I'm new to blockchain devolop, I created a contract with a withdrawal function function withdraw() { require(msg.sender == contractOwner); withdrawWallet.transfer(this.balance); } I did ...
0
votes
0answers
14 views

My button created on my HTML file resulted in failed transaction when it interacted with smart contracts function

I created a simple html to register an address in smart contracts. The function in smart contracts have been tested and it passed. So i believe my problem should be in how the input data transferred ...
0
votes
1answer
8 views

Where is this contract storing the ETH that is supposed to go to the new address?

I followed a tutorial and coded this contract: // SPDX-License-Identifier: MIT pragma solidity >=0.7.0 <0.9.0; contract Trust { struct Kid { uint amount; uint maturity; ...
0
votes
1answer
28 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 ...
0
votes
1answer
15 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?
1
vote
1answer
26 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=[...
0
votes
0answers
9 views

Is it possible to derive multiple public addresses for a smart contract to receive ERC-20 tokens?

I have a smart contract that deposits user's fund in the AAVE lending pool on behalf of users: lendingPool.deposit(stableCoinAddress, amount, address(this), 0) Users can deposit at different times ...
0
votes
0answers
10 views

Error code in BSC Alpha Finance Lab

I've been facing some troubles when I call the liquidation smart contract in the Alpha Homora vBSC This was the Tx in BSCScan https://bscscan.com/tx/...
0
votes
0answers
16 views

What can smart contract creator of Token on Ethereum Platform do to modify, change, upgrade or screw everybody on a DeFi platform?

Let's say an anonymous creates a Token called "baked" with Total supply of 1 million, and he keeps only 10k, and I buy the rest 990,000 He then uploads the Token on Decentralized Exchanges ...
0
votes
1answer
25 views

How to use a smart contract to deploy another smart contract in ethereum?

Since I have a testing contract with the reentrancy vulnerability, I want to reproduce it. However, only when the deployer is a reentrancy attack contract can this vulnerability be reproduced. Its ...
0
votes
0answers
21 views

how to pass my arguments to constructor smart contract while deploying using web3 truffle

could you please help me with this step? I have a smart contract with a constructor with a parameter, but I don't know how to pass this parameter when deploying the smart contract using truffle and ...
1
vote
1answer
28 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 ...
0
votes
1answer
31 views

ETH Gas fee difference between sending to a wallet or a smart contract

I want to understand the difference of sending some ETH to a wallet of someone or to a smart contract. It seems costs are not the same. Is this correct? If so, why does it probably cost more to send ...
1
vote
1answer
36 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'...
0
votes
1answer
12 views

How to use smtp protocol in solidity smart contract via chainlink Oracle

i had developed a external adapter that make a http get request to cryptocompare api and get latest eth-usd price for me. from bridge import Bridge class Adapter: base_url = 'https://min-api....
0
votes
1answer
120 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
0answers
71 views

No contract instances

I get an error that says no contract instances to interact with when trying to deploy my pragma solidity ^0.8.3 import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/...
0
votes
1answer
99 views

How do i import my ethereum wallet just using private key?

Help me out how do i resolve the issue of ethereum smartcontract for getting my wallet when i enter my private key in the text area Use WalletUtils functionality The WalletUtils class can be used to ...
0
votes
1answer
16 views

Smart contracts automatic execution

I've recently started learning about smart contracts and came across this example. Bob and Alice make a bet on the weather tomorrow. The smart contract gets the weather data the next day and ...
1
vote
1answer
18 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
47 views

Meaning of accounts[0], accounts[1], accounts[2] etc. in DApp in Solidity?

I was recently viewing a DApp on GitHub. It had the following in .sol, and test.js respectively. address contractOwner; address withdrawWallet; function contractName(address ...
0
votes
0answers
18 views

Development of ethereum payments system

I'm in need of some help! I'm developing a project where I'm supposed to implement an ethereum payment system that will then be installed in a point of sale (POS) in a retail store. The idea is not to ...
0
votes
0answers
36 views

How much does it cost to issue a NFT currently on Ethereum?

What does one need to do to issue their own NFT on ethereum? What are the fees involved? Do I have to launch my own smart contract to create nft's and how much does this cost? Or do I use someone else'...
0
votes
1answer
37 views

Source file compile error

... Source file requires different compiler version (current compiler is 0.8.2+commit.661d1103.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version ...
0
votes
0answers
54 views

org.web3j.protocol.exceptions.ClientConnectionException: Invalid response received: okhttp3.internal.http.RealResponseBody

Environment Android Studio Infura – Rinkeby test network Web3J Metamask Rinkeby.etherscan.io I am trying to build an Android app to read and write smart contract by following the medium article: ...
0
votes
1answer
29 views

Any examples of ERC tokens that pay out recurring dividends?

This post discusses the legal side of issuing digital shares of one's company, but once we get past that mental hurdle and assume the real world is now crypto-friendly, can someone provide a working ...
2
votes
0answers
22 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
0answers
20 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 ...
0
votes
0answers
50 views

How to implement crypto refunds in a smart contract?

I am quite new to cryptocurrencies and after some investigation I thought this might be the right place to ask. Problem: I have a small business and I would like to offer to my customers the option to ...
0
votes
0answers
39 views

Gas estimation failed when send a transact

When I run sendDeposit function, everything works fine, but when I try to run startSession function an error saying : "Gas estimation errored with the following message (see below). The ...
1
vote
1answer
47 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 ...
0
votes
1answer
29 views

How to determine percent stake in a token?

I'm working on an experiment that distributes some number of tokenB to people who own tokenA. the distribution of tokenB is dependent on what percent of tokenA is owned. is it even possible to ...
0
votes
0answers
21 views

Build and interact with contract

I'm developing a new token and I'm curious how I can interact with the token after is build and deployed. For example: Token1 has 10M tokens of total supply, I want people to can get those tokens, how ...
1
vote
1answer
46 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 ...
0
votes
1answer
23 views

Smart Contract management

I'm new to blockchain development. I watched a lot of udemy courses about Solidity. I think I understand how smart contracts work but I have 2 questions. Would it be possible to manage an application ...
0
votes
1answer
13 views

Increase values in array

I am increasing the value at a particular index in Solidity but it is giving me bad instruction error. Can anyone tell me what I am missing here? Please check the sample contract for reference: pragma ...
0
votes
0answers
26 views

Are there any simple, simulated smart contracts to try out?

The barriers to buy, sell and trade cryptocurrencies are fairly low. Anyone can try it now. But very few of the same people can say that they've ever tried to enter into a smart contract. Are there ...
0
votes
0answers
21 views

my smart contract is not responding and error saying web3 is not defined

<script> var myContract; async function CheckMetamaskConnection() { // Modern dapp browsers... if (window.ethereum) { window.web3 = new Web3(window.ethereum); try { ...
0
votes
0answers
41 views

Error message: Cannot read property 'eth' of undefined

<script type="text/javascript"> async function loadWeb3() { if (window.ethereum) { window.web3 = new Web3(window.ethereum); window.ethereum.enable(); } }...