Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Example usage? #4

Open
rever96 opened this issue Feb 3, 2022 · 0 comments
Open

Example usage? #4

rever96 opened this issue Feb 3, 2022 · 0 comments

Comments

@rever96
Copy link

rever96 commented Feb 3, 2022

Hi, sorry for bother you but I really can't make this to works.
I tried with TatumWalletManager walletManager = new TatumWalletManager(TATUM_API_KEY);
it fails with

CryptoExchange.Net.Authentication.ApiCredentials..ctor (System.String key, System.String secret) (at <c2a52ed7570d4b3587b981aebe20ba53>:0)
Tatum.Net.CoreObjects.TatumClientOptions.set_ApiKey (System.String value) (at <a956925feb7c4494bfc8798054a62c64>:0)
Tatum.Net.CoreObjects.TatumClientOptions..ctor (System.String apikey, Tatum.Net.Enums.ServerRegion region) (at <a956925feb7c4494bfc8798054a62c64>:0)
Tatum.Net.TatumClient..cctor () (at <a956925feb7c4494bfc8798054a62c64>:0)
Rethrow as TypeInitializationException: The type initializer for 'Tatum.Net.TatumClient' threw an exception.
Tatum.Net.TatumWalletManager..ctor (Tatum.Net.CoreObjects.TatumClientOptions options, System.Collections.Generic.IEnumerable`1[T] assets) (at <a956925feb7c4494bfc8798054a62c64>:0)
Tatum.Net.TatumWalletManager..ctor (Tatum.Net.CoreObjects.TatumClientOptions options) (at <a956925feb7c4494bfc8798054a62c64>:0)
Tatum.Net.TatumWalletManager..ctor (System.String apikey) (at <a956925feb7c4494bfc8798054a62c64>:0)

But I don't see any way to pass key and secret before the very first line, I still haven't a wallet/account and it already requires the secret? I only have the tatum api key from tatum.io website.

Same problem with TatumClient:

        TatumClientOptions cli_options = new TatumClientOptions(TATUM_API_KEY, ServerRegion.Europe)
        {
            RateLimiters = new List<IRateLimiter> { new RateLimiterCredit(5, TimeSpan.FromMilliseconds(1000)), },
            RateLimitingBehaviour = RateLimitingBehaviour.Wait,
        };
        TatumClient tatumApi = new TatumClient(cli_options);```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant