Closed fl0ydj closed 2 months ago
Any help would be appreciated!
Hello @fl0ydj You can declare api client like this
import { TatumBtcSDK } from '@tatumio/btc'
const btcSDK = TatumBtcSDK({ apiKey: 'your-api-key' })
const { mnemonic, xpub } = await btcSDK.wallet.generateWallet()
console.log(`Created a wallet with ${mnemonic} and public key ${xpub}.`)
For more examples check out https://github.com/tatumio/tatum-js/tree/v2/examples. Have a nice day.
Hey @Hathoriel, my question is about the "@tatumio/api-client". There you can't pass an argument for the api key. E.g.
import {
BitcoinService,
} from "@tatumio/api-client";
await BitcoinService.btcGetBlockChainInfo();
Ok seeing now that the SDK reexports the api client fully. Thanks for the pointer then.
Ok nope doesnt fix this. Opened a new issue for this specifically then: https://github.com/tatumio/tatum-js/issues/1119
Describe the bug I have been using classes exposed by @tatumio/api-client (e.g. BitcoinService). Recently I started getting 401s that I have to add an API key. However, there is no option to add an api key (differently to the standard tatum SDK.
To Reproduce
Additional context SDK version: