CRYPTO NEWS

what’s the replacement HDWalletProvider in client-browser?

so this provider: new HDWalletProvider(privateKey, config.child.rpc) cannot be used in client browser because I need to replace that with a signature provider, I haven’t success.

for init contract I usually replace it with hooks by:

const { account, chainId, library } = useWeb3React()  library?.getSigner(account) 

then I’m able to use in my contract. but now i’m struggling to use matic.js, i have no idea how to properly use it on client-browser because matic.js only give example using node.js with HDWallet/direct private-key.

so after I initialize matic.js

const posClient = async () => {     const posClientx = new POSClient()      return posClientx.init({       network: "testnet",       version: "mumbai",        log: true,       child: {         provider: library?.getSigner(account),         defaultConfig: {           from: account,         },       },       parent: {         provider: library?.getSigner(account),         defaultConfig: {           from: account,         },       },     })   } 

then call it

  const client = await posClient()       console.log(client, "client")       const erc721Token = client.erc721(         "0x94f1e509eb86201313557463d0d7a1f8f9d2d2fa",         true       )       console.log(erc721Token, "erc721Token")        const result = await erc721Token.approveAll()        const txHash = await result.getTransactionHash()       console.log("txHash", txHash)       const receipt = await result.getReceipt()       console.log("receipt", receipt) 

I’m not able to receive pop up metamask, if it’s on node.js (using private-key) will do transaction right away, please enlight me what do i do wrong?

Number of Busted Illegal Crypto Mining Farms in Iran Nears 7,000

Authorities in Iran have shut down close to 7,000 unauthorized facilities for cryptocurrency mining in the past two years, local media revealed. According to a report, most of the illegal bitcoin farms were concentrated in five provinces of the Islamic Republic, including Tehran. Iran Continues Crackdown on Unlicensed Cryptocurrency Mining Iranian officials have unplugged and::Listen

Number of Busted Illegal Crypto Mining Farms in Iran Nears 7,000

Authorities in Iran have shut down close to 7,000 unauthorized facilities for cryptocurrency mining in the past two years, local media revealed. According to a report, most of the illegal bitcoin farms were concentrated in five provinces of the Islamic Republic, including Tehran.

Iran Continues Crackdown on Unlicensed Cryptocurrency Mining

Iranian officials have unplugged and disbanded a total of 6,914 crypto farms operating without a mining license. This since authorities started clamping down on the illegal extraction of cryptocurrencies in 2020, the English-language Iranian daily Financial Tribune unveiled this week.

The newspaper quotes a report by Iribnews.ir, which details that these facilities have burned some 645 megawatts of electrical power while minting digital currencies without permission. It has been estimated this equals the annual consumption of three major regions — North Khorasan, South Khorasan, and Chaharmahal-Bakhtiari.

Cryptocurrency mining has been a legal industrial activity in Iran for almost three years now, after the government approved regulations for the sector in July 2019. A licensing regime was introduced and companies that want to get involved in the business need to obtain authorization from the Ministry of Industries.

However, as registered crypto miners are required to buy the electrical energy they need at higher, export rates, many Iranian miners have opted to remain under the radar. They usually connect illegally to the grid and use subsidized electricity to power their mining hardware.

Iran’s Power Generation, Distribution, and Transmission Company (Tavanir) has been going after underground crypto farms, closing them down and confiscating hundreds of thousands of mining machines. If identified, their operators can be fined for damages inflicted on the distribution network and a report revealed last month that the government is preparing to increase the penalties.

The country’s electricity shortages last summer were partially blamed on increased electricity usage for coin minting and even licensed miners were asked to shut down their equipment. They were allowed to resume operations in September but then again ordered to suspend activities in the face of a growing power deficit in the cold winter months.

Do you expect Iran to continue to crack down on unlicensed crypto mining? Tell us in the comments section below.

what’s the replacement HDWalletProvider in client-browser?

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