Questions tagged [smart-contract-wallets]

The tag has no usage guidance.

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

decode atomic match method Ethereum transaction by using ABI

Hello experts i used the following code and it works well for decoding all methods like mint,transfer,transferfrom and etc, but when i try to decode this transaction "https://etherscan.io/tx/...
0
votes
1answer
17 views

Can a smart contract approve a pending transaction on a multisig wallet?

Suppose I have a multisig wallet like a Gnosis Safe, which requires (say) two or three signers to approve any given transaction. In other words, the multisig wallet has its own wallet address, and 2 ...
0
votes
1answer
14 views

State variable not updated after DelegateCall

I deployed two contracts 'WalletLibrary' and 'Wallet': most of the functions in Wallet delegateCall() the functions from WalletLibrary. I want to recreate an Attack, where I call the initWallet() ...
0
votes
0answers
21 views

How to use gnosis safe in situations where private key of the safe is needed? [duplicate]

I know smart contracts do not have private keys and so in the case of gnosis multi-sig wallets. But I have a use case where I am using a 3rd party SDK that requires a private key to get initialized ...
1
vote
1answer
44 views

TypeError: Member "toString" not found or not visible after argument-dependent lookup in uint256

im having a big trouble trying to resolve this problem. Maybe anyone here can help me find it. This is the .sol contract and im having this error: TypeError: Member "toString" not found or ...
0
votes
1answer
11 views

Interaction of smart contract with mobile wallet/ wallet connect

I have a dapp that interacts with a smart contract using metamask through brownser and I would like to be able to interact with this smart contract through a mobile wallet using wallet connect. I can ...
0
votes
0answers
14 views

Best Practices For Splitting Payments

I have bulid a payment split flow. It is working and tested on Remix. I am using PaymentSplitter by OpenZeppelin and here's how it looks overall: However, I would really appreciate if I can get a ...
0
votes
0answers
13 views

Logic for vesting tokens that will release tokens to each role after every 15 minutes

I need to develop Ethereum Token Vesting contract on ERC20 Token. With total supply of 100M tokens. Investor : 50M Contributor : 25M Founders : 25M Need to write an algorithm for vesting which will ...
0
votes
1answer
9 views

Can't run smart contract (BUSD) method on android chrome using web3js and walletconnect

I have a website that works fine on desktop chrome. Website provides you a possibility to transfer BUSD in BSC Mainnet to some accounts with Metamask. For mobile i use walletconnect in browser and ...
0
votes
0answers
36 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
0answers
14 views

how to set up an ETH sweeper bot or scavenger on a private key

So I have been studying wallet sweeper bot or scavenger hunt which somehow linked to the private key and as soon you send some Eth to that wallet address it sends to another wallet address of the ...
0
votes
1answer
24 views

How to add separative commas every 3 digits in solidity to an input integer?

Is there a way to add separative commas to large input numbers? let's say the input was 1000, I want the output for this function to be a casted string that has this format "1,000". Note: I'...
0
votes
1answer
22 views

I am getting error ERC1155: transfer to non erc1155 receiver implementer means

pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract newToken is ERC1155{ using ...
0
votes
1answer
33 views

Smart contract funds stuck

Is there any possibility to withdraw ether from crowdsale contract? 0x6c725F41E98451F167820551013BD2f5BE8bFE6f I had also "pre-sale like" contract has MyToken in it ...
0
votes
1answer
24 views

Fetching Nft value from smart contract

So today I got an idea to develop an application where users can mortgage their NFTs in return for ethers with added interest. However, one problem I'm facing is of accessing the value of NFT via #...
0
votes
0answers
8 views

How do I allow users to name their smart contracts dymaically

I'm new to blockchain dev and just learning contracts in Solidity I have the following: pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";...
0
votes
1answer
33 views

How to call ERC 721 smart contract methods from JavaScript [duplicate]

I'm trying to create a simple nft minting website and I have my contract working properly but I'm having trouble implementing the actual minting process. So far my site only has the ability to let ...
0
votes
0answers
28 views

How Does One Withdraw LP tokens To Smart Contract Address that Are Received When Adding Liquidity To SpookySwap using "removeLiquidity" in solidity?

Hello Team Using The Following Function One Is Able To Remove Liquidity uint liquidity = IERC20(LPADDRESS).balanceOf(address(this)); IERC20(LPADDRESS).approve(XXX, liquidity); IRouter(XXX)....
0
votes
1answer
10 views

Can i write a smart contract that executes immediately after an event?

Say for example i want to execute a smart contract that upon receiving $1000 from person A, immediately executes after it is received which then takes that $1000 and disperses to 5 addresses. Is this ...
0
votes
1answer
23 views

How smart contracts are connected to my wallet?

I try to figure out how smart contracts that I own are connected to my wallet. Like, what's going under the hood that allows me to see all of my assets in Metamask.
1
vote
0answers
21 views

Is it possible to have a payout from a smart contract to a bank account?

A company wants to use smart contracts to their applications. The problem is that many customers in the market aren't familiar with having a crypto wallet. So is there a possibility to have the payout ...
0
votes
0answers
7 views

Tron api request limit

in order to get information from tron we need it's api but the question is how many request can you have with a Tron API for a crypto exchange? what about BNB API? how many in BNB request limits?
1
vote
1answer
18 views

Function balanceOf is not constant issues

when i am trying to get erc20 balance of an address from smart contract getting balanceOf is not constant issue. myContractInstance.balanceOf("0x2cdfa0382bc9c43bdf645baf14d90aecc8a6ce5a") ...
0
votes
0answers
56 views

Sending XRP tokens from a smart contract to a wallet

I'm trying to use a PHP library (Web3.php) to achieve a transaction of XRP tokens from a simple smart contract to a wallet. use Web3\Web3; use Web3\Providers\HttpProvider; use Web3\RequestManagers\...
1
vote
1answer
23 views

Renounced ownership

I have renounced ownership of smart contract and now it is a null address (0x00..). Is there a way for me to reclaim ownership? As currently if I call transferOwnership - it comes back with error that ...
1
vote
0answers
11 views

Stuck on contract creation in remix

there, I am using remix on chrome browser to deploy my smart contract. But when I click on deploy button. It is written on terminal that" creation of SimpleStorage is pending" and it is ...
1
vote
1answer
65 views

Error : Using ".value(...)" is deprecated. Use "{value: ...}" instead

Somebody please help me find the correct pattern to make this solidity error disappear, I'm using specifically solc^0.8.0, here is my code snippet : function fundAirline() isAirlineRegistered(msg....
0
votes
1answer
41 views

Withdrawing from an already deployed smart contract

Please don't be too harsh on me. I have followed the steps I found to create a smart contract, not knowing anything I'm doing - and I have successfully funded it. Is there a way for me to recover the ...
0
votes
0answers
18 views

I am doing this Blockchain course from freecodecamp youtube and Current Price is not showing right

And to check the code here is the code https://github.com/PatrickAlphaC/brownie_fund_me Please help!!!
0
votes
1answer
41 views

estimate gas usage for a contract

I'm trying to estimate the gas usage for a smart contract for an NFT token - is it possible to do before the actual sale? contract is already published and all functions as well. so I want to know how ...
-1
votes
1answer
43 views

How to trigger the smart contract externally?

Is it possible to trigger the smart contract externally using solidity. any methods to trigger external events into the smart contract.
1
vote
1answer
17 views

Failing transaction [not out of gas] but error during execution of function

I am new on smart contracts and have been experimenting with vyper and deploying a smart contract to Ropsten network. I am calling a function on my contract and my transaction is failing. But I have ...
0
votes
1answer
27 views

How can I automate the crypto payments using smart contract?

I am willing to write a smart contract which can automatically send ether to certain addresses like it needs to work continuously. is it possible?
1
vote
0answers
53 views

I am getting virtual machine error while running my brownie fundme contract

PS E:\brownie_fund_me> brownie run scripts/fund_and_withdraw.py --network ganache-local INFO: Could not find files for the given pattern(s). Brownie v1.16.4 - Python development framework for ...
2
votes
1answer
21 views

I don't understand how to fix this error i am trying to deploying my contract with python

This is my code please help, I am busting my head for 2 hours I have installed many libraries, I don't know if I am doing it wrong or what from solcx import compile_standard, install_solc with open(&...
2
votes
0answers
184 views

Solidity : Error encoding arguments: Error: invalid BigNumber string

I just begun to learn solidity by following a youtube video(https://www.youtube.com/watch?v=M576WGiDBdQ). This is duplicated question for Why do I keep getting invalid argument?, but I can't resolve ...
1
vote
1answer
80 views

Stop frontrunner bots by comparing block.number of buy tx versus sell and transfer tx?

I'm wondering whether I can stop / impair the 'standard' frontrunner / sandwich bots from frontrunning my (pretty standard) ERC20 token contract. I'm thinking to add a mapping called "...
0
votes
0answers
11 views

How to manage MultiSigWallet Smart Contract from UI

I am working on a blockchain Smart Contract and faced a problem. ` contract MultiSigWallet {} I know the basics of how this works, but I need a way to manage this contract from UI. Please introduce ...
0
votes
1answer
23 views

Smart Contract Deployment

Is it possible for a smart contract to send out eth in the background? if so please how would the smart contract look like and the web3 html if possible
0
votes
1answer
21 views

Automatically and programmatically storing of a small piece of data on Ethereum

Is it possible to have a dApp automatically and programmatically store a small piece of data on Ethereum, when needed (so upon request), without the need for manually connecting a wallet like MetaMask?...
0
votes
1answer
28 views

What Happens to a Token when its Smart Contract dies?

I don't think I understand the process of minting tokens. As far as I understand, a contract that creates a token has full control and governance over the token (creation, destruction, transactions) ...
0
votes
0answers
33 views

Best way to store wallet private key in code?

I'm using web3.js to interact with my smart contract and I need to save my private key in my js code so that I don't have to be constantly asked to approve a transaction. I'm using the signTransaction ...
0
votes
1answer
19 views

How to interact between DB and smart contract?

I want to create a smart contract and when I transfer coin on it, it's automatically update on the DataBase (I use Cassandra), so you do your things on the website with it and you can win or loose ...
0
votes
1answer
32 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 ...
2
votes
2answers
41 views

Serious uses for blockchains with smart contracts?

It seems like many of the canonical "use cases" for smart contracts don't hold much water under examination. Typically the issue stems from the fact that the points of contact between the ...
0
votes
1answer
37 views

How to automatically forward Ether that I receive on my one wallet to another? [duplicate]

Very basic understanding of Eth. I have more than one wallets, addresses are given to different people to pay to. I want to forward all incoming eth from those wallets to my master wallet. How can I ...
0
votes
1answer
45 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
0answers
20 views

How can I make Contracts shown in Ganache?

I installed Ganache Version 2.5.4 (2.5.4.1367) on Mac and also installed ganache-cli and truffle with node. But I can't open contract and it gives me this error: Could not find 'node'. Node.js is ...
0
votes
1answer
32 views

How do people support querying blockchain transactions in a fast way?

I am thinking to build some business transactions on blockchain and have deployed a test network by ganache and truffle. It works fine and I am able to see the blocks and transactions on ganache-ui. ...
0
votes
0answers
107 views

Failed: [ethjs-query] while formatting outputs from RPC

I am working on a bet app which is someone else project. I am currently learning and researching it. I am using it locally with ganache truffle and it works fine on one browser a bet is created but ...

1
2 3 4 5