Questions tagged [smart-contract-wallets]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
70 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
207 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
31 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
375 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
380 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
340 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
19 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
28 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
93 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
21 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
48 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
102 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
83 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
61 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
35 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?
2
votes
1answer
50 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
162 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
68 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
82 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
49 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
25 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
83 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
26 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
15 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
63 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
128 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(); } }...
0
votes
0answers
32 views

Running Ethereum Exchange (including ERC 20)

Would it make sense to run the app server and an Ethereum node on the same machine considering how closely they interact? Or should they be on separate machines to not affect each other? What is the ...
0
votes
2answers
266 views

How can I automate smart contract interaction

I've deployed a smart contract to the blockchain with few functions. I want to know how I can interact with the code e.g. > Contract has 2 functions - deposit and withdraw. Now, instead of me ...
0
votes
1answer
986 views

How to call a smart contract function using Nethereum and Infura

I am using Nethereum to call a smart contract function in Ropsten. I am also using Infura. The function required the contract owner's permission to execute. This is my code: var account = new Account(...
0
votes
1answer
38 views

Schedule a transaction without making a deposit

Is it possible in solidity to schedule a transaction without making a deposit and without specifying the amount? As far as I know with the Ethereum Alarm Clock you need to deposit the ethereum and the ...
0
votes
1answer
27 views

Reliable and universal account recovery

I am producing kinda salary system. If somebody loses an account, he or she loses the salary for his entire lifetime!! So need some account recovery. First I wanted to use my own recovery system with ...
0
votes
0answers
27 views

capacity of Ethereum smart contract

I wonder the capacity of smart contract how many smart contracts are signed in a day or a month? how many connections can access to one smart contract at the same time? how many smart contracts are ...
0
votes
0answers
196 views

How to use Exit function on this smart contract in solidity?

This is on Tron but its a pure solidity openzeppelin code so I assume this is the right place to look. https://tronscan.org/#/contract/TEzjbwwYda6WMQAQ8p7GoXq4W3Xo532KJj/code I want to use EXIT ...
0
votes
2answers
357 views

Smart contract ability to query a database

I'm having some concerns while developing smart contract. As I see that, Ethereum blockchain can be known as a distributed database, where transactions are stored as hashes in a block. A smart ...
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......
0
votes
1answer
285 views

How to pass IERC20 as argument in solidity?

i'm trying to deploy sushiSwap on my local machine. but i don't know what should i pass a argument in constructor... code is like... pragma solidity 0.6.12; import "./IERC20.sol"; import &...
0
votes
1answer
88 views

Gas requirement of function problem

I am trying to run below code, but I receive this error "Gas requirement of function Team3_SE427_Call.increaseCount is infinite: If the gas requirement of a function is higher than the block gas ...
1
vote
2answers
678 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: ...
6
votes
1answer
4k 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?

1 2
3