@bitgo-beta/sdk-api 1.10.1-beta.1222 → 1.10.1-beta.1223

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/package.json +7 -7
  2. package/package.json +7 -7
  3. package/dist/src/api.d.ts +0 -47
  4. package/dist/src/api.d.ts.map +0 -1
  5. package/dist/src/api.js +0 -215
  6. package/dist/src/bitgoAPI.d.ts +0 -597
  7. package/dist/src/bitgoAPI.d.ts.map +0 -1
  8. package/dist/src/bitgoAPI.js +0 -1837
  9. package/dist/src/encrypt.d.ts +0 -14
  10. package/dist/src/encrypt.d.ts.map +0 -1
  11. package/dist/src/encrypt.js +0 -81
  12. package/dist/src/index.d.ts +0 -6
  13. package/dist/src/index.d.ts.map +0 -1
  14. package/dist/src/index.js +0 -22
  15. package/dist/src/types.d.ts +0 -268
  16. package/dist/src/types.d.ts.map +0 -1
  17. package/dist/src/types.js +0 -7
  18. package/dist/src/util.d.ts +0 -16
  19. package/dist/src/util.d.ts.map +0 -1
  20. package/dist/src/util.js +0 -64
  21. package/dist/src/v1/blockchain.d.ts +0 -5
  22. package/dist/src/v1/blockchain.d.ts.map +0 -1
  23. package/dist/src/v1/blockchain.js +0 -127
  24. package/dist/src/v1/keychains.d.ts +0 -5
  25. package/dist/src/v1/keychains.d.ts.map +0 -1
  26. package/dist/src/v1/keychains.js +0 -320
  27. package/dist/src/v1/markets.d.ts +0 -5
  28. package/dist/src/v1/markets.d.ts.map +0 -1
  29. package/dist/src/v1/markets.js +0 -68
  30. package/dist/src/v1/pendingapproval.d.ts +0 -6
  31. package/dist/src/v1/pendingapproval.d.ts.map +0 -1
  32. package/dist/src/v1/pendingapproval.js +0 -361
  33. package/dist/src/v1/pendingapprovals.d.ts +0 -6
  34. package/dist/src/v1/pendingapprovals.d.ts.map +0 -1
  35. package/dist/src/v1/pendingapprovals.js +0 -102
  36. package/dist/src/v1/signPsbt.d.ts +0 -14
  37. package/dist/src/v1/signPsbt.d.ts.map +0 -1
  38. package/dist/src/v1/signPsbt.js +0 -69
  39. package/dist/src/v1/transactionBuilder.d.ts +0 -5
  40. package/dist/src/v1/transactionBuilder.d.ts.map +0 -1
  41. package/dist/src/v1/transactionBuilder.js +0 -941
  42. package/dist/src/v1/travelRule.d.ts +0 -5
  43. package/dist/src/v1/travelRule.d.ts.map +0 -1
  44. package/dist/src/v1/travelRule.js +0 -294
  45. package/dist/src/v1/verifyAddress.d.ts +0 -6
  46. package/dist/src/v1/verifyAddress.d.ts.map +0 -1
  47. package/dist/src/v1/verifyAddress.js +0 -50
  48. package/dist/src/v1/wallet.d.ts +0 -6
  49. package/dist/src/v1/wallet.d.ts.map +0 -1
  50. package/dist/src/v1/wallet.js +0 -2299
  51. package/dist/src/v1/wallets.d.ts +0 -5
  52. package/dist/src/v1/wallets.d.ts.map +0 -1
  53. package/dist/src/v1/wallets.js +0 -528
@@ -1,597 +0,0 @@
1
- import { BaseCoin, BitGoBase, BitGoRequest, CoinConstructor, DecryptKeysOptions, DecryptOptions, EcdhDerivedKeypair, EncryptOptions, EnvironmentName, GetSharingKeyOptions, GetSigningKeyApi, IRequestTracer } from '@bitgo-beta/sdk-core';
2
- import { ECPairInterface } from '@bitgo-beta/utxo-lib';
3
- import * as superagent from 'superagent';
4
- import { AccessTokenOptions, AddAccessTokenOptions, AddAccessTokenResponse, AuthenticateOptions, AuthenticateWithAuthCodeOptions, BitGoAPIOptions, BitGoJson, BitGoSimulateWebhookOptions, CalculateHmacSubjectOptions, CalculateRequestHeadersOptions, CalculateRequestHmacOptions, ChangePasswordOptions, DeprecatedVerifyAddressOptions, EstimateFeeOptions, ExtendTokenOptions, GetEcdhSecretOptions, GetUserOptions, ListWebhookNotificationsOptions, LoginResponse, PingOptions, ProcessedAuthenticationOptions, ReconstitutedSecret, ReconstituteSecretOptions, RegisterPushTokenOptions, RemoveAccessTokenOptions, RequestHeaders, RequestMethods, SplitSecret, SplitSecretOptions, TokenIssuance, TokenIssuanceResponse, UnlockOptions, User, VerifyPasswordOptions, VerifyPushTokenOptions, VerifyResponseInfo, VerifyResponseOptions, VerifyShardsOptions, WebhookOptions } from './types';
5
- export declare class BitGoAPI implements BitGoBase {
6
- protected _keychains: any;
7
- protected _wallets: any;
8
- protected _markets?: any;
9
- protected _blockchain?: any;
10
- protected _travelRule?: any;
11
- protected _pendingApprovals?: any;
12
- protected static _constants: any;
13
- protected static _constantsExpire: any;
14
- protected static _testnetWarningMessage: boolean;
15
- readonly env: EnvironmentName;
16
- protected readonly _baseUrl: string;
17
- protected readonly _baseApiUrl: string;
18
- protected readonly _baseApiUrlV2: string;
19
- protected readonly _baseApiUrlV3: string;
20
- protected readonly _env: EnvironmentName;
21
- protected readonly _authVersion: Exclude<BitGoAPIOptions['authVersion'], undefined>;
22
- protected _hmacVerification: boolean;
23
- protected readonly _proxy?: string;
24
- protected _user?: User;
25
- protected _extensionKey?: ECPairInterface;
26
- protected _reqId?: IRequestTracer;
27
- protected _token?: string;
28
- protected _version: string;
29
- protected _userAgent?: string;
30
- protected _ecdhXprv?: string;
31
- protected _refreshToken?: string;
32
- protected readonly _clientId?: string;
33
- protected readonly _clientSecret?: string;
34
- protected _validate: boolean;
35
- readonly cookiesPropagationEnabled: boolean;
36
- private _customProxyAgent?;
37
- private getAdditionalHeadersCb?;
38
- constructor(params?: BitGoAPIOptions);
39
- /**
40
- * Get a superagent request for specified http method and URL configured to the SDK configuration
41
- * @param method - http method for the new request
42
- * @param url - URL for the new request
43
- */
44
- protected getAgentRequest(method: RequestMethods, url: string): superagent.SuperAgentRequest;
45
- /**
46
- * Create a basecoin object
47
- * @param name
48
- */
49
- coin(name: string): BaseCoin;
50
- /**
51
- * Return the current BitGo environment
52
- */
53
- getEnv(): EnvironmentName;
54
- /**
55
- * Return the current auth version used for requests to the BitGo server
56
- */
57
- getAuthVersion(): number;
58
- /**
59
- * This is a patching function which can apply our authorization
60
- * headers to any outbound request.
61
- * @param method
62
- */
63
- private requestPatch;
64
- get(url: string): BitGoRequest;
65
- post(url: string): BitGoRequest;
66
- put(url: string): BitGoRequest;
67
- del(url: string): BitGoRequest;
68
- patch(url: string): BitGoRequest;
69
- options(url: string): BitGoRequest;
70
- /**
71
- * Calculate the HMAC for the given key and message
72
- * @param key {String} - the key to use for the HMAC
73
- * @param message {String} - the actual message to HMAC
74
- * @returns {*} - the result of the HMAC operation
75
- */
76
- calculateHMAC(key: string, message: string): string;
77
- /**
78
- * Calculate the subject string that is to be HMAC'ed for a HTTP request or response
79
- * @param urlPath request url, including query params
80
- * @param text request body text
81
- * @param timestamp request timestamp from `Date.now()`
82
- * @param statusCode Only set for HTTP responses, leave blank for requests
83
- * @param method request method
84
- * @returns {string}
85
- */
86
- calculateHMACSubject(params: CalculateHmacSubjectOptions): string;
87
- /**
88
- * Calculate the HMAC for an HTTP request
89
- */
90
- calculateRequestHMAC(params: CalculateRequestHmacOptions): string;
91
- /**
92
- * Calculate request headers with HMAC
93
- */
94
- calculateRequestHeaders(params: CalculateRequestHeadersOptions): RequestHeaders;
95
- /**
96
- * Verify the HMAC for an HTTP response
97
- */
98
- verifyResponse(params: VerifyResponseOptions): VerifyResponseInfo;
99
- /**
100
- * Fetch useful constant values from the BitGo server.
101
- * These values do change infrequently, so they need to be fetched,
102
- * but are unlikely to change during the lifetime of a BitGo object,
103
- * so they can safely cached.
104
- */
105
- fetchConstants(): Promise<any>;
106
- /**
107
- * Create a url for calling BitGo platform APIs
108
- * @param path
109
- * @param version
110
- */
111
- url(path: string, version?: number): string;
112
- /**
113
- * Create a url for calling BitGo microservice APIs
114
- */
115
- microservicesUrl(path: string): string;
116
- /**
117
- * Gets the version of the BitGoJS package
118
- */
119
- version(): string;
120
- /**
121
- * Test connectivity to the server
122
- * @param params
123
- */
124
- ping({ reqId }?: PingOptions): Promise<any>;
125
- /**
126
- * Set a request tracer to provide request IDs during multi-request workflows
127
- */
128
- setRequestTracer(reqTracer: IRequestTracer): void;
129
- /**
130
- * Utility function to encrypt locally.
131
- */
132
- encrypt(params: EncryptOptions): string;
133
- /**
134
- * Decrypt an encrypted string locally.
135
- */
136
- decrypt(params: DecryptOptions): string;
137
- /**
138
- * Attempt to decrypt multiple wallet keys with the provided passphrase
139
- * @param {DecryptKeysOptions} params - Parameters object containing wallet key pairs and password
140
- * @param {Array<{walletId: string, encryptedPrv: string}>} params.walletIdEncryptedKeyPairs - Array of wallet ID and encrypted private key pairs
141
- * @param {string} params.password - The passphrase to attempt decryption with
142
- * @returns {string[]} - Array of wallet IDs for which decryption failed
143
- */
144
- decryptKeys(params: DecryptKeysOptions): string[];
145
- /**
146
- * Serialize this BitGo object to a JSON object.
147
- *
148
- * Caution: contains sensitive data
149
- */
150
- toJSON(): BitGoJson;
151
- /**
152
- * Get the current user
153
- */
154
- user(): User | undefined;
155
- /**
156
- * Deserialize a JSON serialized BitGo object.
157
- *
158
- * Overwrites the properties on the current BitGo object with
159
- * those of the deserialzed object.
160
- *
161
- * @param json
162
- */
163
- fromJSON(json: BitGoJson): void;
164
- /**
165
- * Process the username, password and otp into an object containing the username and hashed password, ready to
166
- * send to bitgo for authentication.
167
- */
168
- preprocessAuthenticationParams({ username, password, otp, forceSMS, extensible, trust, forReset2FA, initialHash, fingerprintHash, }: AuthenticateOptions): ProcessedAuthenticationOptions;
169
- /**
170
- * Validate the passkey response is in the expected format
171
- * Should be as is returned from navigator.credentials.get()
172
- */
173
- validatePasskeyResponse(passkeyResponse: string): void;
174
- /**
175
- * Synchronous method for activating an access token.
176
- */
177
- authenticateWithAccessToken({ accessToken }: AccessTokenOptions): void;
178
- /**
179
- * Creates a new ECDH keychain for the user.
180
- * @param {string} loginPassword - The user's login password.
181
- * @returns {Promise<any>} - A promise that resolves with the new ECDH keychain data.
182
- * @throws {Error} - Throws an error if there is an issue creating the keychain.
183
- */
184
- createUserEcdhKeychain(loginPassword: string): Promise<any>;
185
- /**
186
- * Updates the user's settings with the provided parameters.
187
- * @param {Object} params - The parameters to update the user's settings with.
188
- * @returns {Promise<any>}
189
- * @throws {Error} - Throws an error if there is an issue updating the user's settings.
190
- */
191
- private updateUserSettings;
192
- /**
193
- * Ensures that the user's ECDH keychain is created for wallet sharing and TSS wallets.
194
- * If the keychain does not exist, it will be created and the user's settings will be updated.
195
- * @param {string} loginPassword - The user's login password.
196
- * @returns {Promise<any>} - A promise that resolves with the user's settings ensuring we have the ecdhKeychain in there.
197
- * @throws {Error} - Throws an error if there is an issue creating the keychain or updating the user's settings.
198
- */
199
- private ensureUserEcdhKeychainIsCreated;
200
- /**
201
- * Login to the bitgo platform.
202
- */
203
- authenticate(params: AuthenticateOptions): Promise<LoginResponse | any>;
204
- /**
205
- * Login to the bitgo platform with passkey.
206
- */
207
- authenticateWithPasskey(passkey: string, initialHash?: string, fingerprintHash?: string): Promise<LoginResponse | any>;
208
- /**
209
- *
210
- * @param responseBody Response body object
211
- * @param password Password for the symmetric decryption
212
- */
213
- handleTokenIssuance(responseBody: TokenIssuanceResponse, password?: string): TokenIssuance;
214
- /**
215
- */
216
- verifyPassword(params?: VerifyPasswordOptions): Promise<any>;
217
- /**
218
- * Clear out all state from this BitGo object, effectively logging out the current user.
219
- */
220
- clear(): void;
221
- /**
222
- * Use refresh token to get new access token.
223
- * If the refresh token is null/defined, then we use the stored token from auth
224
- */
225
- refreshToken(params?: {
226
- refreshToken?: string;
227
- }): Promise<any>;
228
- /**
229
- *
230
- * listAccessTokens
231
- * Get information on all of the BitGo access tokens on the user
232
- * @return {
233
- * id: <id of the token>
234
- * label: <the user-provided label for this token>
235
- * user: <id of the user on the token>
236
- * enterprise <id of the enterprise this token is valid for>
237
- * client: <the auth client that this token belongs to>
238
- * scope: <list of allowed OAuth scope values>
239
- * created: <date the token was created>
240
- * expires: <date the token will expire>
241
- * origin: <the origin for which this token is valid>
242
- * isExtensible: <flag indicating if the token can be extended>
243
- * extensionAddress: <address whose private key's signature is necessary for extensions>
244
- * unlock: <info for actions that require an unlock before firing>
245
- * }
246
- */
247
- listAccessTokens(): Promise<any>;
248
- /**
249
- * addAccessToken
250
- * Add a BitGo API Access Token to the current user account
251
- * @param params {
252
- * otp: (required) <valid otp code>
253
- * label: (required) <label for the token>
254
- * duration: <length of time in seconds the token will be valid for>
255
- * ipRestrict: <array of IP address strings to whitelist>
256
- * txValueLimit: <number of outgoing satoshis allowed on this token>
257
- * scope: (required) <authorization scope of the requested token>
258
- * }
259
- * @return {
260
- * id: <id of the token>
261
- * token: <access token hex string to be used for BitGo API request verification>
262
- * label: <user-provided label for this token>
263
- * user: <id of the user on the token>
264
- * enterprise <id of the enterprise this token is valid for>
265
- * client: <the auth client that this token belongs to>
266
- * scope: <list of allowed OAuth scope values>
267
- * created: <date the token was created>
268
- * expires: <date the token will expire>
269
- * origin: <the origin for which this token is valid>
270
- * isExtensible: <flag indicating if the token can be extended>
271
- * extensionAddress: <address whose private key's signature is necessary for extensions>
272
- * unlock: <info for actions that require an unlock before firing>
273
- * }
274
- */
275
- addAccessToken(params: AddAccessTokenOptions): Promise<AddAccessTokenResponse>;
276
- /**
277
- * Sets the expire time of an access token matching either the id or label to the current date, effectively deleting it
278
- *
279
- * Params:
280
- * id: <id of the access token to be deleted>
281
- * label: <label of the access token to be deleted>
282
- *
283
- * Returns:
284
- * id: <id of the token>
285
- * label: <user-provided label for this token>
286
- * user: <id of the user on the token>
287
- * enterprise <id of the enterprise this token is valid for>
288
- * client: <the auth client that this token belongs to>
289
- * scope: <list of allowed OAuth scope values>
290
- * created: <date the token was created>
291
- * expires: <date the token will expire>
292
- * origin: <the origin for which this token is valid>
293
- * isExtensible: <flag indicating if the token can be extended>
294
- * extensionAddress: <address whose private key's signature is ne*cessary for extensions>
295
- * unlock: <info for actions that require an unlock before firing>
296
- * @param params
297
- */
298
- removeAccessToken({ id, label }: RemoveAccessTokenOptions): Promise<any>;
299
- /**
300
- * Generate a random password
301
- * @param {Number} numWords Number of 32-bit words
302
- * @returns {String} base58 random password
303
- */
304
- generateRandomPassword(numWords?: number): string;
305
- /**
306
- * Logout of BitGo
307
- */
308
- logout(): Promise<any>;
309
- /**
310
- * Get a user by ID (name/email only)
311
- * @param id
312
- *
313
- * @deprecated
314
- */
315
- getUser({ id }: GetUserOptions): Promise<any>;
316
- /**
317
- * Get the current logged in user
318
- */
319
- me(): Promise<any>;
320
- /**
321
- * Unlock the session by providing OTP
322
- * @param {string} otp Required OTP code for the account.
323
- * @param {number} duration Desired duration of the unlock in seconds (default=600, max=3600).
324
- */
325
- unlock({ otp, duration }: UnlockOptions): Promise<any>;
326
- /**
327
- * Lock the session
328
- */
329
- lock(): Promise<any>;
330
- /**
331
- * Get the current session
332
- */
333
- session(): Promise<any>;
334
- /**
335
- * Trigger a push/sms for the OTP code
336
- * @param {boolean} params.forceSMS If set to true, will use SMS to send the OTP to the user even if they have other 2FA method set up.
337
- * @deprecated
338
- */
339
- sendOTP(params?: {
340
- forceSMS?: boolean;
341
- }): Promise<any>;
342
- /**
343
- * Extend token, provided the current token is extendable
344
- * @param params
345
- * - duration: duration in seconds by which to extend the token, starting at the current time
346
- */
347
- extendToken(params?: ExtendTokenOptions): Promise<any>;
348
- /**
349
- * Get a key for sharing a wallet with a user
350
- * @param email email of user to share wallet with
351
- */
352
- getSharingKey({ email }: GetSharingKeyOptions): Promise<any>;
353
- /**
354
- * Users that want to sign with a key will use this api to fetch the keychain and the path.
355
- * Users that want to verify a signature will use this api to fetch another users ecdh pubkey.
356
- * Note: If the user id is not provided, it will default to getting the current user's keychain.
357
- * @param bitgo
358
- * @param enterpriseId
359
- * @param userId
360
- */
361
- getSigningKeyForUser(enterpriseId: string, userId?: string): Promise<GetSigningKeyApi>;
362
- /**
363
- *
364
- */
365
- getValidate(): boolean;
366
- /**
367
- *
368
- */
369
- setValidate(validate: boolean): void;
370
- /**
371
- * Register a new coin instance with its builder factory
372
- * @param {string} name coin name as it was registered in @bitgo-beta/statics
373
- * @param {CoinConstructor} coin the builder factory class for that coin
374
- * @returns {void}
375
- */
376
- register(name: string, coin: CoinConstructor): void;
377
- /**
378
- * Get bitcoin market data
379
- *
380
- * @deprecated
381
- */
382
- markets(): any;
383
- /**
384
- * Get the latest bitcoin prices
385
- * (Deprecated: Will be removed in the future) use `bitgo.markets().latest()`
386
- * @deprecated
387
- */
388
- market(): Promise<any>;
389
- /**
390
- * Get market data from yesterday
391
- * (Deprecated: Will be removed in the future) use bitgo.markets().yesterday()
392
- * @deprecated
393
- */
394
- yesterday(): Promise<any>;
395
- /**
396
- * Get the blockchain object.
397
- * @deprecated
398
- */
399
- blockchain(): any;
400
- /**
401
- * Get the user's keychains object.
402
- * @deprecated
403
- */
404
- keychains(): any;
405
- /**
406
- * Get the travel rule object
407
- * @deprecated
408
- */
409
- travelRule(): any;
410
- /**
411
- * Get the user's wallets object.
412
- * @deprecated
413
- */
414
- wallets(): any;
415
- /**
416
- * Get pending approvals that can be approved/ or rejected
417
- * @deprecated
418
- */
419
- pendingApprovals(): any;
420
- /**
421
- * A factory method to create a new Wallet object, initialized with the wallet params
422
- * Can be used to reconstitute a wallet from cached data
423
- * @param walletParams
424
- * @deprecated
425
- */
426
- newWalletObject(walletParams: any): any;
427
- /**
428
- * V1 method for calculating miner fee amounts, given the number and
429
- * type of transaction inputs, along with a fee rate in satoshis per vkB.
430
- *
431
- * This method should not be used for new code.
432
- *
433
- * @deprecated
434
- * @param params
435
- * @return {any}
436
- */
437
- calculateMinerFeeInfo(params: any): Promise<any>;
438
- /**
439
- * Verify a Bitcoin address is a valid base58 address
440
- * @deprecated
441
- */
442
- verifyAddress(params?: DeprecatedVerifyAddressOptions): boolean;
443
- /**
444
- * Split a secret into shards using Shamir Secret Sharing.
445
- * @param seed A hexadecimal secret to split
446
- * @param passwords An array of the passwords used to encrypt each share
447
- * @param m The threshold number of shards necessary to reconstitute the secret
448
- */
449
- splitSecret({ seed, passwords, m }: SplitSecretOptions): SplitSecret;
450
- /**
451
- * Reconstitute a secret which was sharded with `splitSecret`.
452
- * @param shards
453
- * @param passwords
454
- */
455
- reconstituteSecret({ shards, passwords }: ReconstituteSecretOptions): ReconstitutedSecret;
456
- /**
457
- *
458
- * @param shards
459
- * @param passwords
460
- * @param m
461
- * @param xpub Optional xpub to verify the results against
462
- */
463
- verifyShards({ shards, passwords, m, xpub }: VerifyShardsOptions): boolean;
464
- /**
465
- * @deprecated - use `getSharedSecret()`
466
- */
467
- getECDHSecret({ otherPubKeyHex, eckey }: GetEcdhSecretOptions): string;
468
- /**
469
- * Gets the user's private ECDH keychain
470
- */
471
- getECDHKeychain(ecdhKeychainPub?: string): Promise<any>;
472
- /**
473
- * Returns the user derived public and private ECDH keypair
474
- * @param password password to decrypt the user's ECDH encrypted private key
475
- * @param entId? optional enterprise id to check for permissions
476
- */
477
- getEcdhKeypairPrivate(password: string, entId: string): Promise<EcdhDerivedKeypair>;
478
- /**
479
- * @param params
480
- * - operatingSystem: one of ios, android
481
- * - pushToken: hex-formatted token for the respective native push notification service
482
- * @returns {*}
483
- * @deprecated
484
- */
485
- registerPushToken(params: RegisterPushTokenOptions): Promise<any>;
486
- /**
487
- * @param params
488
- * - pushVerificationToken: the token received via push notification to confirm the device's mobility
489
- * @deprecated
490
- */
491
- verifyPushToken(params: VerifyPushTokenOptions): Promise<any>;
492
- /**
493
- * Login to the bitgo system using an authcode generated via Oauth
494
- */
495
- authenticateWithAuthCode(params: AuthenticateWithAuthCodeOptions): Promise<any>;
496
- /**
497
- * Change the password of the currently logged in user.
498
- * Also change all v1 and v2 keychain passwords if they match the
499
- * given oldPassword. Returns nothing on success.
500
- * @param oldPassword {String} - the current password
501
- * @param newPassword {String} - the new password
502
- */
503
- changePassword({ oldPassword, newPassword }: ChangePasswordOptions): Promise<any>;
504
- /**
505
- * Get all the address labels on all of the user's wallets
506
- *
507
- * @deprecated
508
- */
509
- labels(): Promise<any>;
510
- /**
511
- * Estimates approximate fee per kb needed for a tx to get into a block
512
- * @param {number} params.numBlocks target blocks for the transaction to be confirmed
513
- * @param {number} params.maxFee maximum fee willing to be paid (for safety)
514
- * @param {array[string]} params.inputs list of unconfirmed txIds from which this transaction uses inputs
515
- * @param {number} params.txSize estimated transaction size in bytes, optional parameter used for CPFP estimation.
516
- * @param {boolean} params.cpfpAware flag indicating fee should take into account CPFP
517
- * @deprecated
518
- */
519
- estimateFee(params?: EstimateFeeOptions): Promise<any>;
520
- /**
521
- * Get BitGo's guarantee using an instant id
522
- * @param params
523
- * @deprecated
524
- */
525
- instantGuarantee(params: {
526
- id: string;
527
- }): Promise<any>;
528
- /**
529
- * Get a target address for payment of a BitGo fee
530
- * @deprecated
531
- */
532
- getBitGoFeeAddress(): Promise<any>;
533
- /**
534
- * Gets an address object (including the wallet id) for a given address.
535
- * @param {string} params.address The address to look up.
536
- * @deprecated
537
- */
538
- getWalletAddress({ address }: {
539
- address: string;
540
- }): Promise<any>;
541
- /**
542
- * Fetch list of user webhooks
543
- *
544
- * @returns {*}
545
- * @deprecated
546
- */
547
- listWebhooks(): Promise<any>;
548
- /**
549
- * Add new user webhook
550
- *
551
- * @param params
552
- * @returns {*}
553
- * @deprecated
554
- */
555
- addWebhook(params: WebhookOptions): Promise<any>;
556
- /**
557
- * Remove user webhook
558
- *
559
- * @param params
560
- * @returns {*}
561
- * @deprecated
562
- */
563
- removeWebhook(params: WebhookOptions): Promise<any>;
564
- /**
565
- * Fetch list of webhook notifications for the user
566
- *
567
- * @param params
568
- * @returns {*}
569
- */
570
- listWebhookNotifications(params?: ListWebhookNotificationsOptions): Promise<any>;
571
- /**
572
- * Simulate a user webhook
573
- *
574
- * @param params
575
- * @returns {*}
576
- */
577
- simulateWebhook(params: BitGoSimulateWebhookOptions): Promise<any>;
578
- /**
579
- * Synchronously get constants which are relevant to the client.
580
- *
581
- * Note: This function has a known race condition. It may return different values over time,
582
- * especially if called shortly after creation of the BitGo object.
583
- *
584
- * New code should call fetchConstants() directly instead.
585
- *
586
- * @deprecated
587
- * @return {Object} The client constants object
588
- */
589
- getConstants(): any;
590
- /**
591
- * Execute an asset request which does not need HMAC validation
592
- * @param url The URL for the asset request
593
- * @returns {Promise<any>} The response body
594
- */
595
- protected executeAssetRequest(url: string): Promise<any>;
596
- }
597
- //# sourceMappingURL=bitgoAPI.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bitgoAPI.d.ts","sourceRoot":"","sources":["../../src/bitgoAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAER,SAAS,EACT,YAAY,EACZ,eAAe,EAEf,kBAAkB,EAClB,cAAc,EAEd,kBAAkB,EAClB,cAAc,EACd,eAAe,EAIf,oBAAoB,EACpB,gBAAgB,EAEhB,cAAc,EAGf,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAS,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAM9D,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AAWzC,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EAEtB,mBAAmB,EACnB,+BAA+B,EAC/B,eAAe,EACf,SAAS,EACT,2BAA2B,EAC3B,2BAA2B,EAC3B,8BAA8B,EAC9B,2BAA2B,EAC3B,qBAAqB,EACrB,8BAA8B,EAC9B,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,+BAA+B,EAC/B,aAAa,EACb,WAAW,EACX,8BAA8B,EAC9B,mBAAmB,EACnB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,cAAc,EACd,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,IAAI,EACJ,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACf,MAAM,SAAS,CAAC;AAejB,qBAAa,QAAS,YAAW,SAAS;IAExC,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC;IAC1B,SAAS,CAAC,QAAQ,EAAE,GAAG,CAAC;IACxB,SAAS,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACzB,SAAS,CAAC,WAAW,CAAC,EA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