Ethereum API Question with Binance API in Chrome
As a developer, it is frustrating if the code does not perform it as expected. In this article, I describe a question that arises when the Ethereum API is used with the binance bees in a chrome -based browser such as Google Chrome.
The question: bees binance fetch chrome
When performing the Chrome Ethereum application, the “fetchfetchis is used at the request of external bees, including the binance bees. However, there is a known problem that makes the line
fetchis blocking after reaching The endpoint bees on a 'account_fetch
.
Documentation and known questions:
- [Ethereum API Documentation: Binance API] (
- [Chrome Web Store: Binance Api] ( )))))))))))))))).
Solution step by step:
To solve the problem, follow these steps:
- Update URL API Binance
: Make sure to use the appropriate url of the Binance API in the function of
account_fetch
.
- Check the requirements of the Endpoint API : verify that the API
FUTK
is compatible with the parameters and header required for the Endpoint API Binance.
- Check the compatibility of the browser : although not specifically mentioned, Chrome is likely to have problems with the heavy ingredients from Javascript. Try to update the latest version of Chrome or go to another browser.
Example of code:
Here is a detail of the example code that shows how to update the fetch
in a ‘account_fatch line:
`Javascript
Account_fetch function () {
Const Account = "Your_acCount_id";
Const Apikey = "Your_api_key";
Const Apisecret = "Your_api_secret";
to download (
{apikey} & account = $ {account}
{Method: 'Get'}
) .Then (Reply => {{{
If (answer.ok) {
Return Response.json ();
} Other {
Console.error ('Error -Ridimensation of account data:', respect. Status);
}
}). So (Data => {{{
// Downloaded data processing
});
}
`
If you follow these steps and update the code to reflect the correct binance UPI, you should be able to solve the problem and make sure that the Ethereum application works as required in Chrome.