@privy-io/api-types 0.15.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 +82 -0
- package/client.d.mts +29 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +29 -29
- package/client.d.ts.map +1 -1
- package/client.js +11 -3
- package/client.js.map +1 -1
- package/client.mjs +11 -3
- package/client.mjs.map +1 -1
- package/package.json +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/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/apps.d.mts +44 -23
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +44 -23
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +21 -5
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +21 -5
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/index.d.mts +14 -14
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +14 -14
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +65 -79
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +65 -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/kraken-embed.d.mts +102 -205
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +102 -205
- 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/onramps.d.mts +50 -48
- package/resources/onramps.d.mts.map +1 -1
- package/resources/onramps.d.ts +50 -48
- package/resources/onramps.d.ts.map +1 -1
- package/resources/policies.d.mts +47 -18
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +47 -18
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +15 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +15 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +3 -2
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +3 -2
- package/resources/swaps.d.ts.map +1 -1
- package/resources/wallet-actions.d.mts +134 -21
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +134 -21
- package/resources/wallet-actions.d.ts.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/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/wallets.d.mts +603 -87
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +603 -87
- 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/webhooks.d.mts +241 -54
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +241 -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/src/client.ts +163 -17
- package/src/resources/accounts.ts +7 -1
- package/src/resources/aggregations.ts +16 -3
- package/src/resources/apps.ts +60 -30
- package/src/resources/client-auth.ts +22 -4
- package/src/resources/index.ts +72 -3
- package/src/resources/intents.ts +73 -91
- package/src/resources/key-quorums.ts +11 -9
- package/src/resources/kraken-embed.ts +386 -482
- package/src/resources/onramps.ts +69 -54
- package/src/resources/policies.ts +66 -16
- package/src/resources/shared.ts +18 -2
- package/src/resources/swaps.ts +3 -2
- package/src/resources/wallet-actions.ts +182 -20
- package/src/resources/wallets/balance.ts +13 -1
- package/src/resources/wallets/index.ts +34 -0
- package/src/resources/wallets/transactions.ts +6 -0
- package/src/resources/wallets/wallets.ts +782 -94
- package/src/resources/webhooks.ts +293 -57
- package/src/resources/yield.ts +29 -30
- package/src/version.ts +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.). Maximum 100
|
|
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
|
|
|
@@ -439,6 +603,62 @@ export interface DeveloperFee {
|
|
|
439
603
|
recipient?: string;
|
|
440
604
|
}
|
|
441
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
|
+
|
|
442
662
|
/**
|
|
443
663
|
* Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
|
|
444
664
|
*/
|
|
@@ -452,8 +672,19 @@ export interface EthereumPersonalSignRpcInput {
|
|
|
452
672
|
|
|
453
673
|
address?: string;
|
|
454
674
|
|
|
675
|
+
/**
|
|
676
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
677
|
+
*/
|
|
678
|
+
caip2?: AppsAPI.Caip2;
|
|
679
|
+
|
|
455
680
|
chain_type?: 'ethereum';
|
|
456
681
|
|
|
682
|
+
/**
|
|
683
|
+
* Options controlling signature production for personal_sign and
|
|
684
|
+
* eth_signTypedData_v4.
|
|
685
|
+
*/
|
|
686
|
+
signature_options?: SignatureOptions;
|
|
687
|
+
|
|
457
688
|
wallet_id?: string;
|
|
458
689
|
}
|
|
459
690
|
|
|
@@ -889,8 +1120,19 @@ export interface EthereumSignTypedDataRpcInput {
|
|
|
889
1120
|
|
|
890
1121
|
address?: string;
|
|
891
1122
|
|
|
1123
|
+
/**
|
|
1124
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
1125
|
+
*/
|
|
1126
|
+
caip2?: AppsAPI.Caip2;
|
|
1127
|
+
|
|
892
1128
|
chain_type?: 'ethereum';
|
|
893
1129
|
|
|
1130
|
+
/**
|
|
1131
|
+
* Options controlling signature production for personal_sign and
|
|
1132
|
+
* eth_signTypedData_v4.
|
|
1133
|
+
*/
|
|
1134
|
+
signature_options?: SignatureOptions;
|
|
1135
|
+
|
|
894
1136
|
wallet_id?: string;
|
|
895
1137
|
}
|
|
896
1138
|
|
|
@@ -1131,6 +1373,12 @@ export interface GetByWalletAddressRequestBody {
|
|
|
1131
1373
|
* A blockchain wallet address (Ethereum or Solana).
|
|
1132
1374
|
*/
|
|
1133
1375
|
address: Address;
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* Include archived wallets in lookup. Defaults to false (archived wallets return
|
|
1379
|
+
* 404).
|
|
1380
|
+
*/
|
|
1381
|
+
include_archived?: boolean;
|
|
1134
1382
|
}
|
|
1135
1383
|
|
|
1136
1384
|
/**
|
|
@@ -1143,8 +1391,8 @@ export interface HDInitInput {
|
|
|
1143
1391
|
address: string;
|
|
1144
1392
|
|
|
1145
1393
|
/**
|
|
1146
|
-
* The chain type of the wallet to import.
|
|
1147
|
-
* `
|
|
1394
|
+
* The chain type of the wallet to import. Supports `ethereum`, `solana`,
|
|
1395
|
+
* `stellar`, `tron`, `sui`, and `aptos`.
|
|
1148
1396
|
*/
|
|
1149
1397
|
chain_type: WalletImportSupportedChains;
|
|
1150
1398
|
|
|
@@ -1179,8 +1427,8 @@ export interface HDSubmitInput {
|
|
|
1179
1427
|
address: string;
|
|
1180
1428
|
|
|
1181
1429
|
/**
|
|
1182
|
-
* The chain type of the wallet to import.
|
|
1183
|
-
* `
|
|
1430
|
+
* The chain type of the wallet to import. Supports `ethereum`, `solana`,
|
|
1431
|
+
* `stellar`, `tron`, `sui`, and `aptos`.
|
|
1184
1432
|
*/
|
|
1185
1433
|
chain_type: WalletImportSupportedChains;
|
|
1186
1434
|
|
|
@@ -1258,15 +1506,25 @@ export interface HpkeImportConfig {
|
|
|
1258
1506
|
*/
|
|
1259
1507
|
export type Hex = string;
|
|
1260
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
|
+
|
|
1261
1518
|
/**
|
|
1262
1519
|
* Source for a transfer identified by a named asset (e.g. "usdc", "eth"). Use this
|
|
1263
1520
|
* variant for first-class assets maintained by Privy.
|
|
1264
1521
|
*/
|
|
1265
1522
|
export interface NamedTokenTransferSource {
|
|
1266
1523
|
/**
|
|
1267
|
-
* Amount as a decimal string in the token's standard unit (e.g. "1.5"
|
|
1268
|
-
* USDC, "0.01" for 0.01 ETH).
|
|
1269
|
-
* etc.). Maximum 100
|
|
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.
|
|
1270
1528
|
*/
|
|
1271
1529
|
amount: string;
|
|
1272
1530
|
|
|
@@ -1351,8 +1609,8 @@ export interface PrivateKeyInitInput {
|
|
|
1351
1609
|
address: string;
|
|
1352
1610
|
|
|
1353
1611
|
/**
|
|
1354
|
-
* The chain type of the wallet to import.
|
|
1355
|
-
* `
|
|
1612
|
+
* The chain type of the wallet to import. Supports `ethereum`, `solana`,
|
|
1613
|
+
* `stellar`, `tron`, `sui`, and `aptos`.
|
|
1356
1614
|
*/
|
|
1357
1615
|
chain_type: WalletImportSupportedChains;
|
|
1358
1616
|
|
|
@@ -1374,8 +1632,8 @@ export interface PrivateKeySubmitInput {
|
|
|
1374
1632
|
address: string;
|
|
1375
1633
|
|
|
1376
1634
|
/**
|
|
1377
|
-
* The chain type of the wallet to import.
|
|
1378
|
-
* `
|
|
1635
|
+
* The chain type of the wallet to import. Supports `ethereum`, `solana`,
|
|
1636
|
+
* `stellar`, `tron`, `sui`, and `aptos`.
|
|
1379
1637
|
*/
|
|
1380
1638
|
chain_type: WalletImportSupportedChains;
|
|
1381
1639
|
|
|
@@ -1425,6 +1683,19 @@ export interface PrivyFee {
|
|
|
1425
1683
|
*/
|
|
1426
1684
|
export type Quantity = Hex | number;
|
|
1427
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
|
+
|
|
1428
1699
|
/**
|
|
1429
1700
|
* Encoding scheme for bytes in the `raw_sign` RPC.
|
|
1430
1701
|
*/
|
|
@@ -1507,6 +1778,24 @@ export interface RawSignResponseData {
|
|
|
1507
1778
|
signature: Hex;
|
|
1508
1779
|
}
|
|
1509
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
|
+
|
|
1510
1799
|
/**
|
|
1511
1800
|
* The recipient public key for HPKE encryption, in PEM or DER (base64-encoded)
|
|
1512
1801
|
* format.
|
|
@@ -1565,6 +1854,26 @@ export interface SeedPhraseExportResponse {
|
|
|
1565
1854
|
encryption_type: HpkeEncryption;
|
|
1566
1855
|
}
|
|
1567
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
|
+
|
|
1568
1877
|
/**
|
|
1569
1878
|
* The signing algorithm used by the wallet.
|
|
1570
1879
|
*/
|
|
@@ -2376,6 +2685,12 @@ export interface SparkWalletLeaf {
|
|
|
2376
2685
|
*/
|
|
2377
2686
|
export type SuiCommandName = 'TransferObjects' | 'SplitCoins' | 'MergeCoins';
|
|
2378
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
|
+
|
|
2379
2694
|
/**
|
|
2380
2695
|
* An AA authorization for Tempo transactions with P256/WebAuthn signatures.
|
|
2381
2696
|
*/
|
|
@@ -2532,6 +2847,13 @@ export interface TransferQuoteRequestBody {
|
|
|
2532
2847
|
*/
|
|
2533
2848
|
source: TokenTransferSource;
|
|
2534
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
|
+
|
|
2535
2857
|
/**
|
|
2536
2858
|
* Whether the amount refers to the input token or output token.
|
|
2537
2859
|
*/
|
|
@@ -2543,7 +2865,8 @@ export interface TransferQuoteRequestBody {
|
|
|
2543
2865
|
fee_configuration?: FeeConfiguration;
|
|
2544
2866
|
|
|
2545
2867
|
/**
|
|
2546
|
-
* Maximum allowed slippage in basis points (1 bps = 0.01%).
|
|
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.
|
|
2547
2870
|
*/
|
|
2548
2871
|
slippage_bps?: number;
|
|
2549
2872
|
}
|
|
@@ -2559,17 +2882,25 @@ export interface TransferQuoteResponse {
|
|
|
2559
2882
|
destination: TokenTransferDestination;
|
|
2560
2883
|
|
|
2561
2884
|
/**
|
|
2562
|
-
* Estimated fees in USD
|
|
2885
|
+
* Estimated fees in USD for the transfer. Only present for cross-chain transfers.
|
|
2563
2886
|
*/
|
|
2564
2887
|
estimated_fees: Array<FeeLineItem>;
|
|
2565
2888
|
|
|
2566
2889
|
/**
|
|
2567
|
-
* Estimated
|
|
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.
|
|
2568
2899
|
*/
|
|
2569
2900
|
estimated_output_amount: string;
|
|
2570
2901
|
|
|
2571
2902
|
/**
|
|
2572
|
-
* Quote expiry as
|
|
2903
|
+
* Quote expiry as Unix timestamp (seconds).
|
|
2573
2904
|
*/
|
|
2574
2905
|
expires_at: number;
|
|
2575
2906
|
|
|
@@ -2595,11 +2926,12 @@ export interface TransferQuoteResponse {
|
|
|
2595
2926
|
* Details for a received transfer transaction.
|
|
2596
2927
|
*/
|
|
2597
2928
|
export interface TransferReceivedTransactionDetail {
|
|
2598
|
-
asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
2929
|
+
asset: 'usdc' | 'usdc.e' | 'eth' | 'avax' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
2599
2930
|
|
|
2600
2931
|
chain:
|
|
2601
2932
|
| 'ethereum'
|
|
2602
2933
|
| 'arbitrum'
|
|
2934
|
+
| 'avalanche'
|
|
2603
2935
|
| 'base'
|
|
2604
2936
|
| 'tempo'
|
|
2605
2937
|
| 'linea'
|
|
@@ -2609,6 +2941,7 @@ export interface TransferReceivedTransactionDetail {
|
|
|
2609
2941
|
| 'zksync_era'
|
|
2610
2942
|
| 'sepolia'
|
|
2611
2943
|
| 'arbitrum_sepolia'
|
|
2944
|
+
| 'avalanche_fuji'
|
|
2612
2945
|
| 'base_sepolia'
|
|
2613
2946
|
| 'linea_testnet'
|
|
2614
2947
|
| 'optimism_sepolia'
|
|
@@ -2649,6 +2982,13 @@ export interface TransferRequestBody {
|
|
|
2649
2982
|
*/
|
|
2650
2983
|
source: TokenTransferSource;
|
|
2651
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
|
+
|
|
2652
2992
|
/**
|
|
2653
2993
|
* Whether the amount refers to the input token or output token.
|
|
2654
2994
|
*/
|
|
@@ -2660,7 +3000,8 @@ export interface TransferRequestBody {
|
|
|
2660
3000
|
fee_configuration?: FeeConfiguration;
|
|
2661
3001
|
|
|
2662
3002
|
/**
|
|
2663
|
-
* Maximum allowed slippage in basis points (1 bps = 0.01%).
|
|
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.
|
|
2664
3005
|
*/
|
|
2665
3006
|
slippage_bps?: number;
|
|
2666
3007
|
}
|
|
@@ -2669,11 +3010,12 @@ export interface TransferRequestBody {
|
|
|
2669
3010
|
* Details for a sent transfer transaction.
|
|
2670
3011
|
*/
|
|
2671
3012
|
export interface TransferSentTransactionDetail {
|
|
2672
|
-
asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
3013
|
+
asset: 'usdc' | 'usdc.e' | 'eth' | 'avax' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
2673
3014
|
|
|
2674
3015
|
chain:
|
|
2675
3016
|
| 'ethereum'
|
|
2676
3017
|
| 'arbitrum'
|
|
3018
|
+
| 'avalanche'
|
|
2677
3019
|
| 'base'
|
|
2678
3020
|
| 'tempo'
|
|
2679
3021
|
| 'linea'
|
|
@@ -2683,6 +3025,7 @@ export interface TransferSentTransactionDetail {
|
|
|
2683
3025
|
| 'zksync_era'
|
|
2684
3026
|
| 'sepolia'
|
|
2685
3027
|
| 'arbitrum_sepolia'
|
|
3028
|
+
| 'avalanche_fuji'
|
|
2686
3029
|
| 'base_sepolia'
|
|
2687
3030
|
| 'linea_testnet'
|
|
2688
3031
|
| 'optimism_sepolia'
|
|
@@ -2707,6 +3050,214 @@ export interface TransferSentTransactionDetail {
|
|
|
2707
3050
|
type: 'transfer_sent';
|
|
2708
3051
|
}
|
|
2709
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
|
+
|
|
2710
3261
|
/**
|
|
2711
3262
|
* The domain parameters for EIP-712 typed data signing.
|
|
2712
3263
|
*/
|
|
@@ -2804,7 +3355,7 @@ export interface UnsignedTempoTransaction {
|
|
|
2804
3355
|
|
|
2805
3356
|
aa_authorization_list?: Array<TempoAaAuthorization>;
|
|
2806
3357
|
|
|
2807
|
-
access_list?: Array<
|
|
3358
|
+
access_list?: Array<AccessListEntry>;
|
|
2808
3359
|
|
|
2809
3360
|
/**
|
|
2810
3361
|
* A quantity value that can be either a hex string starting with '0x' or a
|
|
@@ -2864,14 +3415,6 @@ export interface UnsignedTempoTransaction {
|
|
|
2864
3415
|
valid_before?: Quantity;
|
|
2865
3416
|
}
|
|
2866
3417
|
|
|
2867
|
-
export namespace UnsignedTempoTransaction {
|
|
2868
|
-
export interface AccessList {
|
|
2869
|
-
address: string;
|
|
2870
|
-
|
|
2871
|
-
storage_keys: Array<WalletsAPI.Hex>;
|
|
2872
|
-
}
|
|
2873
|
-
}
|
|
2874
|
-
|
|
2875
3418
|
/**
|
|
2876
3419
|
* An ERC-4337 user operation.
|
|
2877
3420
|
*/
|
|
@@ -2941,6 +3484,15 @@ export interface UserOperationInput {
|
|
|
2941
3484
|
paymaster_verification_gas_limit?: Hex;
|
|
2942
3485
|
}
|
|
2943
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
|
+
|
|
2944
3496
|
/**
|
|
2945
3497
|
* A wallet managed by Privy's wallet infrastructure.
|
|
2946
3498
|
*/
|
|
@@ -2993,6 +3545,12 @@ export interface Wallet {
|
|
|
2993
3545
|
*/
|
|
2994
3546
|
policy_ids: Array<string>;
|
|
2995
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
|
+
|
|
2996
3554
|
/**
|
|
2997
3555
|
* The number of keys that must sign for an action to be valid.
|
|
2998
3556
|
*/
|
|
@@ -3067,7 +3625,52 @@ export interface WalletAPIRevokeAuthorizationKeyInput {
|
|
|
3067
3625
|
/**
|
|
3068
3626
|
* A named asset supported across all chains.
|
|
3069
3627
|
*/
|
|
3070
|
-
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;
|
|
3071
3674
|
|
|
3072
3675
|
/**
|
|
3073
3676
|
* Request body for wallet authentication with HPKE-encrypted response.
|
|
@@ -3096,62 +3699,8 @@ export interface WalletAuthenticateRequestBody {
|
|
|
3096
3699
|
* wallet data.
|
|
3097
3700
|
*/
|
|
3098
3701
|
export type WalletAuthenticateWithJwtResponse =
|
|
3099
|
-
|
|
|
3100
|
-
|
|
|
3101
|
-
|
|
3102
|
-
export namespace WalletAuthenticateWithJwtResponse {
|
|
3103
|
-
export interface WithEncryption {
|
|
3104
|
-
/**
|
|
3105
|
-
* The encrypted authorization key data.
|
|
3106
|
-
*/
|
|
3107
|
-
encrypted_authorization_key: WithEncryption.EncryptedAuthorizationKey;
|
|
3108
|
-
|
|
3109
|
-
/**
|
|
3110
|
-
* The expiration time of the authorization key in milliseconds since the epoch.
|
|
3111
|
-
*/
|
|
3112
|
-
expires_at: number;
|
|
3113
|
-
|
|
3114
|
-
wallets: Array<WalletsAPI.Wallet>;
|
|
3115
|
-
}
|
|
3116
|
-
|
|
3117
|
-
export namespace WithEncryption {
|
|
3118
|
-
/**
|
|
3119
|
-
* The encrypted authorization key data.
|
|
3120
|
-
*/
|
|
3121
|
-
export interface EncryptedAuthorizationKey {
|
|
3122
|
-
/**
|
|
3123
|
-
* The encrypted authorization key corresponding to the user's current
|
|
3124
|
-
* authentication session.
|
|
3125
|
-
*/
|
|
3126
|
-
ciphertext: string;
|
|
3127
|
-
|
|
3128
|
-
/**
|
|
3129
|
-
* Base64-encoded ephemeral public key used in the HPKE encryption process.
|
|
3130
|
-
* Required for decryption.
|
|
3131
|
-
*/
|
|
3132
|
-
encapsulated_key: string;
|
|
3133
|
-
|
|
3134
|
-
/**
|
|
3135
|
-
* The encryption type used. Currently only supports HPKE.
|
|
3136
|
-
*/
|
|
3137
|
-
encryption_type: 'HPKE';
|
|
3138
|
-
}
|
|
3139
|
-
}
|
|
3140
|
-
|
|
3141
|
-
export interface WithoutEncryption {
|
|
3142
|
-
/**
|
|
3143
|
-
* The raw authorization key data.
|
|
3144
|
-
*/
|
|
3145
|
-
authorization_key: string;
|
|
3146
|
-
|
|
3147
|
-
/**
|
|
3148
|
-
* The expiration time of the authorization key in milliseconds since the epoch.
|
|
3149
|
-
*/
|
|
3150
|
-
expires_at: number;
|
|
3151
|
-
|
|
3152
|
-
wallets: Array<WalletsAPI.Wallet>;
|
|
3153
|
-
}
|
|
3154
|
-
}
|
|
3702
|
+
| EncryptedWalletAuthenticateResponse
|
|
3703
|
+
| RawWalletAuthenticateResponse;
|
|
3155
3704
|
|
|
3156
3705
|
/**
|
|
3157
3706
|
* Headers required to authorize wallet operations.
|
|
@@ -3347,7 +3896,7 @@ export type WalletEntropyType = 'hd' | 'private-key';
|
|
|
3347
3896
|
/**
|
|
3348
3897
|
* A named asset on Ethereum-compatible chains.
|
|
3349
3898
|
*/
|
|
3350
|
-
export type WalletEthereumAsset = 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb';
|
|
3899
|
+
export type WalletEthereumAsset = 'usdc' | 'usdc.e' | 'eth' | 'avax' | 'pol' | 'usdt' | 'eurc' | 'usdb';
|
|
3351
3900
|
|
|
3352
3901
|
/**
|
|
3353
3902
|
* Request body for exporting a wallet private key.
|
|
@@ -3403,10 +3952,10 @@ export interface WalletImportInitResponse {
|
|
|
3403
3952
|
}
|
|
3404
3953
|
|
|
3405
3954
|
/**
|
|
3406
|
-
* The chain type of the wallet to import.
|
|
3407
|
-
* `
|
|
3955
|
+
* The chain type of the wallet to import. Supports `ethereum`, `solana`,
|
|
3956
|
+
* `stellar`, `tron`, `sui`, and `aptos`.
|
|
3408
3957
|
*/
|
|
3409
|
-
export type WalletImportSupportedChains = 'ethereum' | 'solana';
|
|
3958
|
+
export type WalletImportSupportedChains = 'ethereum' | 'solana' | 'stellar' | 'tron' | 'sui' | 'aptos';
|
|
3410
3959
|
|
|
3411
3960
|
/**
|
|
3412
3961
|
* The entropy type of the wallet to import. Supports `private-key` for raw private
|
|
@@ -3445,6 +3994,8 @@ export type WalletRpcRequestBody =
|
|
|
3445
3994
|
| SparkCreateLightningInvoiceRpcInput
|
|
3446
3995
|
| SparkPayLightningInvoiceRpcInput
|
|
3447
3996
|
| SparkSignMessageWithIdentityKeyRpcInput
|
|
3997
|
+
| TronSignTransactionRpcInput
|
|
3998
|
+
| TronSendTransactionRpcInput
|
|
3448
3999
|
| ExportPrivateKeyRpcInput
|
|
3449
4000
|
| ExportSeedPhraseRpcInput;
|
|
3450
4001
|
|
|
@@ -3472,6 +4023,8 @@ export type WalletRpcResponse =
|
|
|
3472
4023
|
| SparkCreateLightningInvoiceRpcResponse
|
|
3473
4024
|
| SparkPayLightningInvoiceRpcResponse
|
|
3474
4025
|
| SparkSignMessageWithIdentityKeyRpcResponse
|
|
4026
|
+
| TronSignTransactionRpcResponse
|
|
4027
|
+
| TronSendTransactionRpcResponse
|
|
3475
4028
|
| ExportPrivateKeyRpcResponse
|
|
3476
4029
|
| ExportSeedPhraseRpcResponse;
|
|
3477
4030
|
|
|
@@ -3621,6 +4174,11 @@ export interface WalletListParams extends CursorParams {
|
|
|
3621
4174
|
*/
|
|
3622
4175
|
external_id?: string;
|
|
3623
4176
|
|
|
4177
|
+
/**
|
|
4178
|
+
* Include archived wallets in lookup. Defaults to false.
|
|
4179
|
+
*/
|
|
4180
|
+
include_archived?: boolean;
|
|
4181
|
+
|
|
3624
4182
|
/**
|
|
3625
4183
|
* Filter wallets by user ID. Cannot be used together with authorization_key.
|
|
3626
4184
|
*/
|
|
@@ -3658,6 +4216,13 @@ export interface WalletExportParams {
|
|
|
3658
4216
|
'privy-request-expiry'?: string;
|
|
3659
4217
|
}
|
|
3660
4218
|
|
|
4219
|
+
export interface WalletGetParams {
|
|
4220
|
+
/**
|
|
4221
|
+
* Include archived wallets in lookup. Defaults to false.
|
|
4222
|
+
*/
|
|
4223
|
+
include_archived?: boolean;
|
|
4224
|
+
}
|
|
4225
|
+
|
|
3661
4226
|
export interface WalletRawSignParams {
|
|
3662
4227
|
/**
|
|
3663
4228
|
* Body param: Parameters for the `raw_sign` RPC.
|
|
@@ -3704,6 +4269,8 @@ export type WalletRpcParams =
|
|
|
3704
4269
|
| WalletRpcParams.SparkCreateLightningInvoiceRpcInput
|
|
3705
4270
|
| WalletRpcParams.SparkPayLightningInvoiceRpcInput
|
|
3706
4271
|
| WalletRpcParams.SparkSignMessageWithIdentityKeyRpcInput
|
|
4272
|
+
| WalletRpcParams.TronSignTransactionRpcInput
|
|
4273
|
+
| WalletRpcParams.TronSendTransactionRpcInput
|
|
3707
4274
|
| WalletRpcParams.ExportPrivateKeyRpcInput
|
|
3708
4275
|
| WalletRpcParams.ExportSeedPhraseRpcInput;
|
|
3709
4276
|
|
|
@@ -3835,11 +4402,22 @@ export declare namespace WalletRpcParams {
|
|
|
3835
4402
|
*/
|
|
3836
4403
|
address?: string;
|
|
3837
4404
|
|
|
4405
|
+
/**
|
|
4406
|
+
* Body param: A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
4407
|
+
*/
|
|
4408
|
+
caip2?: AppsAPI.Caip2;
|
|
4409
|
+
|
|
3838
4410
|
/**
|
|
3839
4411
|
* Body param
|
|
3840
4412
|
*/
|
|
3841
4413
|
chain_type?: 'ethereum';
|
|
3842
4414
|
|
|
4415
|
+
/**
|
|
4416
|
+
* Body param: Options controlling signature production for personal_sign and
|
|
4417
|
+
* eth_signTypedData_v4.
|
|
4418
|
+
*/
|
|
4419
|
+
signature_options?: SignatureOptions;
|
|
4420
|
+
|
|
3843
4421
|
/**
|
|
3844
4422
|
* Body param
|
|
3845
4423
|
*/
|
|
@@ -3880,11 +4458,22 @@ export declare namespace WalletRpcParams {
|
|
|
3880
4458
|
*/
|
|
3881
4459
|
address?: string;
|
|
3882
4460
|
|
|
4461
|
+
/**
|
|
4462
|
+
* Body param: A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
4463
|
+
*/
|
|
4464
|
+
caip2?: AppsAPI.Caip2;
|
|
4465
|
+
|
|
3883
4466
|
/**
|
|
3884
4467
|
* Body param
|
|
3885
4468
|
*/
|
|
3886
4469
|
chain_type?: 'ethereum';
|
|
3887
4470
|
|
|
4471
|
+
/**
|
|
4472
|
+
* Body param: Options controlling signature production for personal_sign and
|
|
4473
|
+
* eth_signTypedData_v4.
|
|
4474
|
+
*/
|
|
4475
|
+
signature_options?: SignatureOptions;
|
|
4476
|
+
|
|
3888
4477
|
/**
|
|
3889
4478
|
* Body param
|
|
3890
4479
|
*/
|
|
@@ -4565,6 +5154,71 @@ export declare namespace WalletRpcParams {
|
|
|
4565
5154
|
'privy-request-expiry'?: string;
|
|
4566
5155
|
}
|
|
4567
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
|
+
|
|
4568
5222
|
export interface ExportPrivateKeyRpcInput {
|
|
4569
5223
|
/**
|
|
4570
5224
|
* Body param
|
|
@@ -4643,9 +5297,13 @@ Wallets.Transactions = Transactions;
|
|
|
4643
5297
|
|
|
4644
5298
|
export declare namespace Wallets {
|
|
4645
5299
|
export {
|
|
5300
|
+
type AccessListEntry as AccessListEntry,
|
|
4646
5301
|
type AdditionalSignerInput as AdditionalSignerInput,
|
|
4647
5302
|
type AdditionalSignerItemInput as AdditionalSignerItemInput,
|
|
4648
5303
|
type Address as Address,
|
|
5304
|
+
type AdvancedSwapPlatformFee as AdvancedSwapPlatformFee,
|
|
5305
|
+
type AdvancedSwapRequestBody as AdvancedSwapRequestBody,
|
|
5306
|
+
type AdvancedSwapResponse as AdvancedSwapResponse,
|
|
4649
5307
|
type AmountType as AmountType,
|
|
4650
5308
|
type AuthorizationKeyDashboardResponse as AuthorizationKeyDashboardResponse,
|
|
4651
5309
|
type AuthorizationKeyResponse as AuthorizationKeyResponse,
|
|
@@ -4658,6 +5316,9 @@ export declare namespace Wallets {
|
|
|
4658
5316
|
type CustodialWalletProvider as CustodialWalletProvider,
|
|
4659
5317
|
type CustomTokenTransferSource as CustomTokenTransferSource,
|
|
4660
5318
|
type DeveloperFee as DeveloperFee,
|
|
5319
|
+
type EncryptedAuthorizationKey as EncryptedAuthorizationKey,
|
|
5320
|
+
type EncryptedBoundAuthenticateResponse as EncryptedBoundAuthenticateResponse,
|
|
5321
|
+
type EncryptedWalletAuthenticateResponse as EncryptedWalletAuthenticateResponse,
|
|
4661
5322
|
type EthereumPersonalSignRpcInput as EthereumPersonalSignRpcInput,
|
|
4662
5323
|
type EthereumPersonalSignRpcInputParams as EthereumPersonalSignRpcInputParams,
|
|
4663
5324
|
type EthereumPersonalSignRpcResponse as EthereumPersonalSignRpcResponse,
|
|
@@ -4713,6 +5374,7 @@ export declare namespace Wallets {
|
|
|
4713
5374
|
type HpkeEncryption as HpkeEncryption,
|
|
4714
5375
|
type HpkeImportConfig as HpkeImportConfig,
|
|
4715
5376
|
type Hex as Hex,
|
|
5377
|
+
type IntentBinding as IntentBinding,
|
|
4716
5378
|
type NamedTokenTransferSource as NamedTokenTransferSource,
|
|
4717
5379
|
type OutputWithPreviousTransactionData as OutputWithPreviousTransactionData,
|
|
4718
5380
|
type PolicyInput as PolicyInput,
|
|
@@ -4722,6 +5384,7 @@ export declare namespace Wallets {
|
|
|
4722
5384
|
type PrivateKeySubmitInput as PrivateKeySubmitInput,
|
|
4723
5385
|
type PrivyFee as PrivyFee,
|
|
4724
5386
|
type Quantity as Quantity,
|
|
5387
|
+
type RawBoundAuthenticateResponse as RawBoundAuthenticateResponse,
|
|
4725
5388
|
type RawSignBytesEncoding as RawSignBytesEncoding,
|
|
4726
5389
|
type RawSignBytesHashFunction as RawSignBytesHashFunction,
|
|
4727
5390
|
type RawSignBytesParams as RawSignBytesParams,
|
|
@@ -4730,10 +5393,13 @@ export declare namespace Wallets {
|
|
|
4730
5393
|
type RawSignInputParams as RawSignInputParams,
|
|
4731
5394
|
type RawSignResponse as RawSignResponse,
|
|
4732
5395
|
type RawSignResponseData as RawSignResponseData,
|
|
5396
|
+
type RawWalletAuthenticateResponse as RawWalletAuthenticateResponse,
|
|
4733
5397
|
type RecipientPublicKey as RecipientPublicKey,
|
|
4734
5398
|
type RelayerFee as RelayerFee,
|
|
4735
5399
|
type SeedPhraseExportInput as SeedPhraseExportInput,
|
|
4736
5400
|
type SeedPhraseExportResponse as SeedPhraseExportResponse,
|
|
5401
|
+
type SignatureOptions as SignatureOptions,
|
|
5402
|
+
type SignatureType as SignatureType,
|
|
4737
5403
|
type SigningAlgorithm as SigningAlgorithm,
|
|
4738
5404
|
type SolanaRpcInput as SolanaRpcInput,
|
|
4739
5405
|
type SolanaRpcResponse as SolanaRpcResponse,
|
|
@@ -4795,6 +5461,7 @@ export declare namespace Wallets {
|
|
|
4795
5461
|
type SparkUserTokenMetadata as SparkUserTokenMetadata,
|
|
4796
5462
|
type SparkWalletLeaf as SparkWalletLeaf,
|
|
4797
5463
|
type SuiCommandName as SuiCommandName,
|
|
5464
|
+
type SwapSubmissionStatus as SwapSubmissionStatus,
|
|
4798
5465
|
type TempoAaAuthorization as TempoAaAuthorization,
|
|
4799
5466
|
type TempoCall as TempoCall,
|
|
4800
5467
|
type TempoFeePayerSignature as TempoFeePayerSignature,
|
|
@@ -4809,6 +5476,21 @@ export declare namespace Wallets {
|
|
|
4809
5476
|
type TransferReceivedTransactionDetail as TransferReceivedTransactionDetail,
|
|
4810
5477
|
type TransferRequestBody as TransferRequestBody,
|
|
4811
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,
|
|
4812
5494
|
type TypedDataDomainInputParams as TypedDataDomainInputParams,
|
|
4813
5495
|
type TypedDataTypeFieldInput as TypedDataTypeFieldInput,
|
|
4814
5496
|
type TypedDataTypesInputParams as TypedDataTypesInputParams,
|
|
@@ -4816,12 +5498,17 @@ export declare namespace Wallets {
|
|
|
4816
5498
|
type UnsignedStandardEthereumTransaction as UnsignedStandardEthereumTransaction,
|
|
4817
5499
|
type UnsignedTempoTransaction as UnsignedTempoTransaction,
|
|
4818
5500
|
type UserOperationInput as UserOperationInput,
|
|
5501
|
+
type UserSigningKeyBinding as UserSigningKeyBinding,
|
|
4819
5502
|
type Wallet as Wallet,
|
|
4820
5503
|
type WalletAdditionalSigner as WalletAdditionalSigner,
|
|
4821
5504
|
type WalletAdditionalSignerItem as WalletAdditionalSignerItem,
|
|
4822
5505
|
type WalletAPIRegisterAuthorizationKeyInput as WalletAPIRegisterAuthorizationKeyInput,
|
|
4823
5506
|
type WalletAPIRevokeAuthorizationKeyInput as WalletAPIRevokeAuthorizationKeyInput,
|
|
4824
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,
|
|
4825
5512
|
type WalletAuthenticateRequestBody as WalletAuthenticateRequestBody,
|
|
4826
5513
|
type WalletAuthenticateWithJwtResponse as WalletAuthenticateWithJwtResponse,
|
|
4827
5514
|
type WalletAuthorizationHeaders as WalletAuthorizationHeaders,
|
|
@@ -4849,6 +5536,7 @@ export declare namespace Wallets {
|
|
|
4849
5536
|
type WalletUpdateParams as WalletUpdateParams,
|
|
4850
5537
|
type WalletListParams as WalletListParams,
|
|
4851
5538
|
type WalletExportParams as WalletExportParams,
|
|
5539
|
+
type WalletGetParams as WalletGetParams,
|
|
4852
5540
|
type WalletRawSignParams as WalletRawSignParams,
|
|
4853
5541
|
type WalletRpcParams as WalletRpcParams,
|
|
4854
5542
|
};
|