Curl Tested with the Tool from Moralis Dashboard.
curl -X 'GET' \
'https://{server_endpoint}.moralis.io:2053/api/account/erc20/balances?chain=bsc&chain_name=mainnet&address={address_of_the_user}' \
-H 'accept: application/json' \
-H 'Authorization: Bearer ...
Result:
Failed to fetch.
Possible Reasons:
- CORS
- Network Failure
- URL scheme must be “http” or “https” for CORS request.
The same type of request (with the same bearer token) for erc20/eth/ works without issues.
Do we need to enable some specific plugins for BSC or some extra header need to be added that is not being added by the Moralis API tool?
PS (polygon path also works without issues)