Iāve wasted enough time on this, so itās over to an expert! Please?
Iām using my own backend executable program & want to access the Web3 APIs but no go.
My āWeb3 API Keyā is placed in the request Header using:
āX-API-KEY:ā (as shown in a doc somewhere)
The Get statement is:
Fetch ('https://speedy-nodes-nyc.moralis.io/310d42f0bca4a543ff35a800/bsc/mainnet/transaction/0x173e0f3b427c40ad121f90129b48f97cf8697e11c33127947ccaa99f5bd89c49')
All I get from this is:
HTTP/1.1 401 Unauthorized
Date: Tue, 07 Dec 2021 09:46:47 GMT
Content-Type: text/plain
Content-Length: 12
Connection: keep-alive
CF-Cache-Status: DYNAMIC
Expect-CT: max-age=604800, report-uri=āhttps://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ctā
Server: cloudflare
CF-RAY: 6b9cd42b8fc255a5-SYD
Unauthorized
Do I need to be logged into Moralis or complete some Auth code first?
It should be as simple as APIs with sites like Coinmarketcap or Binance, but no.
Any light on the subject is appreciated thanks.