Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fl0ydj opened this issue Jul 4, 2024 · 3 comments
Open

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

fl0ydj opened this issue Jul 4, 2024 · 3 comments

Comments

@fl0ydj
Copy link

fl0ydj commented Jul 4, 2024

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
Copy link
Author

fl0ydj commented Jul 11, 2024

Feedback about this would be really appreciated! :)

@fl0ydj
Copy link
Author

fl0ydj commented Jul 18, 2024

Ideas?

@singhparshant
Copy link

singhparshant commented Jul 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants