@privy-io/api-types 0.14.0 → 0.16.0
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.
- package/CHANGELOG.md +119 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +33 -27
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -27
- package/client.d.ts.map +1 -1
- package/client.js +17 -3
- package/client.js.map +1 -1
- package/client.mjs +17 -3
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/accounts.d.mts +6 -2
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +6 -2
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/aggregations.d.mts +14 -4
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +14 -4
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/aggregations.mjs.map +1 -1
- package/resources/analytics.d.mts +1 -1
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +1 -1
- package/resources/analytics.d.ts.map +1 -1
- package/resources/analytics.mjs.map +1 -1
- package/resources/apps.d.mts +42 -37
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +42 -37
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +176 -217
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +176 -217
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/cross-app.mjs.map +1 -1
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/embedded-wallets.mjs.map +1 -1
- package/resources/fiat.d.mts.map +1 -1
- package/resources/fiat.d.ts.map +1 -1
- package/resources/fiat.mjs.map +1 -1
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts.map +1 -1
- package/resources/funding.mjs.map +1 -1
- package/resources/index.d.mts +15 -13
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +15 -13
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +112 -79
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +112 -79
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +9 -8
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +9 -8
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +252 -154
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +252 -154
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/kraken-embed.js.map +1 -1
- package/resources/kraken-embed.mjs.map +1 -1
- package/resources/oauth.d.mts +77 -0
- package/resources/oauth.d.mts.map +1 -0
- package/resources/oauth.d.ts +77 -0
- package/resources/oauth.d.ts.map +1 -0
- package/resources/oauth.js +9 -0
- package/resources/oauth.js.map +1 -0
- package/resources/oauth.mjs +5 -0
- package/resources/oauth.mjs.map +1 -0
- package/resources/onramps.d.mts +458 -0
- package/resources/onramps.d.mts.map +1 -0
- package/resources/onramps.d.ts +458 -0
- package/resources/onramps.d.ts.map +1 -0
- package/resources/onramps.js +9 -0
- package/resources/onramps.js.map +1 -0
- package/resources/onramps.mjs +5 -0
- package/resources/onramps.mjs.map +1 -0
- package/resources/organizations.d.mts.map +1 -1
- package/resources/organizations.d.ts.map +1 -1
- package/resources/organizations.mjs.map +1 -1
- package/resources/policies.d.mts +73 -18
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +73 -18
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +38 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +38 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/swaps.d.mts +44 -5
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +44 -5
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +3 -0
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +3 -0
- package/resources/users.d.ts.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +207 -9
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +207 -9
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallet-actions.js.map +1 -1
- package/resources/wallet-actions.mjs.map +1 -1
- package/resources/wallets/balance.d.mts +8 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +8 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.mjs.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +5 -1
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +5 -1
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +749 -84
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +749 -84
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +15 -2
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +15 -2
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/wallets.d.mts.map +1 -1
- package/resources/wallets.d.ts.map +1 -1
- package/resources/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +314 -54
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +314 -54
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +26 -27
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +26 -27
- package/resources/yield.d.ts.map +1 -1
- package/resources/yield.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +389 -65
- package/src/resources/accounts.ts +7 -1
- package/src/resources/aggregations.ts +16 -3
- package/src/resources/analytics.ts +1 -1
- package/src/resources/apps.ts +57 -51
- package/src/resources/client-auth.ts +215 -308
- package/src/resources/index.ts +180 -25
- package/src/resources/intents.ts +132 -91
- package/src/resources/key-quorums.ts +11 -9
- package/src/resources/kraken-embed.ts +591 -432
- package/src/resources/oauth.ts +96 -0
- package/src/resources/onramps.ts +652 -0
- package/src/resources/policies.ts +106 -16
- package/src/resources/shared.ts +53 -0
- package/src/resources/swaps.ts +52 -5
- package/src/resources/users.ts +3 -0
- package/src/resources/wallet-actions.ts +274 -8
- package/src/resources/wallets/balance.ts +13 -1
- package/src/resources/wallets/index.ts +43 -0
- package/src/resources/wallets/transactions.ts +6 -0
- package/src/resources/wallets/wallets.ts +969 -93
- package/src/resources/webhooks.ts +383 -57
- package/src/resources/yield.ts +29 -30
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -92,6 +92,20 @@ export class Wallets extends APIResource {
|
|
|
92
92
|
return this._client.getAPIList('/v1/wallets', Cursor<Wallet>, { query, ...options });
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Archives a wallet, preventing it from being used in any write or signing
|
|
97
|
+
* operations. Archived wallets are hidden from list endpoints by default. Returns
|
|
98
|
+
* 404 if the wallet does not exist or is already archived.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```ts
|
|
102
|
+
* const wallet = await client.wallets.archive('wallet_id');
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
archive(walletID: string, options?: RequestOptions): APIPromise<Wallet> {
|
|
106
|
+
return this._client.post(path`/v1/wallets/${walletID}/archive`, options);
|
|
107
|
+
}
|
|
108
|
+
|
|
95
109
|
/**
|
|
96
110
|
* Export a wallet's private key
|
|
97
111
|
*
|
|
@@ -138,8 +152,12 @@ export class Wallets extends APIResource {
|
|
|
138
152
|
* const wallet = await client.wallets.get('wallet_id');
|
|
139
153
|
* ```
|
|
140
154
|
*/
|
|
141
|
-
get(
|
|
142
|
-
|
|
155
|
+
get(
|
|
156
|
+
walletID: string,
|
|
157
|
+
query: WalletGetParams | null | undefined = {},
|
|
158
|
+
options?: RequestOptions,
|
|
159
|
+
): APIPromise<Wallet> {
|
|
160
|
+
return this._client.get(path`/v1/wallets/${walletID}`, { query, ...options });
|
|
143
161
|
}
|
|
144
162
|
|
|
145
163
|
/**
|
|
@@ -233,6 +251,15 @@ export class Wallets extends APIResource {
|
|
|
233
251
|
|
|
234
252
|
export type WalletsCursor = Cursor<Wallet>;
|
|
235
253
|
|
|
254
|
+
/**
|
|
255
|
+
* An entry in an EIP-2930 access list, specifying an address and its storage keys.
|
|
256
|
+
*/
|
|
257
|
+
export interface AccessListEntry {
|
|
258
|
+
address: string;
|
|
259
|
+
|
|
260
|
+
storage_keys: Array<Hex>;
|
|
261
|
+
}
|
|
262
|
+
|
|
236
263
|
/**
|
|
237
264
|
* Additional signers for the wallet.
|
|
238
265
|
*/
|
|
@@ -258,6 +285,139 @@ export interface AdditionalSignerItemInput {
|
|
|
258
285
|
*/
|
|
259
286
|
export type Address = string;
|
|
260
287
|
|
|
288
|
+
/**
|
|
289
|
+
* Platform fee collected on a swap.
|
|
290
|
+
*/
|
|
291
|
+
export interface AdvancedSwapPlatformFee {
|
|
292
|
+
/**
|
|
293
|
+
* Token the fee was taken from (output token in v1).
|
|
294
|
+
*/
|
|
295
|
+
token: string;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Fee amount in the smallest unit of the fee token.
|
|
299
|
+
*/
|
|
300
|
+
amount: string;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Fee in basis points.
|
|
304
|
+
*/
|
|
305
|
+
bps: number;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Request body for initiating a synchronous Solana token swap through an embedded
|
|
310
|
+
* wallet.
|
|
311
|
+
*/
|
|
312
|
+
export interface AdvancedSwapRequestBody {
|
|
313
|
+
/**
|
|
314
|
+
* Amount in the smallest unit of the input token (e.g. lamports for SOL).
|
|
315
|
+
*/
|
|
316
|
+
amount: string;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Input token address (base58 mint address).
|
|
320
|
+
*/
|
|
321
|
+
input_token: string;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Output token address (base58 mint address).
|
|
325
|
+
*/
|
|
326
|
+
output_token: string;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* CAIP-2 chain identifier. Defaults to Solana mainnet.
|
|
330
|
+
*/
|
|
331
|
+
caip2?: string;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* When true, skip transaction submission (quote + sign only). The signed
|
|
335
|
+
* transaction is still returned.
|
|
336
|
+
*/
|
|
337
|
+
dry_run?: boolean;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Token account (base58) to receive the platform fee. Must exist on-chain for the
|
|
341
|
+
* output token.
|
|
342
|
+
*/
|
|
343
|
+
fee_recipient?: string;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Platform fee in basis points, taken from the output token. Requires
|
|
347
|
+
* fee_recipient when > 0.
|
|
348
|
+
*/
|
|
349
|
+
platform_fee_bps?: number;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Max slippage tolerance in basis points (0-10000), or "auto" for
|
|
353
|
+
* provider-determined. Defaults to "auto".
|
|
354
|
+
*/
|
|
355
|
+
slippage_bps?: number | 'auto';
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Response from the synchronous Solana swap endpoint.
|
|
360
|
+
*/
|
|
361
|
+
export interface AdvancedSwapResponse {
|
|
362
|
+
/**
|
|
363
|
+
* Input amount consumed (smallest unit).
|
|
364
|
+
*/
|
|
365
|
+
in_amount: string;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Input token address (base58).
|
|
369
|
+
*/
|
|
370
|
+
input_token: string;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Minimum output amount guaranteed by slippage tolerance (smallest unit).
|
|
374
|
+
*/
|
|
375
|
+
min_out_amount: string;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Expected output amount before slippage (smallest unit).
|
|
379
|
+
*/
|
|
380
|
+
out_amount: string;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Output token address (base58).
|
|
384
|
+
*/
|
|
385
|
+
output_token: string;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Which aggregator fulfilled the swap (e.g. "dflow").
|
|
389
|
+
*/
|
|
390
|
+
provider: string;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Fully signed transaction (base64). Callers can re-submit to any Solana RPC for
|
|
394
|
+
* redundancy.
|
|
395
|
+
*/
|
|
396
|
+
signed_transaction: string;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Slippage applied in basis points. Reflects the resolved value if "auto" was
|
|
400
|
+
* requested.
|
|
401
|
+
*/
|
|
402
|
+
slippage_bps: number;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* "accepted" if the network has acknowledged the transaction, "rejected" if the
|
|
406
|
+
* network refused it, "skipped" if dry_run was set. Not an onchain confirmation.
|
|
407
|
+
*/
|
|
408
|
+
submission_status: SwapSubmissionStatus;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Solana transaction signature (base58).
|
|
412
|
+
*/
|
|
413
|
+
transaction_hash: string;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Platform fee collected on a swap.
|
|
417
|
+
*/
|
|
418
|
+
platform_fee?: AdvancedSwapPlatformFee;
|
|
419
|
+
}
|
|
420
|
+
|
|
261
421
|
/**
|
|
262
422
|
* Whether the amount refers to the input token or output token.
|
|
263
423
|
*/
|
|
@@ -342,7 +502,10 @@ export interface CustodialWallet {
|
|
|
342
502
|
*/
|
|
343
503
|
custody: WalletCustodian;
|
|
344
504
|
|
|
345
|
-
|
|
505
|
+
/**
|
|
506
|
+
* A unique identifier for a key quorum.
|
|
507
|
+
*/
|
|
508
|
+
owner_id: SharedAPI.KeyQuorumID | null;
|
|
346
509
|
|
|
347
510
|
/**
|
|
348
511
|
* Additional signers for the wallet.
|
|
@@ -405,9 +568,10 @@ export type CustodialWalletProvider = 'bridge';
|
|
|
405
568
|
*/
|
|
406
569
|
export interface CustomTokenTransferSource {
|
|
407
570
|
/**
|
|
408
|
-
* Amount as a decimal string in the token's standard unit (e.g. "1.5"
|
|
409
|
-
* USDC, "0.01" for 0.01 ETH).
|
|
410
|
-
* etc.).
|
|
571
|
+
* @deprecated Amount as a decimal string in the token's standard unit (e.g. "1.5"
|
|
572
|
+
* for 1.5 USDC, "0.01" for 0.01 ETH). For exact_input, specifies the amount to
|
|
573
|
+
* send. Not in the smallest on-chain unit (wei, lamports, etc.). Maximum 100
|
|
574
|
+
* characters.
|
|
411
575
|
*/
|
|
412
576
|
amount: string;
|
|
413
577
|
|
|
@@ -425,6 +589,76 @@ export interface CustomTokenTransferSource {
|
|
|
425
589
|
chain: string;
|
|
426
590
|
}
|
|
427
591
|
|
|
592
|
+
/**
|
|
593
|
+
* Estimated fee paid to the developer.
|
|
594
|
+
*/
|
|
595
|
+
export interface DeveloperFee {
|
|
596
|
+
/**
|
|
597
|
+
* Amount in USD (in decimals).
|
|
598
|
+
*/
|
|
599
|
+
amount: string;
|
|
600
|
+
|
|
601
|
+
type: 'developer';
|
|
602
|
+
|
|
603
|
+
recipient?: string;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* HPKE-encrypted authorization key with encapsulated key and ciphertext.
|
|
608
|
+
*/
|
|
609
|
+
export interface EncryptedAuthorizationKey {
|
|
610
|
+
/**
|
|
611
|
+
* The encrypted authorization key corresponding to the user's current
|
|
612
|
+
* authentication session.
|
|
613
|
+
*/
|
|
614
|
+
ciphertext: string;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Base64-encoded ephemeral public key used in the HPKE encryption process.
|
|
618
|
+
* Required for decryption.
|
|
619
|
+
*/
|
|
620
|
+
encapsulated_key: string;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* The encryption type used. Currently only supports HPKE.
|
|
624
|
+
*/
|
|
625
|
+
encryption_type: 'HPKE';
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Encrypted response from bound wallet authentication, with bindings.
|
|
630
|
+
*/
|
|
631
|
+
export interface EncryptedBoundAuthenticateResponse {
|
|
632
|
+
bindings: Array<UserSigningKeyBinding>;
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* HPKE-encrypted authorization key with encapsulated key and ciphertext.
|
|
636
|
+
*/
|
|
637
|
+
encrypted_authorization_key: EncryptedAuthorizationKey;
|
|
638
|
+
|
|
639
|
+
expires_at: number;
|
|
640
|
+
|
|
641
|
+
wallets: Array<Wallet>;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* The response from authenticating a wallet with HPKE encryption, containing an
|
|
646
|
+
* encrypted authorization key and wallet data.
|
|
647
|
+
*/
|
|
648
|
+
export interface EncryptedWalletAuthenticateResponse {
|
|
649
|
+
/**
|
|
650
|
+
* HPKE-encrypted authorization key with encapsulated key and ciphertext.
|
|
651
|
+
*/
|
|
652
|
+
encrypted_authorization_key: EncryptedAuthorizationKey;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* The expiration time of the authorization key in milliseconds since the epoch.
|
|
656
|
+
*/
|
|
657
|
+
expires_at: number;
|
|
658
|
+
|
|
659
|
+
wallets: Array<Wallet>;
|
|
660
|
+
}
|
|
661
|
+
|
|
428
662
|
/**
|
|
429
663
|
* Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
|
|
430
664
|
*/
|
|
@@ -438,8 +672,19 @@ export interface EthereumPersonalSignRpcInput {
|
|
|
438
672
|
|
|
439
673
|
address?: string;
|
|
440
674
|
|
|
675
|
+
/**
|
|
676
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
677
|
+
*/
|
|
678
|
+
caip2?: AppsAPI.Caip2;
|
|
679
|
+
|
|
441
680
|
chain_type?: 'ethereum';
|
|
442
681
|
|
|
682
|
+
/**
|
|
683
|
+
* Options controlling signature production for personal_sign and
|
|
684
|
+
* eth_signTypedData_v4.
|
|
685
|
+
*/
|
|
686
|
+
signature_options?: SignatureOptions;
|
|
687
|
+
|
|
443
688
|
wallet_id?: string;
|
|
444
689
|
}
|
|
445
690
|
|
|
@@ -875,8 +1120,19 @@ export interface EthereumSignTypedDataRpcInput {
|
|
|
875
1120
|
|
|
876
1121
|
address?: string;
|
|
877
1122
|
|
|
1123
|
+
/**
|
|
1124
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
1125
|
+
*/
|
|
1126
|
+
caip2?: AppsAPI.Caip2;
|
|
1127
|
+
|
|
878
1128
|
chain_type?: 'ethereum';
|
|
879
1129
|
|
|
1130
|
+
/**
|
|
1131
|
+
* Options controlling signature production for personal_sign and
|
|
1132
|
+
* eth_signTypedData_v4.
|
|
1133
|
+
*/
|
|
1134
|
+
signature_options?: SignatureOptions;
|
|
1135
|
+
|
|
880
1136
|
wallet_id?: string;
|
|
881
1137
|
}
|
|
882
1138
|
|
|
@@ -1063,11 +1319,52 @@ export type ExtendedChainType =
|
|
|
1063
1319
|
| 'starknet'
|
|
1064
1320
|
| 'spark';
|
|
1065
1321
|
|
|
1322
|
+
/**
|
|
1323
|
+
* Total fees assessed on a transfer, in BPS
|
|
1324
|
+
*/
|
|
1325
|
+
export interface FeeConfiguration {
|
|
1326
|
+
/**
|
|
1327
|
+
* Discriminator: total fee specified in BPS.
|
|
1328
|
+
*/
|
|
1329
|
+
type: 'total_fee_bps';
|
|
1330
|
+
|
|
1331
|
+
/**
|
|
1332
|
+
* Total fee in basis points (1 bps = 0.01%).
|
|
1333
|
+
*/
|
|
1334
|
+
value: number;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
/**
|
|
1338
|
+
* An individual fee assessed on a transfer.
|
|
1339
|
+
*/
|
|
1340
|
+
export type FeeLineItem = RelayerFee | PrivyFee | DeveloperFee;
|
|
1341
|
+
|
|
1066
1342
|
/**
|
|
1067
1343
|
* The wallet chain types that offer first class support.
|
|
1068
1344
|
*/
|
|
1069
1345
|
export type FirstClassChainType = 'ethereum' | 'solana';
|
|
1070
1346
|
|
|
1347
|
+
/**
|
|
1348
|
+
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
1349
|
+
* human-readable decimal string, plus the gas token symbol.
|
|
1350
|
+
*/
|
|
1351
|
+
export interface Gas {
|
|
1352
|
+
/**
|
|
1353
|
+
* Gas cost in the gas token as a human-readable decimal string (e.g. "0.0001").
|
|
1354
|
+
*/
|
|
1355
|
+
amount: string;
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* Gas cost in the gas token's base units (e.g. wei).
|
|
1359
|
+
*/
|
|
1360
|
+
base_amount: string;
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* Gas token symbol (e.g. "ETH", "USDC").
|
|
1364
|
+
*/
|
|
1365
|
+
gas_asset: string;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1071
1368
|
/**
|
|
1072
1369
|
* Request body for looking up a wallet by its blockchain address.
|
|
1073
1370
|
*/
|
|
@@ -1076,6 +1373,12 @@ export interface GetByWalletAddressRequestBody {
|
|
|
1076
1373
|
* A blockchain wallet address (Ethereum or Solana).
|
|
1077
1374
|
*/
|
|
1078
1375
|
address: Address;
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* Include archived wallets in lookup. Defaults to false (archived wallets return
|
|
1379
|
+
* 404).
|
|
1380
|
+
*/
|
|
1381
|
+
include_archived?: boolean;
|
|
1079
1382
|
}
|
|
1080
1383
|
|
|
1081
1384
|
/**
|
|
@@ -1088,8 +1391,8 @@ export interface HDInitInput {
|
|
|
1088
1391
|
address: string;
|
|
1089
1392
|
|
|
1090
1393
|
/**
|
|
1091
|
-
* The chain type of the wallet to import.
|
|
1092
|
-
* `
|
|
1394
|
+
* The chain type of the wallet to import. Supports `ethereum`, `solana`,
|
|
1395
|
+
* `stellar`, `tron`, `sui`, and `aptos`.
|
|
1093
1396
|
*/
|
|
1094
1397
|
chain_type: WalletImportSupportedChains;
|
|
1095
1398
|
|
|
@@ -1124,8 +1427,8 @@ export interface HDSubmitInput {
|
|
|
1124
1427
|
address: string;
|
|
1125
1428
|
|
|
1126
1429
|
/**
|
|
1127
|
-
* The chain type of the wallet to import.
|
|
1128
|
-
* `
|
|
1430
|
+
* The chain type of the wallet to import. Supports `ethereum`, `solana`,
|
|
1431
|
+
* `stellar`, `tron`, `sui`, and `aptos`.
|
|
1129
1432
|
*/
|
|
1130
1433
|
chain_type: WalletImportSupportedChains;
|
|
1131
1434
|
|
|
@@ -1203,15 +1506,25 @@ export interface HpkeImportConfig {
|
|
|
1203
1506
|
*/
|
|
1204
1507
|
export type Hex = string;
|
|
1205
1508
|
|
|
1509
|
+
/**
|
|
1510
|
+
* A binding that scopes a user signing key to a specific intent.
|
|
1511
|
+
*/
|
|
1512
|
+
export interface IntentBinding {
|
|
1513
|
+
intentId: string;
|
|
1514
|
+
|
|
1515
|
+
type: 'intent';
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1206
1518
|
/**
|
|
1207
1519
|
* Source for a transfer identified by a named asset (e.g. "usdc", "eth"). Use this
|
|
1208
1520
|
* variant for first-class assets maintained by Privy.
|
|
1209
1521
|
*/
|
|
1210
1522
|
export interface NamedTokenTransferSource {
|
|
1211
1523
|
/**
|
|
1212
|
-
* Amount as a decimal string in the token's standard unit (e.g. "1.5"
|
|
1213
|
-
* USDC, "0.01" for 0.01 ETH).
|
|
1214
|
-
* etc.).
|
|
1524
|
+
* @deprecated Amount as a decimal string in the token's standard unit (e.g. "1.5"
|
|
1525
|
+
* for 1.5 USDC, "0.01" for 0.01 ETH). For exact_input, specifies the amount to
|
|
1526
|
+
* send. Not in the smallest on-chain unit (wei, lamports, etc.). Maximum 100
|
|
1527
|
+
* characters.
|
|
1215
1528
|
*/
|
|
1216
1529
|
amount: string;
|
|
1217
1530
|
|
|
@@ -1296,8 +1609,8 @@ export interface PrivateKeyInitInput {
|
|
|
1296
1609
|
address: string;
|
|
1297
1610
|
|
|
1298
1611
|
/**
|
|
1299
|
-
* The chain type of the wallet to import.
|
|
1300
|
-
* `
|
|
1612
|
+
* The chain type of the wallet to import. Supports `ethereum`, `solana`,
|
|
1613
|
+
* `stellar`, `tron`, `sui`, and `aptos`.
|
|
1301
1614
|
*/
|
|
1302
1615
|
chain_type: WalletImportSupportedChains;
|
|
1303
1616
|
|
|
@@ -1319,8 +1632,8 @@ export interface PrivateKeySubmitInput {
|
|
|
1319
1632
|
address: string;
|
|
1320
1633
|
|
|
1321
1634
|
/**
|
|
1322
|
-
* The chain type of the wallet to import.
|
|
1323
|
-
* `
|
|
1635
|
+
* The chain type of the wallet to import. Supports `ethereum`, `solana`,
|
|
1636
|
+
* `stellar`, `tron`, `sui`, and `aptos`.
|
|
1324
1637
|
*/
|
|
1325
1638
|
chain_type: WalletImportSupportedChains;
|
|
1326
1639
|
|
|
@@ -1350,12 +1663,39 @@ export interface PrivateKeySubmitInput {
|
|
|
1350
1663
|
hpke_config?: HpkeImportConfig;
|
|
1351
1664
|
}
|
|
1352
1665
|
|
|
1666
|
+
/**
|
|
1667
|
+
* Estimated fee paid to Privy.
|
|
1668
|
+
*/
|
|
1669
|
+
export interface PrivyFee {
|
|
1670
|
+
/**
|
|
1671
|
+
* Amount in USD (in decimals).
|
|
1672
|
+
*/
|
|
1673
|
+
amount: string;
|
|
1674
|
+
|
|
1675
|
+
type: 'privy';
|
|
1676
|
+
|
|
1677
|
+
recipient?: string;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1353
1680
|
/**
|
|
1354
1681
|
* A quantity value that can be either a hex string starting with '0x' or a
|
|
1355
1682
|
* non-negative integer.
|
|
1356
1683
|
*/
|
|
1357
1684
|
export type Quantity = Hex | number;
|
|
1358
1685
|
|
|
1686
|
+
/**
|
|
1687
|
+
* Unencrypted response from bound wallet authentication, with bindings.
|
|
1688
|
+
*/
|
|
1689
|
+
export interface RawBoundAuthenticateResponse {
|
|
1690
|
+
authorization_key: string;
|
|
1691
|
+
|
|
1692
|
+
bindings: Array<UserSigningKeyBinding>;
|
|
1693
|
+
|
|
1694
|
+
expires_at: number;
|
|
1695
|
+
|
|
1696
|
+
wallets: Array<Wallet>;
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1359
1699
|
/**
|
|
1360
1700
|
* Encoding scheme for bytes in the `raw_sign` RPC.
|
|
1361
1701
|
*/
|
|
@@ -1438,12 +1778,44 @@ export interface RawSignResponseData {
|
|
|
1438
1778
|
signature: Hex;
|
|
1439
1779
|
}
|
|
1440
1780
|
|
|
1781
|
+
/**
|
|
1782
|
+
* The response from authenticating a wallet without encryption, containing a raw
|
|
1783
|
+
* authorization key and wallet data.
|
|
1784
|
+
*/
|
|
1785
|
+
export interface RawWalletAuthenticateResponse {
|
|
1786
|
+
/**
|
|
1787
|
+
* The raw authorization key data.
|
|
1788
|
+
*/
|
|
1789
|
+
authorization_key: string;
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* The expiration time of the authorization key in milliseconds since the epoch.
|
|
1793
|
+
*/
|
|
1794
|
+
expires_at: number;
|
|
1795
|
+
|
|
1796
|
+
wallets: Array<Wallet>;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1441
1799
|
/**
|
|
1442
1800
|
* The recipient public key for HPKE encryption, in PEM or DER (base64-encoded)
|
|
1443
1801
|
* format.
|
|
1444
1802
|
*/
|
|
1445
1803
|
export type RecipientPublicKey = string;
|
|
1446
1804
|
|
|
1805
|
+
/**
|
|
1806
|
+
* Estimated fee paid to the relayer.
|
|
1807
|
+
*/
|
|
1808
|
+
export interface RelayerFee {
|
|
1809
|
+
/**
|
|
1810
|
+
* Amount in USD (in decimals).
|
|
1811
|
+
*/
|
|
1812
|
+
amount: string;
|
|
1813
|
+
|
|
1814
|
+
type: 'relayer';
|
|
1815
|
+
|
|
1816
|
+
recipient?: string;
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1447
1819
|
/**
|
|
1448
1820
|
* Input for exporting a wallet (private key or seed phrase) with HPKE encryption.
|
|
1449
1821
|
*/
|
|
@@ -1482,6 +1854,26 @@ export interface SeedPhraseExportResponse {
|
|
|
1482
1854
|
encryption_type: HpkeEncryption;
|
|
1483
1855
|
}
|
|
1484
1856
|
|
|
1857
|
+
/**
|
|
1858
|
+
* Options controlling signature production for personal_sign and
|
|
1859
|
+
* eth_signTypedData_v4.
|
|
1860
|
+
*/
|
|
1861
|
+
export interface SignatureOptions {
|
|
1862
|
+
/**
|
|
1863
|
+
* The type of cryptographic signature to produce. Use "ecdsa" for standard ECDSA
|
|
1864
|
+
* signatures, or "erc1271" for ERC-1271 compliant signatures for smart account
|
|
1865
|
+
* wallets.
|
|
1866
|
+
*/
|
|
1867
|
+
type: SignatureType;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
/**
|
|
1871
|
+
* The type of cryptographic signature to produce. Use "ecdsa" for standard ECDSA
|
|
1872
|
+
* signatures, or "erc1271" for ERC-1271 compliant signatures for smart account
|
|
1873
|
+
* wallets.
|
|
1874
|
+
*/
|
|
1875
|
+
export type SignatureType = 'ecdsa' | 'erc1271';
|
|
1876
|
+
|
|
1485
1877
|
/**
|
|
1486
1878
|
* The signing algorithm used by the wallet.
|
|
1487
1879
|
*/
|
|
@@ -2293,6 +2685,12 @@ export interface SparkWalletLeaf {
|
|
|
2293
2685
|
*/
|
|
2294
2686
|
export type SuiCommandName = 'TransferObjects' | 'SplitCoins' | 'MergeCoins';
|
|
2295
2687
|
|
|
2688
|
+
/**
|
|
2689
|
+
* "accepted" if the network has acknowledged the transaction, "rejected" if the
|
|
2690
|
+
* network refused it, "skipped" if dry_run was set. Not an onchain confirmation.
|
|
2691
|
+
*/
|
|
2692
|
+
export type SwapSubmissionStatus = 'accepted' | 'rejected' | 'skipped';
|
|
2693
|
+
|
|
2296
2694
|
/**
|
|
2297
2695
|
* An AA authorization for Tempo transactions with P256/WebAuthn signatures.
|
|
2298
2696
|
*/
|
|
@@ -2383,7 +2781,7 @@ export interface TokenOutput {
|
|
|
2383
2781
|
*/
|
|
2384
2782
|
export interface TokenTransferDestination {
|
|
2385
2783
|
/**
|
|
2386
|
-
* Recipient address (hex for EVM, base58 for Solana)
|
|
2784
|
+
* Recipient address (hex for EVM, base58 for Solana, base58check for Tron)
|
|
2387
2785
|
*/
|
|
2388
2786
|
address: string;
|
|
2389
2787
|
|
|
@@ -2406,6 +2804,21 @@ export interface TokenTransferDestination {
|
|
|
2406
2804
|
*/
|
|
2407
2805
|
export type TokenTransferSource = NamedTokenTransferSource | CustomTokenTransferSource;
|
|
2408
2806
|
|
|
2807
|
+
/**
|
|
2808
|
+
* Total fees assessed on a transfer, in BPS
|
|
2809
|
+
*/
|
|
2810
|
+
export interface TotalFeeConfigurationBps {
|
|
2811
|
+
/**
|
|
2812
|
+
* Discriminator: total fee specified in BPS.
|
|
2813
|
+
*/
|
|
2814
|
+
type: 'total_fee_bps';
|
|
2815
|
+
|
|
2816
|
+
/**
|
|
2817
|
+
* Total fee in basis points (1 bps = 0.01%).
|
|
2818
|
+
*/
|
|
2819
|
+
value: number;
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2409
2822
|
/**
|
|
2410
2823
|
* Details of a wallet transaction, varying by transaction type.
|
|
2411
2824
|
*/
|
|
@@ -2418,14 +2831,107 @@ export type TransactionDetail = TransferSentTransactionDetail | TransferReceived
|
|
|
2418
2831
|
export type TransactionTokenAddressInput = string;
|
|
2419
2832
|
|
|
2420
2833
|
/**
|
|
2421
|
-
*
|
|
2834
|
+
* Request body for requesting a quote for a cross-asset or cross-chain (DADC)
|
|
2835
|
+
* transfer.
|
|
2422
2836
|
*/
|
|
2423
|
-
export interface
|
|
2424
|
-
|
|
2837
|
+
export interface TransferQuoteRequestBody {
|
|
2838
|
+
/**
|
|
2839
|
+
* The destination address for a token transfer. Optionally specify a different
|
|
2840
|
+
* asset or chain for cross-asset or cross-chain transfers.
|
|
2841
|
+
*/
|
|
2842
|
+
destination: TokenTransferDestination;
|
|
2843
|
+
|
|
2844
|
+
/**
|
|
2845
|
+
* The source asset, amount, and chain for a token transfer. Specify either `asset`
|
|
2846
|
+
* (named) or `asset_address` (custom), not both.
|
|
2847
|
+
*/
|
|
2848
|
+
source: TokenTransferSource;
|
|
2849
|
+
|
|
2850
|
+
/**
|
|
2851
|
+
* Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5
|
|
2852
|
+
* USDC). For exact_input, the amount to send. For exact_output, the exact amount
|
|
2853
|
+
* to receive. Takes precedence over source.amount when both are provided.
|
|
2854
|
+
*/
|
|
2855
|
+
amount?: string;
|
|
2856
|
+
|
|
2857
|
+
/**
|
|
2858
|
+
* Whether the amount refers to the input token or output token.
|
|
2859
|
+
*/
|
|
2860
|
+
amount_type?: AmountType;
|
|
2861
|
+
|
|
2862
|
+
/**
|
|
2863
|
+
* Total fees assessed on a transfer, in BPS
|
|
2864
|
+
*/
|
|
2865
|
+
fee_configuration?: FeeConfiguration;
|
|
2866
|
+
|
|
2867
|
+
/**
|
|
2868
|
+
* Maximum allowed slippage in basis points (1 bps = 0.01%). Only applicable for
|
|
2869
|
+
* cross-chain or cross-asset transfers; omit to use the provider default.
|
|
2870
|
+
*/
|
|
2871
|
+
slippage_bps?: number;
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2874
|
+
/**
|
|
2875
|
+
* Response containing a quote for a cross-asset or cross-chain (DADC) transfer.
|
|
2876
|
+
*/
|
|
2877
|
+
export interface TransferQuoteResponse {
|
|
2878
|
+
/**
|
|
2879
|
+
* The destination address for a token transfer. Optionally specify a different
|
|
2880
|
+
* asset or chain for cross-asset or cross-chain transfers.
|
|
2881
|
+
*/
|
|
2882
|
+
destination: TokenTransferDestination;
|
|
2883
|
+
|
|
2884
|
+
/**
|
|
2885
|
+
* Estimated fees in USD for the transfer. Only present for cross-chain transfers.
|
|
2886
|
+
*/
|
|
2887
|
+
estimated_fees: Array<FeeLineItem>;
|
|
2888
|
+
|
|
2889
|
+
/**
|
|
2890
|
+
* Estimated input amount in decimals. For exact_input, this equals source.amount.
|
|
2891
|
+
* For exact_output, this is the estimated amount the sender needs to provide.
|
|
2892
|
+
*/
|
|
2893
|
+
estimated_input_amount: string;
|
|
2894
|
+
|
|
2895
|
+
/**
|
|
2896
|
+
* Estimated output amount in decimals. For exact_input, this is an estimate
|
|
2897
|
+
* subject to slippage. For exact_output, this is the guaranteed exact amount to be
|
|
2898
|
+
* received.
|
|
2899
|
+
*/
|
|
2900
|
+
estimated_output_amount: string;
|
|
2901
|
+
|
|
2902
|
+
/**
|
|
2903
|
+
* Quote expiry as Unix timestamp (seconds).
|
|
2904
|
+
*/
|
|
2905
|
+
expires_at: number;
|
|
2906
|
+
|
|
2907
|
+
/**
|
|
2908
|
+
* The source asset, amount, and chain for a token transfer. Specify either `asset`
|
|
2909
|
+
* (named) or `asset_address` (custom), not both.
|
|
2910
|
+
*/
|
|
2911
|
+
source: TokenTransferSource;
|
|
2912
|
+
|
|
2913
|
+
/**
|
|
2914
|
+
* Whether the amount refers to the input token or output token.
|
|
2915
|
+
*/
|
|
2916
|
+
amount_type?: AmountType;
|
|
2917
|
+
|
|
2918
|
+
/**
|
|
2919
|
+
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
2920
|
+
* human-readable decimal string, plus the gas token symbol.
|
|
2921
|
+
*/
|
|
2922
|
+
estimated_gas?: Gas;
|
|
2923
|
+
}
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2926
|
+
* Details for a received transfer transaction.
|
|
2927
|
+
*/
|
|
2928
|
+
export interface TransferReceivedTransactionDetail {
|
|
2929
|
+
asset: 'usdc' | 'usdc.e' | 'eth' | 'avax' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
2425
2930
|
|
|
2426
2931
|
chain:
|
|
2427
2932
|
| 'ethereum'
|
|
2428
2933
|
| 'arbitrum'
|
|
2934
|
+
| 'avalanche'
|
|
2429
2935
|
| 'base'
|
|
2430
2936
|
| 'tempo'
|
|
2431
2937
|
| 'linea'
|
|
@@ -2435,6 +2941,7 @@ export interface TransferReceivedTransactionDetail {
|
|
|
2435
2941
|
| 'zksync_era'
|
|
2436
2942
|
| 'sepolia'
|
|
2437
2943
|
| 'arbitrum_sepolia'
|
|
2944
|
+
| 'avalanche_fuji'
|
|
2438
2945
|
| 'base_sepolia'
|
|
2439
2946
|
| 'linea_testnet'
|
|
2440
2947
|
| 'optimism_sepolia'
|
|
@@ -2475,13 +2982,26 @@ export interface TransferRequestBody {
|
|
|
2475
2982
|
*/
|
|
2476
2983
|
source: TokenTransferSource;
|
|
2477
2984
|
|
|
2985
|
+
/**
|
|
2986
|
+
* Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5
|
|
2987
|
+
* USDC). For exact_input, the amount to send. For exact_output, the exact amount
|
|
2988
|
+
* to receive. Takes precedence over source.amount when both are provided.
|
|
2989
|
+
*/
|
|
2990
|
+
amount?: string;
|
|
2991
|
+
|
|
2478
2992
|
/**
|
|
2479
2993
|
* Whether the amount refers to the input token or output token.
|
|
2480
2994
|
*/
|
|
2481
2995
|
amount_type?: AmountType;
|
|
2482
2996
|
|
|
2483
2997
|
/**
|
|
2484
|
-
*
|
|
2998
|
+
* Total fees assessed on a transfer, in BPS
|
|
2999
|
+
*/
|
|
3000
|
+
fee_configuration?: FeeConfiguration;
|
|
3001
|
+
|
|
3002
|
+
/**
|
|
3003
|
+
* Maximum allowed slippage in basis points (1 bps = 0.01%). Only applicable for
|
|
3004
|
+
* cross-chain or cross-asset transfers; omit to use the provider default.
|
|
2485
3005
|
*/
|
|
2486
3006
|
slippage_bps?: number;
|
|
2487
3007
|
}
|
|
@@ -2490,11 +3010,12 @@ export interface TransferRequestBody {
|
|
|
2490
3010
|
* Details for a sent transfer transaction.
|
|
2491
3011
|
*/
|
|
2492
3012
|
export interface TransferSentTransactionDetail {
|
|
2493
|
-
asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
3013
|
+
asset: 'usdc' | 'usdc.e' | 'eth' | 'avax' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
2494
3014
|
|
|
2495
3015
|
chain:
|
|
2496
3016
|
| 'ethereum'
|
|
2497
3017
|
| 'arbitrum'
|
|
3018
|
+
| 'avalanche'
|
|
2498
3019
|
| 'base'
|
|
2499
3020
|
| 'tempo'
|
|
2500
3021
|
| 'linea'
|
|
@@ -2504,6 +3025,7 @@ export interface TransferSentTransactionDetail {
|
|
|
2504
3025
|
| 'zksync_era'
|
|
2505
3026
|
| 'sepolia'
|
|
2506
3027
|
| 'arbitrum_sepolia'
|
|
3028
|
+
| 'avalanche_fuji'
|
|
2507
3029
|
| 'base_sepolia'
|
|
2508
3030
|
| 'linea_testnet'
|
|
2509
3031
|
| 'optimism_sepolia'
|
|
@@ -2528,6 +3050,214 @@ export interface TransferSentTransactionDetail {
|
|
|
2528
3050
|
type: 'transfer_sent';
|
|
2529
3051
|
}
|
|
2530
3052
|
|
|
3053
|
+
/**
|
|
3054
|
+
* A Tron contract, discriminated by type. Supported types: TransferContract,
|
|
3055
|
+
* TriggerSmartContract.
|
|
3056
|
+
*/
|
|
3057
|
+
export type TronContract = TronTransferContract | TronTriggerSmartContract;
|
|
3058
|
+
|
|
3059
|
+
/**
|
|
3060
|
+
* Tron raw_data for tron_sendTransaction. Block reference fields are optional;
|
|
3061
|
+
* Privy fetches fresh values if omitted.
|
|
3062
|
+
*/
|
|
3063
|
+
export interface TronRawDataForSend {
|
|
3064
|
+
contract: Array<TronContract>;
|
|
3065
|
+
|
|
3066
|
+
data?: string;
|
|
3067
|
+
|
|
3068
|
+
expiration?: number;
|
|
3069
|
+
|
|
3070
|
+
fee_limit?: number;
|
|
3071
|
+
|
|
3072
|
+
ref_block_bytes?: string;
|
|
3073
|
+
|
|
3074
|
+
ref_block_hash?: string;
|
|
3075
|
+
|
|
3076
|
+
timestamp?: number;
|
|
3077
|
+
}
|
|
3078
|
+
|
|
3079
|
+
/**
|
|
3080
|
+
* Tron raw_data for tron_signTransaction. Block reference fields are required;
|
|
3081
|
+
* caller is responsible for fetching them.
|
|
3082
|
+
*/
|
|
3083
|
+
export interface TronRawDataForSign {
|
|
3084
|
+
contract: Array<TronContract>;
|
|
3085
|
+
|
|
3086
|
+
expiration: number;
|
|
3087
|
+
|
|
3088
|
+
ref_block_bytes: string;
|
|
3089
|
+
|
|
3090
|
+
ref_block_hash: string;
|
|
3091
|
+
|
|
3092
|
+
data?: string;
|
|
3093
|
+
|
|
3094
|
+
fee_limit?: number;
|
|
3095
|
+
|
|
3096
|
+
timestamp?: number;
|
|
3097
|
+
}
|
|
3098
|
+
|
|
3099
|
+
/**
|
|
3100
|
+
* Request body for Tron wallet RPC operations, discriminated by method.
|
|
3101
|
+
*/
|
|
3102
|
+
export type TronRpcInput = TronSignTransactionRpcInput | TronSendTransactionRpcInput;
|
|
3103
|
+
|
|
3104
|
+
/**
|
|
3105
|
+
* Response body for Tron wallet RPC operations, discriminated by method.
|
|
3106
|
+
*/
|
|
3107
|
+
export type TronRpcResponse = TronSignTransactionRpcResponse | TronSendTransactionRpcResponse;
|
|
3108
|
+
|
|
3109
|
+
/**
|
|
3110
|
+
* Executes the Tron `tron_sendTransaction` RPC to sign and broadcast a
|
|
3111
|
+
* transaction.
|
|
3112
|
+
*/
|
|
3113
|
+
export interface TronSendTransactionRpcInput {
|
|
3114
|
+
method: 'tron_sendTransaction';
|
|
3115
|
+
|
|
3116
|
+
/**
|
|
3117
|
+
* Parameters for the Tron `tron_sendTransaction` RPC.
|
|
3118
|
+
*/
|
|
3119
|
+
params: TronSendTransactionRpcInputParams;
|
|
3120
|
+
|
|
3121
|
+
/**
|
|
3122
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
3123
|
+
*/
|
|
3124
|
+
caip2?: AppsAPI.Caip2;
|
|
3125
|
+
}
|
|
3126
|
+
|
|
3127
|
+
/**
|
|
3128
|
+
* Parameters for the Tron `tron_sendTransaction` RPC.
|
|
3129
|
+
*/
|
|
3130
|
+
export interface TronSendTransactionRpcInputParams {
|
|
3131
|
+
/**
|
|
3132
|
+
* Tron raw_data for tron_sendTransaction. Block reference fields are optional;
|
|
3133
|
+
* Privy fetches fresh values if omitted.
|
|
3134
|
+
*/
|
|
3135
|
+
raw_data: TronRawDataForSend;
|
|
3136
|
+
|
|
3137
|
+
reference_id?: string;
|
|
3138
|
+
}
|
|
3139
|
+
|
|
3140
|
+
/**
|
|
3141
|
+
* Response to the Tron `tron_sendTransaction` RPC.
|
|
3142
|
+
*/
|
|
3143
|
+
export interface TronSendTransactionRpcResponse {
|
|
3144
|
+
/**
|
|
3145
|
+
* Data returned by the Tron `tron_sendTransaction` RPC.
|
|
3146
|
+
*/
|
|
3147
|
+
data: TronSendTransactionRpcResponseData;
|
|
3148
|
+
|
|
3149
|
+
method: 'tron_sendTransaction';
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
/**
|
|
3153
|
+
* Data returned by the Tron `tron_sendTransaction` RPC.
|
|
3154
|
+
*/
|
|
3155
|
+
export interface TronSendTransactionRpcResponseData {
|
|
3156
|
+
/**
|
|
3157
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
3158
|
+
*/
|
|
3159
|
+
caip2: AppsAPI.Caip2;
|
|
3160
|
+
|
|
3161
|
+
hash: string;
|
|
3162
|
+
|
|
3163
|
+
transaction_id: string;
|
|
3164
|
+
|
|
3165
|
+
reference_id?: string;
|
|
3166
|
+
}
|
|
3167
|
+
|
|
3168
|
+
/**
|
|
3169
|
+
* Executes the Tron `tron_signTransaction` RPC to sign a transaction. The caller
|
|
3170
|
+
* is responsible for broadcasting.
|
|
3171
|
+
*/
|
|
3172
|
+
export interface TronSignTransactionRpcInput {
|
|
3173
|
+
method: 'tron_signTransaction';
|
|
3174
|
+
|
|
3175
|
+
/**
|
|
3176
|
+
* Parameters for the Tron `tron_signTransaction` RPC.
|
|
3177
|
+
*/
|
|
3178
|
+
params: TronSignTransactionRpcInputParams;
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3181
|
+
/**
|
|
3182
|
+
* Parameters for the Tron `tron_signTransaction` RPC.
|
|
3183
|
+
*/
|
|
3184
|
+
export interface TronSignTransactionRpcInputParams {
|
|
3185
|
+
/**
|
|
3186
|
+
* Tron raw_data for tron_signTransaction. Block reference fields are required;
|
|
3187
|
+
* caller is responsible for fetching them.
|
|
3188
|
+
*/
|
|
3189
|
+
raw_data: TronRawDataForSign;
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
/**
|
|
3193
|
+
* Response to the Tron `tron_signTransaction` RPC.
|
|
3194
|
+
*/
|
|
3195
|
+
export interface TronSignTransactionRpcResponse {
|
|
3196
|
+
/**
|
|
3197
|
+
* Data returned by the Tron `tron_signTransaction` RPC.
|
|
3198
|
+
*/
|
|
3199
|
+
data: TronSignTransactionRpcResponseData;
|
|
3200
|
+
|
|
3201
|
+
method: 'tron_signTransaction';
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3204
|
+
/**
|
|
3205
|
+
* Data returned by the Tron `tron_signTransaction` RPC.
|
|
3206
|
+
*/
|
|
3207
|
+
export interface TronSignTransactionRpcResponseData {
|
|
3208
|
+
encoding: 'hex';
|
|
3209
|
+
|
|
3210
|
+
signed_transaction: string;
|
|
3211
|
+
}
|
|
3212
|
+
|
|
3213
|
+
/**
|
|
3214
|
+
* Tron native TRX transfer contract.
|
|
3215
|
+
*/
|
|
3216
|
+
export interface TronTransferContract {
|
|
3217
|
+
amount: number;
|
|
3218
|
+
|
|
3219
|
+
/**
|
|
3220
|
+
* Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x
|
|
3221
|
+
* prefix.
|
|
3222
|
+
*/
|
|
3223
|
+
owner_address: SharedAPI.TronHexAddress;
|
|
3224
|
+
|
|
3225
|
+
/**
|
|
3226
|
+
* Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x
|
|
3227
|
+
* prefix.
|
|
3228
|
+
*/
|
|
3229
|
+
to_address: SharedAPI.TronHexAddress;
|
|
3230
|
+
|
|
3231
|
+
type: 'TransferContract';
|
|
3232
|
+
}
|
|
3233
|
+
|
|
3234
|
+
/**
|
|
3235
|
+
* Tron smart contract call (TRC-20 transfers and general contract interactions).
|
|
3236
|
+
*/
|
|
3237
|
+
export interface TronTriggerSmartContract {
|
|
3238
|
+
/**
|
|
3239
|
+
* Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x
|
|
3240
|
+
* prefix.
|
|
3241
|
+
*/
|
|
3242
|
+
contract_address: SharedAPI.TronHexAddress;
|
|
3243
|
+
|
|
3244
|
+
/**
|
|
3245
|
+
* Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x
|
|
3246
|
+
* prefix.
|
|
3247
|
+
*/
|
|
3248
|
+
owner_address: SharedAPI.TronHexAddress;
|
|
3249
|
+
|
|
3250
|
+
type: 'TriggerSmartContract';
|
|
3251
|
+
|
|
3252
|
+
call_token_value?: number;
|
|
3253
|
+
|
|
3254
|
+
call_value?: number;
|
|
3255
|
+
|
|
3256
|
+
data?: string;
|
|
3257
|
+
|
|
3258
|
+
token_id?: number;
|
|
3259
|
+
}
|
|
3260
|
+
|
|
2531
3261
|
/**
|
|
2532
3262
|
* The domain parameters for EIP-712 typed data signing.
|
|
2533
3263
|
*/
|
|
@@ -2625,7 +3355,7 @@ export interface UnsignedTempoTransaction {
|
|
|
2625
3355
|
|
|
2626
3356
|
aa_authorization_list?: Array<TempoAaAuthorization>;
|
|
2627
3357
|
|
|
2628
|
-
access_list?: Array<
|
|
3358
|
+
access_list?: Array<AccessListEntry>;
|
|
2629
3359
|
|
|
2630
3360
|
/**
|
|
2631
3361
|
* A quantity value that can be either a hex string starting with '0x' or a
|
|
@@ -2685,14 +3415,6 @@ export interface UnsignedTempoTransaction {
|
|
|
2685
3415
|
valid_before?: Quantity;
|
|
2686
3416
|
}
|
|
2687
3417
|
|
|
2688
|
-
export namespace UnsignedTempoTransaction {
|
|
2689
|
-
export interface AccessList {
|
|
2690
|
-
address: string;
|
|
2691
|
-
|
|
2692
|
-
storage_keys: Array<WalletsAPI.Hex>;
|
|
2693
|
-
}
|
|
2694
|
-
}
|
|
2695
|
-
|
|
2696
3418
|
/**
|
|
2697
3419
|
* An ERC-4337 user operation.
|
|
2698
3420
|
*/
|
|
@@ -2762,6 +3484,15 @@ export interface UserOperationInput {
|
|
|
2762
3484
|
paymaster_verification_gas_limit?: Hex;
|
|
2763
3485
|
}
|
|
2764
3486
|
|
|
3487
|
+
/**
|
|
3488
|
+
* A binding that scopes a user signing key to a specific intent.
|
|
3489
|
+
*/
|
|
3490
|
+
export interface UserSigningKeyBinding {
|
|
3491
|
+
intentId: string;
|
|
3492
|
+
|
|
3493
|
+
type: 'intent';
|
|
3494
|
+
}
|
|
3495
|
+
|
|
2765
3496
|
/**
|
|
2766
3497
|
* A wallet managed by Privy's wallet infrastructure.
|
|
2767
3498
|
*/
|
|
@@ -2814,6 +3545,12 @@ export interface Wallet {
|
|
|
2814
3545
|
*/
|
|
2815
3546
|
policy_ids: Array<string>;
|
|
2816
3547
|
|
|
3548
|
+
/**
|
|
3549
|
+
* Unix timestamp of when the wallet was archived in milliseconds, or null if the
|
|
3550
|
+
* wallet is active.
|
|
3551
|
+
*/
|
|
3552
|
+
archived_at?: number | null;
|
|
3553
|
+
|
|
2817
3554
|
/**
|
|
2818
3555
|
* The number of keys that must sign for an action to be valid.
|
|
2819
3556
|
*/
|
|
@@ -2888,7 +3625,52 @@ export interface WalletAPIRevokeAuthorizationKeyInput {
|
|
|
2888
3625
|
/**
|
|
2889
3626
|
* A named asset supported across all chains.
|
|
2890
3627
|
*/
|
|
2891
|
-
export type WalletAsset = 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol';
|
|
3628
|
+
export type WalletAsset = 'usdc' | 'usdc.e' | 'eth' | 'avax' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol';
|
|
3629
|
+
|
|
3630
|
+
/**
|
|
3631
|
+
* Request body for creating an encrypted, bound user signing key.
|
|
3632
|
+
*/
|
|
3633
|
+
export interface WalletAuthenticateBoundEncryptedRequestBody {
|
|
3634
|
+
/**
|
|
3635
|
+
* Bindings that scope the USK. The key can only authorize the bound values.
|
|
3636
|
+
*/
|
|
3637
|
+
bindings: Array<UserSigningKeyBinding>;
|
|
3638
|
+
|
|
3639
|
+
encryption_type: 'HPKE';
|
|
3640
|
+
|
|
3641
|
+
recipient_public_key: string;
|
|
3642
|
+
|
|
3643
|
+
user_jwt: string;
|
|
3644
|
+
}
|
|
3645
|
+
|
|
3646
|
+
/**
|
|
3647
|
+
* Request body for creating a user signing key scoped to specific bindings. The
|
|
3648
|
+
* returned USK can only authorize the bound values and cannot sign other RPC
|
|
3649
|
+
* requests.
|
|
3650
|
+
*/
|
|
3651
|
+
export type WalletAuthenticateBoundRequestBody =
|
|
3652
|
+
| WalletAuthenticateBoundEncryptedRequestBody
|
|
3653
|
+
| WalletAuthenticateBoundUnencryptedRequestBody;
|
|
3654
|
+
|
|
3655
|
+
/**
|
|
3656
|
+
* Request body for creating an unencrypted, bound user signing key.
|
|
3657
|
+
*/
|
|
3658
|
+
export interface WalletAuthenticateBoundUnencryptedRequestBody {
|
|
3659
|
+
/**
|
|
3660
|
+
* Bindings that scope the USK. The key can only authorize the bound values.
|
|
3661
|
+
*/
|
|
3662
|
+
bindings: Array<UserSigningKeyBinding>;
|
|
3663
|
+
|
|
3664
|
+
user_jwt: string;
|
|
3665
|
+
}
|
|
3666
|
+
|
|
3667
|
+
/**
|
|
3668
|
+
* The response from authenticating a wallet with intent bindings, containing an
|
|
3669
|
+
* authorization key, wallet data, and the bindings the key is scoped to.
|
|
3670
|
+
*/
|
|
3671
|
+
export type WalletAuthenticateIntentsResponse =
|
|
3672
|
+
| EncryptedBoundAuthenticateResponse
|
|
3673
|
+
| RawBoundAuthenticateResponse;
|
|
2892
3674
|
|
|
2893
3675
|
/**
|
|
2894
3676
|
* Request body for wallet authentication with HPKE-encrypted response.
|
|
@@ -2917,62 +3699,8 @@ export interface WalletAuthenticateRequestBody {
|
|
|
2917
3699
|
* wallet data.
|
|
2918
3700
|
*/
|
|
2919
3701
|
export type WalletAuthenticateWithJwtResponse =
|
|
2920
|
-
|
|
|
2921
|
-
|
|
|
2922
|
-
|
|
2923
|
-
export namespace WalletAuthenticateWithJwtResponse {
|
|
2924
|
-
export interface WithEncryption {
|
|
2925
|
-
/**
|
|
2926
|
-
* The encrypted authorization key data.
|
|
2927
|
-
*/
|
|
2928
|
-
encrypted_authorization_key: WithEncryption.EncryptedAuthorizationKey;
|
|
2929
|
-
|
|
2930
|
-
/**
|
|
2931
|
-
* The expiration time of the authorization key in milliseconds since the epoch.
|
|
2932
|
-
*/
|
|
2933
|
-
expires_at: number;
|
|
2934
|
-
|
|
2935
|
-
wallets: Array<WalletsAPI.Wallet>;
|
|
2936
|
-
}
|
|
2937
|
-
|
|
2938
|
-
export namespace WithEncryption {
|
|
2939
|
-
/**
|
|
2940
|
-
* The encrypted authorization key data.
|
|
2941
|
-
*/
|
|
2942
|
-
export interface EncryptedAuthorizationKey {
|
|
2943
|
-
/**
|
|
2944
|
-
* The encrypted authorization key corresponding to the user's current
|
|
2945
|
-
* authentication session.
|
|
2946
|
-
*/
|
|
2947
|
-
ciphertext: string;
|
|
2948
|
-
|
|
2949
|
-
/**
|
|
2950
|
-
* Base64-encoded ephemeral public key used in the HPKE encryption process.
|
|
2951
|
-
* Required for decryption.
|
|
2952
|
-
*/
|
|
2953
|
-
encapsulated_key: string;
|
|
2954
|
-
|
|
2955
|
-
/**
|
|
2956
|
-
* The encryption type used. Currently only supports HPKE.
|
|
2957
|
-
*/
|
|
2958
|
-
encryption_type: 'HPKE';
|
|
2959
|
-
}
|
|
2960
|
-
}
|
|
2961
|
-
|
|
2962
|
-
export interface WithoutEncryption {
|
|
2963
|
-
/**
|
|
2964
|
-
* The raw authorization key data.
|
|
2965
|
-
*/
|
|
2966
|
-
authorization_key: string;
|
|
2967
|
-
|
|
2968
|
-
/**
|
|
2969
|
-
* The expiration time of the authorization key in milliseconds since the epoch.
|
|
2970
|
-
*/
|
|
2971
|
-
expires_at: number;
|
|
2972
|
-
|
|
2973
|
-
wallets: Array<WalletsAPI.Wallet>;
|
|
2974
|
-
}
|
|
2975
|
-
}
|
|
3702
|
+
| EncryptedWalletAuthenticateResponse
|
|
3703
|
+
| RawWalletAuthenticateResponse;
|
|
2976
3704
|
|
|
2977
3705
|
/**
|
|
2978
3706
|
* Headers required to authorize wallet operations.
|
|
@@ -3168,7 +3896,7 @@ export type WalletEntropyType = 'hd' | 'private-key';
|
|
|
3168
3896
|
/**
|
|
3169
3897
|
* A named asset on Ethereum-compatible chains.
|
|
3170
3898
|
*/
|
|
3171
|
-
export type WalletEthereumAsset = 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb';
|
|
3899
|
+
export type WalletEthereumAsset = 'usdc' | 'usdc.e' | 'eth' | 'avax' | 'pol' | 'usdt' | 'eurc' | 'usdb';
|
|
3172
3900
|
|
|
3173
3901
|
/**
|
|
3174
3902
|
* Request body for exporting a wallet private key.
|
|
@@ -3224,10 +3952,10 @@ export interface WalletImportInitResponse {
|
|
|
3224
3952
|
}
|
|
3225
3953
|
|
|
3226
3954
|
/**
|
|
3227
|
-
* The chain type of the wallet to import.
|
|
3228
|
-
* `
|
|
3955
|
+
* The chain type of the wallet to import. Supports `ethereum`, `solana`,
|
|
3956
|
+
* `stellar`, `tron`, `sui`, and `aptos`.
|
|
3229
3957
|
*/
|
|
3230
|
-
export type WalletImportSupportedChains = 'ethereum' | 'solana';
|
|
3958
|
+
export type WalletImportSupportedChains = 'ethereum' | 'solana' | 'stellar' | 'tron' | 'sui' | 'aptos';
|
|
3231
3959
|
|
|
3232
3960
|
/**
|
|
3233
3961
|
* The entropy type of the wallet to import. Supports `private-key` for raw private
|
|
@@ -3266,6 +3994,8 @@ export type WalletRpcRequestBody =
|
|
|
3266
3994
|
| SparkCreateLightningInvoiceRpcInput
|
|
3267
3995
|
| SparkPayLightningInvoiceRpcInput
|
|
3268
3996
|
| SparkSignMessageWithIdentityKeyRpcInput
|
|
3997
|
+
| TronSignTransactionRpcInput
|
|
3998
|
+
| TronSendTransactionRpcInput
|
|
3269
3999
|
| ExportPrivateKeyRpcInput
|
|
3270
4000
|
| ExportSeedPhraseRpcInput;
|
|
3271
4001
|
|
|
@@ -3293,6 +4023,8 @@ export type WalletRpcResponse =
|
|
|
3293
4023
|
| SparkCreateLightningInvoiceRpcResponse
|
|
3294
4024
|
| SparkPayLightningInvoiceRpcResponse
|
|
3295
4025
|
| SparkSignMessageWithIdentityKeyRpcResponse
|
|
4026
|
+
| TronSignTransactionRpcResponse
|
|
4027
|
+
| TronSendTransactionRpcResponse
|
|
3296
4028
|
| ExportPrivateKeyRpcResponse
|
|
3297
4029
|
| ExportSeedPhraseRpcResponse;
|
|
3298
4030
|
|
|
@@ -3442,6 +4174,11 @@ export interface WalletListParams extends CursorParams {
|
|
|
3442
4174
|
*/
|
|
3443
4175
|
external_id?: string;
|
|
3444
4176
|
|
|
4177
|
+
/**
|
|
4178
|
+
* Include archived wallets in lookup. Defaults to false.
|
|
4179
|
+
*/
|
|
4180
|
+
include_archived?: boolean;
|
|
4181
|
+
|
|
3445
4182
|
/**
|
|
3446
4183
|
* Filter wallets by user ID. Cannot be used together with authorization_key.
|
|
3447
4184
|
*/
|
|
@@ -3479,6 +4216,13 @@ export interface WalletExportParams {
|
|
|
3479
4216
|
'privy-request-expiry'?: string;
|
|
3480
4217
|
}
|
|
3481
4218
|
|
|
4219
|
+
export interface WalletGetParams {
|
|
4220
|
+
/**
|
|
4221
|
+
* Include archived wallets in lookup. Defaults to false.
|
|
4222
|
+
*/
|
|
4223
|
+
include_archived?: boolean;
|
|
4224
|
+
}
|
|
4225
|
+
|
|
3482
4226
|
export interface WalletRawSignParams {
|
|
3483
4227
|
/**
|
|
3484
4228
|
* Body param: Parameters for the `raw_sign` RPC.
|
|
@@ -3525,6 +4269,8 @@ export type WalletRpcParams =
|
|
|
3525
4269
|
| WalletRpcParams.SparkCreateLightningInvoiceRpcInput
|
|
3526
4270
|
| WalletRpcParams.SparkPayLightningInvoiceRpcInput
|
|
3527
4271
|
| WalletRpcParams.SparkSignMessageWithIdentityKeyRpcInput
|
|
4272
|
+
| WalletRpcParams.TronSignTransactionRpcInput
|
|
4273
|
+
| WalletRpcParams.TronSendTransactionRpcInput
|
|
3528
4274
|
| WalletRpcParams.ExportPrivateKeyRpcInput
|
|
3529
4275
|
| WalletRpcParams.ExportSeedPhraseRpcInput;
|
|
3530
4276
|
|
|
@@ -3656,11 +4402,22 @@ export declare namespace WalletRpcParams {
|
|
|
3656
4402
|
*/
|
|
3657
4403
|
address?: string;
|
|
3658
4404
|
|
|
4405
|
+
/**
|
|
4406
|
+
* Body param: A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
4407
|
+
*/
|
|
4408
|
+
caip2?: AppsAPI.Caip2;
|
|
4409
|
+
|
|
3659
4410
|
/**
|
|
3660
4411
|
* Body param
|
|
3661
4412
|
*/
|
|
3662
4413
|
chain_type?: 'ethereum';
|
|
3663
4414
|
|
|
4415
|
+
/**
|
|
4416
|
+
* Body param: Options controlling signature production for personal_sign and
|
|
4417
|
+
* eth_signTypedData_v4.
|
|
4418
|
+
*/
|
|
4419
|
+
signature_options?: SignatureOptions;
|
|
4420
|
+
|
|
3664
4421
|
/**
|
|
3665
4422
|
* Body param
|
|
3666
4423
|
*/
|
|
@@ -3701,11 +4458,22 @@ export declare namespace WalletRpcParams {
|
|
|
3701
4458
|
*/
|
|
3702
4459
|
address?: string;
|
|
3703
4460
|
|
|
4461
|
+
/**
|
|
4462
|
+
* Body param: A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
4463
|
+
*/
|
|
4464
|
+
caip2?: AppsAPI.Caip2;
|
|
4465
|
+
|
|
3704
4466
|
/**
|
|
3705
4467
|
* Body param
|
|
3706
4468
|
*/
|
|
3707
4469
|
chain_type?: 'ethereum';
|
|
3708
4470
|
|
|
4471
|
+
/**
|
|
4472
|
+
* Body param: Options controlling signature production for personal_sign and
|
|
4473
|
+
* eth_signTypedData_v4.
|
|
4474
|
+
*/
|
|
4475
|
+
signature_options?: SignatureOptions;
|
|
4476
|
+
|
|
3709
4477
|
/**
|
|
3710
4478
|
* Body param
|
|
3711
4479
|
*/
|
|
@@ -4386,6 +5154,71 @@ export declare namespace WalletRpcParams {
|
|
|
4386
5154
|
'privy-request-expiry'?: string;
|
|
4387
5155
|
}
|
|
4388
5156
|
|
|
5157
|
+
export interface TronSignTransactionRpcInput {
|
|
5158
|
+
/**
|
|
5159
|
+
* Body param
|
|
5160
|
+
*/
|
|
5161
|
+
method: 'tron_signTransaction';
|
|
5162
|
+
|
|
5163
|
+
/**
|
|
5164
|
+
* Body param: Parameters for the Tron `tron_signTransaction` RPC.
|
|
5165
|
+
*/
|
|
5166
|
+
params: TronSignTransactionRpcInputParams;
|
|
5167
|
+
|
|
5168
|
+
/**
|
|
5169
|
+
* Header param: Request authorization signature. If multiple signatures are
|
|
5170
|
+
* required, they should be comma separated.
|
|
5171
|
+
*/
|
|
5172
|
+
'privy-authorization-signature'?: string;
|
|
5173
|
+
|
|
5174
|
+
/**
|
|
5175
|
+
* Header param: Idempotency keys ensure API requests are executed only once within
|
|
5176
|
+
* a 24-hour window.
|
|
5177
|
+
*/
|
|
5178
|
+
'privy-idempotency-key'?: string;
|
|
5179
|
+
|
|
5180
|
+
/**
|
|
5181
|
+
* Header param: Request expiry. Value is a Unix timestamp in milliseconds
|
|
5182
|
+
* representing the deadline by which the request must be processed.
|
|
5183
|
+
*/
|
|
5184
|
+
'privy-request-expiry'?: string;
|
|
5185
|
+
}
|
|
5186
|
+
|
|
5187
|
+
export interface TronSendTransactionRpcInput {
|
|
5188
|
+
/**
|
|
5189
|
+
* Body param
|
|
5190
|
+
*/
|
|
5191
|
+
method: 'tron_sendTransaction';
|
|
5192
|
+
|
|
5193
|
+
/**
|
|
5194
|
+
* Body param: Parameters for the Tron `tron_sendTransaction` RPC.
|
|
5195
|
+
*/
|
|
5196
|
+
params: TronSendTransactionRpcInputParams;
|
|
5197
|
+
|
|
5198
|
+
/**
|
|
5199
|
+
* Body param: A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
5200
|
+
*/
|
|
5201
|
+
caip2?: AppsAPI.Caip2;
|
|
5202
|
+
|
|
5203
|
+
/**
|
|
5204
|
+
* Header param: Request authorization signature. If multiple signatures are
|
|
5205
|
+
* required, they should be comma separated.
|
|
5206
|
+
*/
|
|
5207
|
+
'privy-authorization-signature'?: string;
|
|
5208
|
+
|
|
5209
|
+
/**
|
|
5210
|
+
* Header param: Idempotency keys ensure API requests are executed only once within
|
|
5211
|
+
* a 24-hour window.
|
|
5212
|
+
*/
|
|
5213
|
+
'privy-idempotency-key'?: string;
|
|
5214
|
+
|
|
5215
|
+
/**
|
|
5216
|
+
* Header param: Request expiry. Value is a Unix timestamp in milliseconds
|
|
5217
|
+
* representing the deadline by which the request must be processed.
|
|
5218
|
+
*/
|
|
5219
|
+
'privy-request-expiry'?: string;
|
|
5220
|
+
}
|
|
5221
|
+
|
|
4389
5222
|
export interface ExportPrivateKeyRpcInput {
|
|
4390
5223
|
/**
|
|
4391
5224
|
* Body param
|
|
@@ -4464,9 +5297,13 @@ Wallets.Transactions = Transactions;
|
|
|
4464
5297
|
|
|
4465
5298
|
export declare namespace Wallets {
|
|
4466
5299
|
export {
|
|
5300
|
+
type AccessListEntry as AccessListEntry,
|
|
4467
5301
|
type AdditionalSignerInput as AdditionalSignerInput,
|
|
4468
5302
|
type AdditionalSignerItemInput as AdditionalSignerItemInput,
|
|
4469
5303
|
type Address as Address,
|
|
5304
|
+
type AdvancedSwapPlatformFee as AdvancedSwapPlatformFee,
|
|
5305
|
+
type AdvancedSwapRequestBody as AdvancedSwapRequestBody,
|
|
5306
|
+
type AdvancedSwapResponse as AdvancedSwapResponse,
|
|
4470
5307
|
type AmountType as AmountType,
|
|
4471
5308
|
type AuthorizationKeyDashboardResponse as AuthorizationKeyDashboardResponse,
|
|
4472
5309
|
type AuthorizationKeyResponse as AuthorizationKeyResponse,
|
|
@@ -4478,6 +5315,10 @@ export declare namespace Wallets {
|
|
|
4478
5315
|
type CustodialWalletCreateInput as CustodialWalletCreateInput,
|
|
4479
5316
|
type CustodialWalletProvider as CustodialWalletProvider,
|
|
4480
5317
|
type CustomTokenTransferSource as CustomTokenTransferSource,
|
|
5318
|
+
type DeveloperFee as DeveloperFee,
|
|
5319
|
+
type EncryptedAuthorizationKey as EncryptedAuthorizationKey,
|
|
5320
|
+
type EncryptedBoundAuthenticateResponse as EncryptedBoundAuthenticateResponse,
|
|
5321
|
+
type EncryptedWalletAuthenticateResponse as EncryptedWalletAuthenticateResponse,
|
|
4481
5322
|
type EthereumPersonalSignRpcInput as EthereumPersonalSignRpcInput,
|
|
4482
5323
|
type EthereumPersonalSignRpcInputParams as EthereumPersonalSignRpcInputParams,
|
|
4483
5324
|
type EthereumPersonalSignRpcResponse as EthereumPersonalSignRpcResponse,
|
|
@@ -4521,7 +5362,10 @@ export declare namespace Wallets {
|
|
|
4521
5362
|
type ExportSeedPhraseRpcResponse as ExportSeedPhraseRpcResponse,
|
|
4522
5363
|
type ExportType as ExportType,
|
|
4523
5364
|
type ExtendedChainType as ExtendedChainType,
|
|
5365
|
+
type FeeConfiguration as FeeConfiguration,
|
|
5366
|
+
type FeeLineItem as FeeLineItem,
|
|
4524
5367
|
type FirstClassChainType as FirstClassChainType,
|
|
5368
|
+
type Gas as Gas,
|
|
4525
5369
|
type GetByWalletAddressRequestBody as GetByWalletAddressRequestBody,
|
|
4526
5370
|
type HDInitInput as HDInitInput,
|
|
4527
5371
|
type HDPath as HDPath,
|
|
@@ -4530,6 +5374,7 @@ export declare namespace Wallets {
|
|
|
4530
5374
|
type HpkeEncryption as HpkeEncryption,
|
|
4531
5375
|
type HpkeImportConfig as HpkeImportConfig,
|
|
4532
5376
|
type Hex as Hex,
|
|
5377
|
+
type IntentBinding as IntentBinding,
|
|
4533
5378
|
type NamedTokenTransferSource as NamedTokenTransferSource,
|
|
4534
5379
|
type OutputWithPreviousTransactionData as OutputWithPreviousTransactionData,
|
|
4535
5380
|
type PolicyInput as PolicyInput,
|
|
@@ -4537,7 +5382,9 @@ export declare namespace Wallets {
|
|
|
4537
5382
|
type PrivateKeyExportResponse as PrivateKeyExportResponse,
|
|
4538
5383
|
type PrivateKeyInitInput as PrivateKeyInitInput,
|
|
4539
5384
|
type PrivateKeySubmitInput as PrivateKeySubmitInput,
|
|
5385
|
+
type PrivyFee as PrivyFee,
|
|
4540
5386
|
type Quantity as Quantity,
|
|
5387
|
+
type RawBoundAuthenticateResponse as RawBoundAuthenticateResponse,
|
|
4541
5388
|
type RawSignBytesEncoding as RawSignBytesEncoding,
|
|
4542
5389
|
type RawSignBytesHashFunction as RawSignBytesHashFunction,
|
|
4543
5390
|
type RawSignBytesParams as RawSignBytesParams,
|
|
@@ -4546,9 +5393,13 @@ export declare namespace Wallets {
|
|
|
4546
5393
|
type RawSignInputParams as RawSignInputParams,
|
|
4547
5394
|
type RawSignResponse as RawSignResponse,
|
|
4548
5395
|
type RawSignResponseData as RawSignResponseData,
|
|
5396
|
+
type RawWalletAuthenticateResponse as RawWalletAuthenticateResponse,
|
|
4549
5397
|
type RecipientPublicKey as RecipientPublicKey,
|
|
5398
|
+
type RelayerFee as RelayerFee,
|
|
4550
5399
|
type SeedPhraseExportInput as SeedPhraseExportInput,
|
|
4551
5400
|
type SeedPhraseExportResponse as SeedPhraseExportResponse,
|
|
5401
|
+
type SignatureOptions as SignatureOptions,
|
|
5402
|
+
type SignatureType as SignatureType,
|
|
4552
5403
|
type SigningAlgorithm as SigningAlgorithm,
|
|
4553
5404
|
type SolanaRpcInput as SolanaRpcInput,
|
|
4554
5405
|
type SolanaRpcResponse as SolanaRpcResponse,
|
|
@@ -4610,17 +5461,36 @@ export declare namespace Wallets {
|
|
|
4610
5461
|
type SparkUserTokenMetadata as SparkUserTokenMetadata,
|
|
4611
5462
|
type SparkWalletLeaf as SparkWalletLeaf,
|
|
4612
5463
|
type SuiCommandName as SuiCommandName,
|
|
5464
|
+
type SwapSubmissionStatus as SwapSubmissionStatus,
|
|
4613
5465
|
type TempoAaAuthorization as TempoAaAuthorization,
|
|
4614
5466
|
type TempoCall as TempoCall,
|
|
4615
5467
|
type TempoFeePayerSignature as TempoFeePayerSignature,
|
|
4616
5468
|
type TokenOutput as TokenOutput,
|
|
4617
5469
|
type TokenTransferDestination as TokenTransferDestination,
|
|
4618
5470
|
type TokenTransferSource as TokenTransferSource,
|
|
5471
|
+
type TotalFeeConfigurationBps as TotalFeeConfigurationBps,
|
|
4619
5472
|
type TransactionDetail as TransactionDetail,
|
|
4620
5473
|
type TransactionTokenAddressInput as TransactionTokenAddressInput,
|
|
5474
|
+
type TransferQuoteRequestBody as TransferQuoteRequestBody,
|
|
5475
|
+
type TransferQuoteResponse as TransferQuoteResponse,
|
|
4621
5476
|
type TransferReceivedTransactionDetail as TransferReceivedTransactionDetail,
|
|
4622
5477
|
type TransferRequestBody as TransferRequestBody,
|
|
4623
5478
|
type TransferSentTransactionDetail as TransferSentTransactionDetail,
|
|
5479
|
+
type TronContract as TronContract,
|
|
5480
|
+
type TronRawDataForSend as TronRawDataForSend,
|
|
5481
|
+
type TronRawDataForSign as TronRawDataForSign,
|
|
5482
|
+
type TronRpcInput as TronRpcInput,
|
|
5483
|
+
type TronRpcResponse as TronRpcResponse,
|
|
5484
|
+
type TronSendTransactionRpcInput as TronSendTransactionRpcInput,
|
|
5485
|
+
type TronSendTransactionRpcInputParams as TronSendTransactionRpcInputParams,
|
|
5486
|
+
type TronSendTransactionRpcResponse as TronSendTransactionRpcResponse,
|
|
5487
|
+
type TronSendTransactionRpcResponseData as TronSendTransactionRpcResponseData,
|
|
5488
|
+
type TronSignTransactionRpcInput as TronSignTransactionRpcInput,
|
|
5489
|
+
type TronSignTransactionRpcInputParams as TronSignTransactionRpcInputParams,
|
|
5490
|
+
type TronSignTransactionRpcResponse as TronSignTransactionRpcResponse,
|
|
5491
|
+
type TronSignTransactionRpcResponseData as TronSignTransactionRpcResponseData,
|
|
5492
|
+
type TronTransferContract as TronTransferContract,
|
|
5493
|
+
type TronTriggerSmartContract as TronTriggerSmartContract,
|
|
4624
5494
|
type TypedDataDomainInputParams as TypedDataDomainInputParams,
|
|
4625
5495
|
type TypedDataTypeFieldInput as TypedDataTypeFieldInput,
|
|
4626
5496
|
type TypedDataTypesInputParams as TypedDataTypesInputParams,
|
|
@@ -4628,12 +5498,17 @@ export declare namespace Wallets {
|
|
|
4628
5498
|
type UnsignedStandardEthereumTransaction as UnsignedStandardEthereumTransaction,
|
|
4629
5499
|
type UnsignedTempoTransaction as UnsignedTempoTransaction,
|
|
4630
5500
|
type UserOperationInput as UserOperationInput,
|
|
5501
|
+
type UserSigningKeyBinding as UserSigningKeyBinding,
|
|
4631
5502
|
type Wallet as Wallet,
|
|
4632
5503
|
type WalletAdditionalSigner as WalletAdditionalSigner,
|
|
4633
5504
|
type WalletAdditionalSignerItem as WalletAdditionalSignerItem,
|
|
4634
5505
|
type WalletAPIRegisterAuthorizationKeyInput as WalletAPIRegisterAuthorizationKeyInput,
|
|
4635
5506
|
type WalletAPIRevokeAuthorizationKeyInput as WalletAPIRevokeAuthorizationKeyInput,
|
|
4636
5507
|
type WalletAsset as WalletAsset,
|
|
5508
|
+
type WalletAuthenticateBoundEncryptedRequestBody as WalletAuthenticateBoundEncryptedRequestBody,
|
|
5509
|
+
type WalletAuthenticateBoundRequestBody as WalletAuthenticateBoundRequestBody,
|
|
5510
|
+
type WalletAuthenticateBoundUnencryptedRequestBody as WalletAuthenticateBoundUnencryptedRequestBody,
|
|
5511
|
+
type WalletAuthenticateIntentsResponse as WalletAuthenticateIntentsResponse,
|
|
4637
5512
|
type WalletAuthenticateRequestBody as WalletAuthenticateRequestBody,
|
|
4638
5513
|
type WalletAuthenticateWithJwtResponse as WalletAuthenticateWithJwtResponse,
|
|
4639
5514
|
type WalletAuthorizationHeaders as WalletAuthorizationHeaders,
|
|
@@ -4661,6 +5536,7 @@ export declare namespace Wallets {
|
|
|
4661
5536
|
type WalletUpdateParams as WalletUpdateParams,
|
|
4662
5537
|
type WalletListParams as WalletListParams,
|
|
4663
5538
|
type WalletExportParams as WalletExportParams,
|
|
5539
|
+
type WalletGetParams as WalletGetParams,
|
|
4664
5540
|
type WalletRawSignParams as WalletRawSignParams,
|
|
4665
5541
|
type WalletRpcParams as WalletRpcParams,
|
|
4666
5542
|
};
|