Anchor's network node API is set to its node API by default, which is http://eos.greymass.com. However, this node API requires a VPN to be accessed in China. This means we usually need a VPN when using the Anchor wallet in China.
So, if we set the node API to one that can be accessed in China directly, can we use Anchor without a VPN? The answer is yes, but unfortunately, Anchor for mobile does not support API modification. However, It can be modified on Anchor for desktop. So, Let's talk about how to modify the API of Anchor for desktop.
Note:
Under the default settings of Anchor, the API Performance Analysis Tool may not work correctly. If you suffer from this issue, you can follow Chapter 2 to manually set the API to switch to a different API and then follow the steps in Chapter 1 to analyze and select the best-performing node API.
1. Setting with API Performance Analysis Tool
The Anchor for desktop comes with many tools, including the API Performance Analysis Tool. Here, we will use the API Performance Analysis Tool built-in Anchor for desktop to set the node API.
As shown above, click Tools on the App's left side, then click on API Performance Analysis. The page will be redirected to the interface shown below.
Click on Start New Test in the above picture to start analyzing the performance of APIs. The page will be redirected to the analyzing interface. The analyzing process will take about 3 minutes.
After completing the analysis, the page will change to the above interface. At this point, click on Stop testing to stop the analysis. As shown below, the Use this API button on the right of the node list page will turn green.
After selecting an API with lower latency, click on Use this API to switch to this API.
When completed, we can use Anchor for desktop to verify transactions without a VPN.
2. Set it manually
If your API Performance Analysis Tool does work properly, we can also set the node API manually. We can manually set the node API to those available in China directly.
Below are some APIs that are available on my computer found by API Performance Analysis Tool in Anchor for desktop: (URLs that start with http or https)
starteosiobp: http://api-mainnet.starteos.io
newdex.bp: https://eos.newdex.one
eosflareiobp: https://api.eosflare.io
eosrapidprod: https://api.eosrapid.com
eostitanprod: https://api.eostitan.com
argentinaeos: https://api.eosargentina.io
Now let's talk about the steps to set the API manually.
As shown above, click on the EOS network icon in Anchor for desktop, and then click on Manage Blockchain to enter the management interface below.
Click on the EOS network settings button shown above to enter the settings page shown below.
In the Default node for this blockchain input box, enter the new API URL, and then click Save to complete the process.
Since the performance of APIs depends on one's network, you can try the APIs I listed earlier one by one. After the network abnormality symbol in the upper right corner disappears and the network is in an available state, run the API Performance Analysis Tool once, following the steps in Chapter 1 to find the API that has the best performance. This way, you optimize your Anchor wallet.
Author: Josh Chung
Editor: Markus Hinrichs, Randall Roland
Translator: Josh Chung
Sources and References:
Image Credits:
Screenshots from Desktop Anchor Wallet