CRYPTO NEWS

Everything you MUST Know about the Crypto Crash

The crypto crash is currently worrying the minds of investors. In this article, we answer the most important questions that most crypto enthusiasts are asking.

Why is the Crypto Market currently Crashing?

Many factors are currently weighing on the market. Above all, the high inflation, the radical central bank policy, and fears of a recession are currently plaguing the portfolios. But general uncertainties in the crypto markets are also causing unrest. We dive into much more detail in this article, where you can find more about the current market environment.

Should I sell everything now?

How the market will develop in the coming weeks is of course uncertain. Long-term investors should sit out these market situations. However, you should check your individual investments. Large cryptocurrencies (by market cap) are less risky than small projects. The probability that all coins will survive the crypto winter is extremely low. So: diversify and examine the technology and innovation behind the coins.

Should I Buy Cryptos now?

The current market situation is difficult to classify. When cryptos bounce back depends on tech stocks, inflation, interest rates, and many other factors. Anyone who invests in the long term can use the current courses to buy later. It could make sense to enter tranches in order to diversify the entry price and to be able to benefit from further falling prices.

How do rising interest rates affect prices?

Generally speaking, rising interest rates aren’t good for riskier assets like tech stocks or cryptocurrencies. This is because when interest rates rise, less risky investments such as bonds promise returns again. With higher interest rates, it is, therefore, less attractive to invest in risky assets. From an economic point of view, rising interest rates have another negative impact on the markets. As interest rates rise, the amount of money in the market falls. The result is an increasing value of money, which makes risky investments even less attractive.

How long will the crypto winter last?

Can’t say at the moment. Before cryptocurrencies can rise again, economic risk factors such as high inflation or fears of recession must be brought under control. After that, tech stocks and then cryptocurrencies could rise.

Why Do Cryptocurrencies Correlate With Tech Prices?

This is primarily related to cash flows. Tech and crypto investors are mostly invested in the other asset class. Both asset classes are often represented in the same funds and ETFs. When tech stocks fall, investors usually also withdraw money from other asset classes such as cryptocurrencies.In addition, external factors such as rising interest rates or inflation tend to have the same impact on tech stocks as they do on cryptocurrencies.

Why can’t Bitcoin benefit from inflation?

Bitcoin was long considered an inflation hedge – this assumption has now vanished into thin air. Currently, Bitcoin price is too tied to tech stocks to benefit from inflation. In addition, Bitcoin was not stable enough in the past. Rising interest rates and a resulting decrease in the money supply are also causing problems for Bitcoin.

Does the Crypto Crash have an impact on the real economy?

What’s wrong with my code? (ERC721: mint to the zero address) calling from Remix is good, calling from my script is failed

I have deploy an contract at: https://goerli.etherscan.io/address/0x39c810abf2fb7f1e6db14db3e9a6f08e2daeab78 it’s abi is: [{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"string","name":"tokenURI","type":"string"}],"name":"mintNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}] and source code is: pragma solidity 0.8.15; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract BigBigBanana is ERC721URIStorage, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIds; constructor() ERC721("Big Big Banana", "BBB") {} function mintNFT(address recipient, string memory tokenURI) public returns (uint256){ _tokenIds.increment();::Listen

I have deploy an contract at: https://goerli.etherscan.io/address/0x39c810abf2fb7f1e6db14db3e9a6f08e2daeab78

it’s abi is:

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"string","name":"tokenURI","type":"string"}],"name":"mintNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}] 

and source code is:

pragma solidity 0.8.15;  import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol";  contract BigBigBanana is ERC721URIStorage, Ownable {   using Counters for Counters.Counter;   Counters.Counter private _tokenIds;    constructor() ERC721("Big Big Banana", "BBB") {}   function mintNFT(address recipient, string memory tokenURI) public returns (uint256){     _tokenIds.increment();     uint256 newItemId = _tokenIds.current();     _safeMint(recipient, newItemId);     _setTokenURI(newItemId, tokenURI);     return newItemId;   }    // This is the core method   function mint() public returns (uint256){     _tokenIds.increment();     uint256 newItemId = _tokenIds.current();     _safeMint(address(msg.sender), newItemId);     _setTokenURI(newItemId, "https://bigbanana.infura-ipfs.io/ipfs/QmX6RYeTT8W4MymKaY6eBtoReHCFkVTV2XByctjV91aERu");     return newItemId;   } } 

and it can be successfully called via Remix:

enter image description here

But if I call it via my javascript file, it would failed:

source code:

const Web3 = require('web3')  const fs = require('fs')  async function main(file_name_without_suffix, contract_address){   const { abi } = JSON.parse(fs.readFileSync("build/contracts/" +file_name_without_suffix+'.json'))    const network = process.env.ETHEREUM_NETWORK    // step1. 初始化web3 实例,增加json rpc server   const web3 = new Web3(     new Web3.providers.HttpProvider(       `https://${network}.infura.io/v3/${process.env.INFURA_PROJECT_ID}`     )   )    // step2. 创建signer   const signer = web3.eth.accounts.privateKeyToAccount(  process.env.SIGNER_PRIVATE_KEY)   web3.eth.accounts.wallet.add(signer)    // step3. 创建contract, abi是关键   const contract = new web3.eth.Contract( abi, contract_address)    let result = ''   result = await contract.methods.name().call()   console.info("name: ", result)   result = await contract.methods.symbol().call()   console.info("symbol: ", result)    let tx = ''   //tx = await contract.methods.mint('0xc0dD5021e298dB57bEF361C735cd1C04cef2E48A')   tx = await contract.methods.mint()   result = await tx     .send({from: signer.address, gas: await tx.estimateGas()})     .once("transactionHash" , (txHash) => {       console.info("mining transaction...", txHash)     })     .on('error', (error) => {       console.info("--- on error: ", error)     })   console.info("mint result: ", result) }  require('dotenv').config()  main("BigBigBanana", "0x39c810abf2fb7f1e6db14db3e9a6f08e2daeab78").then( () => process.exit(0) ) 

result:

{"type":"Error","message":"Returned error: execution reverted: ERC721: mint to the zero address","stack":"Error: Returned error: execution reverted: ERC721: mint to the zero addressn    at Object.ErrorResponse 

Everything you MUST Know about the Crypto Crash

Shopping cart
There are no products in the cart!
Continue shopping
0