base / base/docs

Issue on docs - parameters to disable telemetry are incorrect

Open
#287 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
337
Forks
792
Avg merge
17h 23m
Merged PRs (30d)
49

Description

Path: /base-account/more/telemetry

This snippet below taken directly from the docs doesn't appear to be correct.

```
import { createCoinbaseWalletSDK } from "@coinbase/wallet-sdk";

const sdk = createCoinbaseWalletSDK({
appName: "My App",
appLogoUrl: "https://example.com/logo.png",
telemetry: false,
});

const provider = sdk.makeProvider();
```

In my app I tried to do the following, but there's two issues with it - the typescript interface for `createCoinbaseWalletSDK()` neither supports a `telemetry` parameter or exposes a `makeProvider()` function.

```
import { createCoinbaseWalletSDK } from '@coinbase/wallet-sdk';

const coinbaseSdk = createCoinbaseWalletSDK({
appName: this.appName,
appLogoUrl: this.appLogoUrl,
telemetry: false,
});

return coinbaseSdk.makeProvider();
```

Image

Image

I'm using the latest `@coinbase/wallet-sdk@4.3.7`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.