diff --git a/src/coinbase/types.ts b/src/coinbase/types.ts index b07a790b..110e4faf 100644 --- a/src/coinbase/types.ts +++ b/src/coinbase/types.ts @@ -818,7 +818,7 @@ export enum FundOperationStatus { export type WalletData = { walletId: string; seed: string; - networkId: string; + networkId?: string; }; /** diff --git a/src/coinbase/wallet.ts b/src/coinbase/wallet.ts index 7151c28c..c44f0dde 100644 --- a/src/coinbase/wallet.ts +++ b/src/coinbase/wallet.ts @@ -217,7 +217,7 @@ export class Wallet { * @returns The Wallet's data. * @throws {APIError} - If the request fails. */ - public export(): WalletData { + public export(): Required { if (!this.seed) { throw new Error("Cannot export Wallet without loaded seed"); }