Category "smartcontracts"

Ethereum - insufficient funds for intrinsic transaction cost

I'm trying to create my own NFT contract factory, but it fails in mainnet. I have ETH on my wallet. In test it works fine. Here's my contract: //Contract based

Truffle installed but not working properly

I'm using node version 12.20.2 and npm version 6.14.11 and installed truffle with cmd as administrator, the truffle framework version 5.5.12 has been installed

How to Pull HIstorical Price Data from Solana Devnet Contracts?

I am looking to grab historical data from our Solana Devnet feeds. Can you let me know if get_submissions is the function that should be called for historical d

I can not deploy the program to dev net with anchor

I get this error where I run anchor deploy: Deploying workspace: http://127.0.0.1:8899 Upgrade authority: /home/<user>/.config/solana/id.json Deploying pr

Getting error while deploying smart contract using truffle

2_deploy_contracts.js ===================== Replacing 'SimpleStorage' ------------------------- Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({ code:

Decode constructor arguments in solidity

I playing Ethernaut Level 8. The goal is to get access to the private password state variable and unlock the contract. I know one could use await contract.unloc

Amazon Managed Blockchain not showing Ethereum network

I am a newbie in smart contract development. I just create a smart contract for some analyze how it works, so I used the truffle suite with vs code to create a

How to extract ethereum from the smart contract

I am a newbie in the blockchain technology and I have question. I just deployed an Ethereum smart contract to the Rinkeby testnet network and minted a few NFTs.

BSC Testnet: Truffle Migrate ETIMEDOUT

I need to deploy my smart contract to BSC Testnet I always got this : Error: PollingBlockTracker - encountered an error while attempting to update latest block:

Is Runtime::generate_uuid() safe in Scrypto?

I want to make a game in a Scrypto blueprint where users can play with their Gumball NFTs. My blueprint has a pub fn attack(&self, my_gumball: Proof, other_

How can we generate random values in Scrypto?

How can we generate random numbers in Scrypto if floating point libraries are not allowed be used? I want to be able to generate unique IDs for NFTs.

Standard Common Practice Method in Solidity to perfrom any type of division?

I am trying to do the following calculation with solidity: 3,000 / 45,000,000 = 0.000067 with the following method: // SPDX-License-Identifier: MIT pragma solid

How can I implement a lazy-minting smart contract that doesn't actually mint NFTs?

This is my first experience writing a smart contract, so I am still trying to navigate how this all works. I have a smart contract on the Rinkeby test network t

WalletConnect & web3js - how to forget previously set wallet?

I'm writig a dApp using web3Modal and web3js libraries. I have an issue regarding the WalletConnect provider. Upon choosing to connect using WalletConnect, the

ValidationError on smart contract function call for no apparent reason(web3py)?

I am trying to call Uniswap's Router's function swapExactTokensForETHSupportingFeeOnTransferTokens(). When I enter the values manually on etherscan, it goes thr

is two different ERC721 contract can mint same NFT

I'm learning blockchain development recently and I'm implementing ERC721 contract to mint NFT and store the mapping of ownership. What if I deploy a second cont

difference between interface and abstract contract in solidity

I am learning solidity and got to know that interface and abstract are both classes that may contain unused functions. My doubt is: What is the difference betwe

How to get the price of BSC token directly the token pool contract in web3.py

I'm trying to get the price of some BSC token directly from the contract. Doing some searches, I found a mix of ideas with the snippet below. I'm sure the code

Solidity - Solidity code to Input JSON Description

I want to compile my ethereum HelloWorld.sol smart contract. In all the tutorials is that you do it like this: var solc = require('solc'); var compiledContract

Eth, how to call a deposit function from a smart contract

I am working on a project where I need to send ether from an user to a smart contract and from the smart contract to the user. The smart contract is code in Sol