tatumio / tatum-js

🚀 Tatum SDK: A 💪 powerful, 🌟 feature-rich TypeScript/JavaScript 📚 library that streamlines the 🛠️ development of 🌐 blockchain applications.
https://docs.tatum.io
MIT License
368 stars 114 forks source link

API key is not applied to @tatumio/api-client #1119

Open fl0ydj opened 5 months ago

fl0ydj commented 5 months ago

Describe the bug When setting the API key in the SDK, its not applied to any calls made with the api-client like: sdk.blockchain.info() or sdk.blockchain.getTransactionsByAddress

This leads to 401s.

To Reproduce const sdk=TatumBtcSDK({ apiKey: env.get(EnvVar.TATUM_API_KEY) }); const a =await sdk.blockchain.info(); -> Fails

Expected behavior Should apply the API key.

Additional context SDK version:

"@tatumio/api-client": "^2.2.81",
"@tatumio/tatum": "^4.2.35",
fl0ydj commented 4 months ago

Feedback about this would be really appreciated! :)

fl0ydj commented 4 months ago

Ideas?

singhparshant commented 4 months ago

I am facing similar issue. Any help on this would be appreciated.