Skip to content

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

Open
@fl0ydj

Description

@fl0ydj

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",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions