Questions tagged [smart-contract-wallets]
The smart-contract-wallets tag has no usage guidance.
514
questions
0
votes
2
answers
88
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
1
answer
658
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
40
views
ERC-4337 - Bundler development
I understood the ERC-4337, but I need to develop a Bundler for my job. But I don't know how to do it, I researched about it but I didn't find any great content. Please give me tips and explain how can ...
0
votes
3
answers
1k
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 ...
0
votes
0
answers
6
views
Would this library be interesting to dApp developers for in-browser wallet?
I'm with INTMAX, developing webmax.js, a JS library for quick dApp integration with our in-browser web3 wallet that's secure, uses biometric authentication, & supports EVM-compatible / Layer 2 ...
0
votes
1
answer
18
views
Triggering User Defined Jobs On-Chain
I have been working on this dapp lately that allow users to create a product with an expiration date (don't mind the specifics of the app).
Once expired, a call to a smart contract should be made (...
1
vote
1
answer
775
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
947
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
2
answers
64
views
Warning! Error encountered during contract execution [invalid opcode: PUSH0
While deploying my smart contract, I keep getting this error:
Warning! Error encountered during contract execution [invalid opcode: PUSH0
import solcx
solcx.install_solc('0.6.0')
from solcx import ...
0
votes
1
answer
550
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
604
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
14
views
Create a digital signature hash via Gnosis/Safe Multisig Wallet
I have a multisig wallet setup at https://safe.global/. I need to prepare a TX which calls a contract, and one of the parameters of the function I am calling needs a digital signature of the (tightly ...
0
votes
0
answers
136
views
Why WBNB balance does not appear in bscscan?
I'm playing with WBNB, and when I make a deposit of BNB to WBNB Smart Contract I receive the same amount of WBNB to my wallet (I can see it in Metamask). Everything it's Ok.
The problem is that when I ...
1
vote
1
answer
21
views
How the smart wallets handles transactions that are only allowed for EOA?
If after ERC-4337 the wallet is going to be a smart contract, how will it send transactions to smart contracts which only allow to have transactions with EOA?
1
vote
1
answer
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 ...
1
vote
1
answer
57
views
Unable to connect to Testnet Sepolia
Command:
npx hardhat --network sepolia run scripts/deploy.js
Getting error messages:
* Invalid account: #0 for network: sepolia - private key too long, expected 32 bytes
* Invalid value undefined ...
0
votes
1
answer
532
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
1
answer
369
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 ...
1
vote
1
answer
675
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
2
answers
2k
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 ...
1
vote
1
answer
26
views
transactionContract.addtoblockchain is not a function
Calling a specific function from smart contract through react jsx file , console is giving me error "transactionContract.addtoblockchain is not a function", even the function is present in ...
2
votes
2
answers
760
views
calling smart contract function from React
I am calling smart contract function in Solidity from React, which should count the votes for the specific choices. The function works perfectly when I call it from my truffle console. However, when I ...
0
votes
0
answers
50
views
I purchased 60k shibarium tokens 8/19. 8/20 the value dropped 700% and contract address changed. What do I do?
I purchased Shabarium Tokens on 8/19/23. On 8/20/23 the contract address changed and the asset value under the old address dropped 700%. What do I do?
0
votes
1
answer
38
views
Error: User Rejected when trying to do connection to Core.app wallet extension on the web browser
I cant configure out why it tells me contract is not defined whenever I call the handleClick function.
Heres the code:
import React, {
createContext,
useContext,
useEffect,
useRef,
useState,
...
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 ...
0
votes
1
answer
354
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 ...
0
votes
1
answer
296
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
1
answer
584
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
1
answer
49
views
Help - MEV Contract [duplicate]
I created an deployed a MEV bot via remix.re — after deploying the contract — I noticed the internal transaction sent to an unknown address.
Any help on seeing what happened here??
My Contract Address
...
0
votes
1
answer
350
views
Why is Ether value 0, but the contract specifies over 500 ether were transferred? How does this work?
I am interested in this tx hash:
0x526b21b2bb3556a199a5794b053a8be229ddae99aa222bc300b0efaba1f1fc01
As you can tell from Etherscan, the Ether value is 0. However, the contract it was sent to (...
0
votes
1
answer
39
views
Front Running scam [duplicate]
Guys thats the code is there not a way to withdraw or do something to the funds that are stuck on the address. I used remix ethereum website
pragma solidity ^0.6.6;
// Import Libraries Migrator/...
1
vote
1
answer
560
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 ...
1
vote
2
answers
199
views
Copy-pasting Ethereum address will give a wrong address
I am not getting the solution like if try to copy the address of any wallet or any smart contract it will copy perfectly but when i will paste it somewhere else the address that i copied will be ...
2
votes
1
answer
43
views
Burning ERC-20 tokens like BNB USDT etc with solidity
is it possible to implement burning of ethereum tokens such as USDT","BNB","USDC" for example, using solidity. Should I just send it to zero address and pass its value in wei?
...
2
votes
1
answer
423
views
Error - "Multisend should only be called via delegatecall" while calling gnosis multisend function?
I am using https://github.com/gnosis/ethers-multisend to encode batch transactions into Meta transactions. And following https://docs.gnosis-safe.io/tutorials/tutorial_tx_service_initiate_sign to send ...
1
vote
1
answer
937
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
2
answers
278
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
1
answer
1k
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
0
answers
16
views
Get back the funds I send to avax smart contract that I made
can somebody help me with this contract I made?
I put in 15.99 avax to this smart contract I made for the 1st time in my life. It was with this code that I didn't made:
https://ipfs.io/ipfs/...
0
votes
1
answer
391
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 ...
0
votes
0
answers
55
views
How do I retrieve ethereum mistakenly sent to a wallet address?
Following the advice of a web3 developer, I did the following:
I created a smart contract(https://hastebin.com/share/uyuvolavoh.php) using remix.re and deposited 0,69 ETH to it.
I then clicked the ...
0
votes
1
answer
115
views
why i cannot access Mumbai polygon
I want to access Mumbai polygon.
I'm using wagmi with this config
const { chains } = configureChains(
[polygonMumbai],
[publicProvider()],
)
but in provider i see only mainnet
How should i config it ...
0
votes
2
answers
572
views
Why can't I remove liquidity from my Uniswap v2 Pool?
Token contract: 0x8b11461af2f7bc36ac3bbaff273b08485abe3bba
Pair contract: 0x01007f8c2e88626932e30fed121e6090be7015a3
I tried to remove my added liquidity through uniswap however, MetaMask doesn't pop ...
0
votes
1
answer
94
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 ...
1
vote
1
answer
462
views
Who pays the computation fee in account abstraction ERC-4337? in what currency?
I hear that by imposing account abstraction specified in ERC-4337 EOA is not the only one that can instantiate a transaction.
What I'm confused about is the actual entity that pays the gas fee and the ...
0
votes
2
answers
940
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
0
answers
17
views
Programmatically deploy Safe smart contract on Polygon Mainnet
I have created a mobile wallet using Flutter. I would like for users to be able to create a new Safe wallet within my app.
How can I programmatically deploy a Safe smart contract within my app?
0
votes
1
answer
684
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
2
answers
2k
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 ...