Questions tagged [smart-contract-wallets]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
1k views

Uncaught (in promise) Error: Returned error: unknown account Web3 js

I am Trying to Transfer BEP20 ACC Tokens on smart contract from my binance Wallet using Web3 js Library. Following is my implementation const contract = new Web3.eth.Contract(CONTRACT_ABI, ...
0 votes
1 answer
309 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
2 answers
312 views

Is there a way for a user to complete a transaction on behalf of another user?

Suppose we have a smart contract that has one variable: url, and a updateURL function to update that url that only the owner can access. Suppose that, for the purposes of the contract, the url should ...
1 vote
1 answer
682 views

How to send a Gnosis smart contract transaction through uniswap

I have created my ERC20 smart contract on uniswapv2 router and deployed it on the ethereum rinkeby network. I need to use Gnosis Safe to send a multisig transaction through uniswap. kindly need ...
0 votes
1 answer
439 views

How to fix Note: The called function should be payable if you send value and the value you send should be less than your current balance

I want to transfer per second of given time but I got Error: Note: The called function should be payable if you send value and the value you send should be less than your current balance. pragma ...
1 vote
2 answers
1k 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 ...
1 vote
2 answers
3k 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 ...
0 votes
1 answer
714 views

Uncaught TypeError: Cannot read properties of undefined (reading 'Contract')

Trying to create a smart contract but keep getting a error for "bytecode" parameter. Using Local: 800 to run the code on google chrome browser. Can I get help fixing this issue ??
0 votes
1 answer
37 views

I am trying to make a smart contract in solidty to pool user funds and then transfer them to AAVE lending

This is my code. I am not very familiar with solidity. Currently I am just using a hard coded interest rate instead of deriving it from AAVE for testing // SPDX-License-Identifier: GPL-3.0 pragma ...
0 votes
1 answer
586 views

how to remove tokens from contract?

i copied and pasted code to make a bep20 crypto coin. some of the coin is sent to the contract on each transaction. i want to remove the coin from the contract and put the coins in my wallet. i ...
6 votes
2 answers
2k 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
1 answer
675 views

Deploy smart contract with metamask ethers.js and ganache

I want to deploy smart contracts on front-end with metamask address as deployer. To do that, I first compile the smart contract with Remix and put the json output on my React project (I use Ganache to ...
0 votes
1 answer
425 views

How can I execute a transaction from a smart contract without any human interaction?

I'd like to write a smart contract that holds X funds, and when a certain condition is met on-chain, transfers them to a predefined address, paying for gas from the contract balance. Is it possible ...
0 votes
2 answers
49 views

How can i get my ETH back? Amateur used smart contract without any knowledge [duplicate]

I'm probably the dumbest guy 2024. I tried a youtube tutorial where a guy showed how to use a smart contract bot to earn some passive income. I copied everything and started it through remix.ide. ...
0 votes
1 answer
344 views

Anyway to recover lost ether sent to unowned wallet?

I was sent a smart contract by a "friend" described as an MEV sandwich bot. But when I started up the bot and finally took a hard look at the code, I realized that all of the ether was ...
0 votes
2 answers
699 views

Gas estimation errored with the following message (see below).When sending ethers to the deployer of the contract

This contract is a simple contract that let other people send eth to the holder of the contract. The sender should send minimum of 50$ in form of eths. But every time I get this error This is my code
0 votes
1 answer
713 views

Returned error: VM Exception while processing transaction: revert when i use UniswapV2router functions

I'm using my owned cloned UniswapV2 smart contracts(core+periphery) and deployed them using ganache network, so when i start testing functions, i started with createPair() function located in ...
2 votes
0 answers
50 views

How to do a paymaster from scratch?

I just read and learned about the account abstraction concept, and I like it when I know it has a gas-less concept (paymaster). During reading and implementing, I have some questions: If I start ...
0 votes
0 answers
18 views

Implement wallet abstraction locally : Do I need a bundler node?

I'm trying to implement wallet abstraction locally using Anvil. I've deployed the required contracts. Now I'm wondering if I have to set up a local node bundler for my local Anvil network to bundle ...
0 votes
0 answers
4 views

Wrong deposit in KuCoin. The depositor sent the deposit to the contract address

The depositor sent the deposit to the contract address. Is there a way to know who the owner of the contact address is?
0 votes
1 answer
862 views

Transferring eth from one metamask wallet to another using solidity in remix Injected web 3 Environment

I'm writing a smart contract in solidity in remix Injected Web 3 environment to send eth from one wallet to another. My attempt is that send eth to the smart contract and then send all balance in the ...
0 votes
2 answers
893 views

Best practice to store private key for containerized apps in the cloud

I am a crypto investor. I am staking a coin but the smart contract requires the user to claim and restake the rewards by transacting a smart contract function every 24 hours. Currently I am doing it ...
0 votes
0 answers
57 views

Can a scammer withdraw from a wallet if I revoke permissions?

A friend of mine went last night to a scam web, clicked on a button and some Pendle tokens were withdrew on the Ethereum blockchain. I checked the transactions and there are two: Approval() and ...
1 vote
1 answer
323 views

Lock and unlock token smart contract

What is best way to write a smart-contract that can allow manual locking and unlocking of token specified by user without requiring transaction fee? say and escrow lock and unlock of of asset.
0 votes
1 answer
600 views

Tracking all ERC20 token transfers without using the event logs

I'm currently using the geth implementation. The problem is currently I am tracking erc20 token transfers using purely the erc20 contract event logs and filtering for Transfer event, then saving that ...
0 votes
1 answer
1k 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 ...
1 vote
1 answer
35 views

does account abstraction wallets have different address across different chains?

i was using ambire wallet which is abstraction wallet and it have same account address across differnt chain . but i read it somewhere that abstraction account wallet have different address across ...
3 votes
1 answer
375 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 ...
1 vote
2 answers
139 views

I want to call a contract method using my safe wallet address

I made a safe wallet in my panel safe wallet which is 2/3 signers. I want to use it in my access control for an admin role and use it for calling a transfer method with it only. The problem is when I ...
1 vote
1 answer
1k views

Call a smart contract function with web3py using private key

I'm trying to call a smart contract function using web3py; the idea is to mint a token using a wallets private key. I've done it before in web3.js but I'm not sure how to move forward with web3py. I'm ...
0 votes
1 answer
26 views

Is it possible to hide wallet address with ZK proofs

We are working with zk contracts on partisia blockchain, so out of curiosity I want to hide the senders address while sending a transaction. Consider a case where we are minting NFTs anonymously, if ...
0 votes
1 answer
705 views

send signed transaction from smart contract

I need to know if it is possible to implement a smart contract to send signed transaction (signed with metamask). The user that sign the transaction must pay the fees. All examples that I'm reading is ...
0 votes
1 answer
1k views

smart contract withdraw function asks payable amount

my withdraw function asks for payable amount in Etherscan before invoking it, not sure what's the reason? function withdraw() public payable onlyOwner { (bool os, ) = payable(owner())....
0 votes
1 answer
605 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
3 answers
2k views

how to get Price of Cryptocurrency with web3js

is there any way to get PRICE of any crypto currency with web3JS or solidity. I wanna make something amazing : ) USDT and USDC are also not constant, is there any other way, other than comparing its ...
0 votes
3 answers
1k views

Smart contract ability to query a database

I'm having some concerns while developing a smart contract. As I see, the Ethereum blockchain can be known as a distributed database, where transactions are stored as hashes in a block. A smart ...
2 votes
1 answer
489 views

Getting proxy contract instead of the Contract I deployed using Ethers v6

I am trying to get the Contract I deployed so that I can use the Functions in order to implement the functions on the Frontend It works on Ethers v5 and returns the contract I deployed but not on ...
0 votes
1 answer
103 views

etherscan showing 0 balance, transaction showing as success, but balance in my contract as 0

Not sure why etherscan.io showing as 0 balance. My Transaction hash# "0x2653135e31407726a25dd8d304878578cdfcc7d69a2b319d1aca4a37ed66956a" is showing as susccess with 0.47 eth. but when i ...
0 votes
2 answers
713 views

how to use function approve() and function transferfrom() in a dapp?

hello Me and my team are working on a staking/subscribing dApp on the ethereum blockchain using erc20 stablecoins like usdt and dai. We encounterd an error on the approve() and transferfrom() ...
0 votes
1 answer
65 views

How to secure and recover a multisignature wallet

I am creating an erc-20 token which funds will be managed by some board members using MultiSig wallet/contract. Let's say I have 5 members and 3 out of 5 votes is enough to manage funds. What happpens ...
0 votes
1 answer
815 views

Deployed Smart Contract To Remix ,Can't find launched smart contract anymore. CAN SOMEONE HELP?

I've launched a smart Contract using Remix.Ethereum.org after launching it I compiled the contract to code, compiler came back clean no issues (GREEN CHECK MARK). Launched Contract, Added .5 BNB to ...
0 votes
2 answers
31 views

problem with reverted when testing smart contract

In my smart contract there is a function: function fund() public payable { require( msg.value.getConversionRate(priceFeed) >= MINIMUM_USD, "You need to spend more ETH!"...
0 votes
1 answer
62 views

Loose ETH making a smartcontract on Remix IDE [duplicate]

First think first- I'm a noob on blockchain/smartcontracts etc... but I really apreciate some help I was copying some youtube videos to make a smart contract on etherum staking with help of AI and win ...
1 vote
1 answer
22 views

Need help with debugging Error: Definition of base has to precede definition of derived contract

I'm working on a social account recovery feature for smart accounts (ERC-4337) on top of Thirdweb's smart account contract. Link to the codebase I'm getting the error Base has to precede definition of ...
0 votes
1 answer
101 views

Set ERC20 token allowance for Smart Wallet Account

I am trying to set USDT(ERC20) token allowance for SWA (smart wallet account) so that the account can interact with an external contract and send USDT to the contract. I am using Alchemy SDK to create ...
0 votes
1 answer
428 views

Contract not showing the name, symbol, and supply

I am not able to see the name, symbol, and supply on the smart contract at ropsten. pragma solidity ^0.8.0; contract MyToken{ address public minter; mapping(address => uint) public balance; string ...
0 votes
1 answer
394 views

ERC20 amount exceeds allowance in tests solidity

I'm trying to transfer balance from one account to another, but whenever I try I get the following feedback... Error: Returned error: VM Exception while processing transaction: revert ERC20: transfer ...
1 vote
1 answer
873 views

How to change the smart contract of a collection in Opensea

Although I have contacted the Opensea help center their response time is usually very long. I have therefore decided to debut on their forum with this question. I have a contract deployed and ...
0 votes
1 answer
93 views

Troubleshooting a Failing Transaction in Ethereum Account Abstraction

I'm attempting to use account abstraction for transactions on the Mumbai chain without a paymaster, where my smart contract wallet pays the fees. Despite following the process and checking against the ...
1 vote
1 answer
1k 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 ...

1
2 3 4 5
11