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
356 stars 110 forks source link

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

Open fl0ydj opened 1 month ago

fl0ydj commented 1 month 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 1 month ago

Feedback about this would be really appreciated! :)

fl0ydj commented 1 month ago

Ideas?

singhparshant commented 1 month ago

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