New answers tagged

0

Assuming you have been activated personal rpc of your geth, to do this programatically without hardcoding the keystore file directory path in python, do the following: from web3 import Web3 import eth_keys from eth_account import account w3 = Web3(Web3.HTTPProvider('http://127.0.0.1')) address = '0x...' password = 'password' wallets_list = w3.geth.personal....


0

The deviation is defined for each aggregator. And the nodes check the deviation of the current price vs the last price stored on-chain before coming to a decision as to whether an update is needed


0

you want to use InjectedConnector, const MetaMask = new InjectedConnector({ supportedNetworks: [1, 4] }); const connectors = { MetaMask }; Then you want to wrap your app with: <Web3Provider connectors={connectors} libraryName={"ethers.js"} > <YOUR_APP/> </Web3Provider> Then use it with something like this ...


0

Per truffle docs, the .at functionality will yield a Promise. Based on what you're querying inside the terminal, shouldn't the syntax be more like: (await greeter.at(address)).greet()


0

This is for those who might want to be clarified on the wallet/account concepts on Ethereum, thanks to @mikko-ohtamaa. Wallets have nothing to do with the structure being used in blockchains to track down the balances or handle transactions. It is just a file containing accounts' info(public/private keys) and web3.eth.accounts.wallet-based commands mentioned ...


0

I'd modify the mintNFT function in the contract // *** Add _data parmeter function mintNFT(address recipient, string memory tokenURI, bytes memory _data) public onlyOwner returns (uint256) { _tokenIds.increment(); uint256 newItemId = _tokenIds.current(); // *** Move _setTokenUri before _safeMint _setTokenURI(newItemId, tokenURI); ...


0

This is indeed possible with WalletConnect. There is a Kotlin library available (both for v1 and v2 of WalletConnect). For v1 you can use: https://github.com/WalletConnect/kotlin-walletconnect-lib You need to generate a WallectConnect session with a valid bridge server (e.g. for testing https://bridge.walletconnect.org/): https://github.com/WalletConnect/...


1

If your seed phrase gets compromised, e.g. by someone taking a photo of the physical paper where you wrote it down, it is game over and no password will save you.


1

So there seem to be a couple of problems with your code. First of all, you pass 0 into Transfer() as an address but an address needs to be a 20 byte value in the form of 0x..... see here. Secondly, as already pointed out in the comments, you are possibly missing the import statements for the contracts you want to inherit from (contract Token is ERC20Token, ...


0

With Ethers you can use a ContractFactory which is connected to the signer that should deploy the contract. A signer can for example be a Ethers Wallet.


0

The problem is that the contract is trying to transfer Link tokens, but the contract's balance if zero tokens. From the transaction trace you could see the internal transaction fails { "type": "CALL", "from": "0x84b82fce8d1e13f1944ed58855f1d89d9ee697f8", "to": "...


Top 50 recent answers are included