@privy-io/node 0.7.0 → 0.9.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 +71 -0
- package/client.d.mts +18 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +18 -8
- package/client.d.ts.map +1 -1
- package/client.js +20 -3
- package/client.js.map +1 -1
- package/client.mjs +20 -3
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +21 -1
- package/resources/aggregations.d.mts +507 -0
- package/resources/aggregations.d.mts.map +1 -0
- package/resources/aggregations.d.ts +507 -0
- package/resources/aggregations.d.ts.map +1 -0
- package/resources/aggregations.js +9 -0
- package/resources/aggregations.js.map +1 -0
- package/resources/aggregations.mjs +5 -0
- package/resources/aggregations.mjs.map +1 -0
- package/resources/client-auth.d.mts +168 -2
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +168 -2
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/key-quorums.d.mts +4 -1
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +4 -1
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/policies.d.mts +21 -20
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +21 -20
- package/resources/policies.d.ts.map +1 -1
- package/resources/users.d.mts +21 -11
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +21 -11
- package/resources/users.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +11 -6
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +11 -6
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js +1 -2
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs +1 -2
- 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 +3 -3
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +3 -3
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +249 -61
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +249 -61
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +940 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +940 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +9 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +5 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources/yield.d.mts +264 -0
- package/resources/yield.d.mts.map +1 -0
- package/resources/yield.d.ts +264 -0
- package/resources/yield.d.ts.map +1 -0
- package/resources/yield.js +9 -0
- package/resources/yield.js.map +1 -0
- package/resources/yield.mjs +5 -0
- package/resources/yield.mjs.map +1 -0
- package/src/client.ts +198 -9
- package/src/internal/parse.ts +6 -0
- package/src/resources/aggregations.ts +853 -0
- package/src/resources/client-auth.ts +288 -1
- package/src/resources/index.ts +87 -3
- package/src/resources/key-quorums.ts +4 -1
- package/src/resources/policies.ts +21 -20
- package/src/resources/users.ts +58 -41
- package/src/resources/wallets/balance.ts +24 -6
- package/src/resources/wallets/index.ts +6 -2
- package/src/resources/wallets/transactions.ts +11 -3
- package/src/resources/wallets/wallets.ts +333 -78
- package/src/resources/webhooks.ts +1287 -0
- package/src/resources/yield.ts +330 -0
- package/src/types/x402.d.ts +18 -0
- package/src/version.ts +1 -1
- package/src/x402.ts +87 -0
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/x402.d.mts +54 -0
- package/x402.d.mts.map +1 -0
- package/x402.d.ts +54 -0
- package/x402.d.ts.map +1 -0
- package/x402.js +75 -0
- package/x402.js.map +1 -0
- package/x402.mjs +72 -0
- package/x402.mjs.map +1 -0
|
@@ -271,25 +271,8 @@ export class Wallets extends APIResource {
|
|
|
271
271
|
export type WalletsCursor = Cursor<Wallet>;
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
|
-
*
|
|
274
|
+
* A wallet managed by Privy's wallet infrastructure.
|
|
275
275
|
*/
|
|
276
|
-
export type CurveSigningChainType =
|
|
277
|
-
| 'cosmos'
|
|
278
|
-
| 'stellar'
|
|
279
|
-
| 'sui'
|
|
280
|
-
| 'aptos'
|
|
281
|
-
| 'movement'
|
|
282
|
-
| 'tron'
|
|
283
|
-
| 'bitcoin-segwit'
|
|
284
|
-
| 'near'
|
|
285
|
-
| 'ton'
|
|
286
|
-
| 'starknet';
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* The wallet chain types that offer first class support.
|
|
290
|
-
*/
|
|
291
|
-
export type FirstClassChainType = 'ethereum' | 'solana';
|
|
292
|
-
|
|
293
276
|
export interface Wallet {
|
|
294
277
|
/**
|
|
295
278
|
* Unique ID of the wallet. This will be the primary identifier when using the
|
|
@@ -359,11 +342,9 @@ export namespace Wallet {
|
|
|
359
342
|
}
|
|
360
343
|
|
|
361
344
|
/**
|
|
362
|
-
* The wallet chain types.
|
|
345
|
+
* The wallet chain types that support curve-based signing.
|
|
363
346
|
*/
|
|
364
|
-
export type
|
|
365
|
-
| 'ethereum'
|
|
366
|
-
| 'solana'
|
|
347
|
+
export type CurveSigningChainType =
|
|
367
348
|
| 'cosmos'
|
|
368
349
|
| 'stellar'
|
|
369
350
|
| 'sui'
|
|
@@ -373,8 +354,7 @@ export type WalletChainType =
|
|
|
373
354
|
| 'bitcoin-segwit'
|
|
374
355
|
| 'near'
|
|
375
356
|
| 'ton'
|
|
376
|
-
| 'starknet'
|
|
377
|
-
| 'spark';
|
|
357
|
+
| 'starknet';
|
|
378
358
|
|
|
379
359
|
/**
|
|
380
360
|
* The wallet chain types that are not first class chains.
|
|
@@ -392,6 +372,29 @@ export type ExtendedChainType =
|
|
|
392
372
|
| 'starknet'
|
|
393
373
|
| 'spark';
|
|
394
374
|
|
|
375
|
+
/**
|
|
376
|
+
* The wallet chain types that offer first class support.
|
|
377
|
+
*/
|
|
378
|
+
export type FirstClassChainType = 'ethereum' | 'solana';
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* The wallet chain types.
|
|
382
|
+
*/
|
|
383
|
+
export type WalletChainType =
|
|
384
|
+
| 'ethereum'
|
|
385
|
+
| 'solana'
|
|
386
|
+
| 'cosmos'
|
|
387
|
+
| 'stellar'
|
|
388
|
+
| 'sui'
|
|
389
|
+
| 'aptos'
|
|
390
|
+
| 'movement'
|
|
391
|
+
| 'tron'
|
|
392
|
+
| 'bitcoin-segwit'
|
|
393
|
+
| 'near'
|
|
394
|
+
| 'ton'
|
|
395
|
+
| 'starknet'
|
|
396
|
+
| 'spark';
|
|
397
|
+
|
|
395
398
|
/**
|
|
396
399
|
* Information about the custodian managing this wallet.
|
|
397
400
|
*/
|
|
@@ -463,12 +466,26 @@ export interface CustodialWallet {
|
|
|
463
466
|
/**
|
|
464
467
|
* The chain type of the custodial wallet.
|
|
465
468
|
*/
|
|
466
|
-
|
|
469
|
+
chain_type: CustodialWalletChainType;
|
|
470
|
+
|
|
471
|
+
owner_id: string | null;
|
|
467
472
|
|
|
468
473
|
/**
|
|
469
474
|
* The provider of the custodial wallet.
|
|
470
475
|
*/
|
|
471
476
|
provider: CustodialWalletProvider;
|
|
477
|
+
|
|
478
|
+
additional_signers?: Array<CustodialWallet.AdditionalSigner>;
|
|
479
|
+
|
|
480
|
+
policy_ids?: Array<string>;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export namespace CustodialWallet {
|
|
484
|
+
export interface AdditionalSigner {
|
|
485
|
+
signer_id: string;
|
|
486
|
+
|
|
487
|
+
override_policy_ids?: Array<string>;
|
|
488
|
+
}
|
|
472
489
|
}
|
|
473
490
|
|
|
474
491
|
/**
|
|
@@ -501,6 +518,139 @@ export interface HpkeImportConfig {
|
|
|
501
518
|
*/
|
|
502
519
|
export type SuiCommandName = 'TransferObjects' | 'SplitCoins' | 'MergeCoins';
|
|
503
520
|
|
|
521
|
+
/**
|
|
522
|
+
* Input for a single wallet in a batch creation request.
|
|
523
|
+
*/
|
|
524
|
+
export interface WalletBatchItemInput {
|
|
525
|
+
/**
|
|
526
|
+
* The wallet chain types.
|
|
527
|
+
*/
|
|
528
|
+
chain_type: WalletChainType;
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Additional signers for the wallet.
|
|
532
|
+
*/
|
|
533
|
+
additional_signers?: Array<WalletBatchItemInput.AdditionalSigner>;
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* The owner of the resource. If you provide this, do not specify an owner_id as it
|
|
537
|
+
* will be generated automatically. When updating a wallet, you can set the owner
|
|
538
|
+
* to null to remove the owner.
|
|
539
|
+
*/
|
|
540
|
+
owner?: WalletBatchItemInput.PublicKeyOwner | WalletBatchItemInput.UserOwner | null;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* The key quorum ID to set as the owner of the resource. If you provide this, do
|
|
544
|
+
* not specify an owner.
|
|
545
|
+
*/
|
|
546
|
+
owner_id?: string;
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* List of policy IDs for policies that should be enforced on the wallet.
|
|
550
|
+
* Currently, only one policy is supported per wallet.
|
|
551
|
+
*/
|
|
552
|
+
policy_ids?: Array<string>;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export namespace WalletBatchItemInput {
|
|
556
|
+
export interface AdditionalSigner {
|
|
557
|
+
signer_id: string;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* The array of policy IDs that will be applied to wallet requests. If specified,
|
|
561
|
+
* this will override the base policy IDs set on the wallet.
|
|
562
|
+
*/
|
|
563
|
+
override_policy_ids?: Array<string>;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* The P-256 public key of the owner of the resource, in base64-encoded DER format.
|
|
568
|
+
* If you provide this, do not specify an owner_id as it will be generated
|
|
569
|
+
* automatically.
|
|
570
|
+
*/
|
|
571
|
+
export interface PublicKeyOwner {
|
|
572
|
+
public_key: string;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* The user ID of the owner of the resource. The user must already exist, and this
|
|
577
|
+
* value must start with "did:privy:". If you provide this, do not specify an
|
|
578
|
+
* owner_id as it will be generated automatically.
|
|
579
|
+
*/
|
|
580
|
+
export interface UserOwner {
|
|
581
|
+
user_id: string;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Request body for batch wallet creation.
|
|
587
|
+
*/
|
|
588
|
+
export interface WalletBatchCreateInput {
|
|
589
|
+
/**
|
|
590
|
+
* Array of wallet creation requests. Minimum 1, maximum 100.
|
|
591
|
+
*/
|
|
592
|
+
wallets: Array<WalletBatchItemInput>;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* A single result from a batch wallet creation operation.
|
|
597
|
+
*/
|
|
598
|
+
export type WalletBatchCreateResult =
|
|
599
|
+
| WalletBatchCreateResult.WalletBatchCreateSuccess
|
|
600
|
+
| WalletBatchCreateResult.WalletBatchCreateFailure;
|
|
601
|
+
|
|
602
|
+
export namespace WalletBatchCreateResult {
|
|
603
|
+
/**
|
|
604
|
+
* A successful wallet creation result within a batch operation.
|
|
605
|
+
*/
|
|
606
|
+
export interface WalletBatchCreateSuccess {
|
|
607
|
+
/**
|
|
608
|
+
* The index of the wallet in the original request array.
|
|
609
|
+
*/
|
|
610
|
+
index: number;
|
|
611
|
+
|
|
612
|
+
success: true;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* A wallet managed by Privy's wallet infrastructure.
|
|
616
|
+
*/
|
|
617
|
+
wallet: WalletsAPI.Wallet;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* A failed wallet creation result within a batch operation.
|
|
622
|
+
*/
|
|
623
|
+
export interface WalletBatchCreateFailure {
|
|
624
|
+
/**
|
|
625
|
+
* A PrivyErrorCode string identifying the error type (e.g., "invalid_data",
|
|
626
|
+
* "resource_conflict").
|
|
627
|
+
*/
|
|
628
|
+
code: string;
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* A human-readable error message with details about what went wrong.
|
|
632
|
+
*/
|
|
633
|
+
error: string;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* The index of the wallet in the original request array.
|
|
637
|
+
*/
|
|
638
|
+
index: number;
|
|
639
|
+
|
|
640
|
+
success: false;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Response for a batch wallet creation request.
|
|
646
|
+
*/
|
|
647
|
+
export interface WalletBatchCreateResponse {
|
|
648
|
+
/**
|
|
649
|
+
* Array of results for each wallet creation request, in the same order as input.
|
|
650
|
+
*/
|
|
651
|
+
results: Array<WalletBatchCreateResult>;
|
|
652
|
+
}
|
|
653
|
+
|
|
504
654
|
/**
|
|
505
655
|
* Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
|
|
506
656
|
*/
|
|
@@ -542,6 +692,8 @@ export namespace EthereumSignTransactionRpcInput {
|
|
|
542
692
|
|
|
543
693
|
export namespace Params {
|
|
544
694
|
export interface Transaction {
|
|
695
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
696
|
+
|
|
545
697
|
chain_id?: string | number;
|
|
546
698
|
|
|
547
699
|
data?: string;
|
|
@@ -560,10 +712,26 @@ export namespace EthereumSignTransactionRpcInput {
|
|
|
560
712
|
|
|
561
713
|
to?: string;
|
|
562
714
|
|
|
563
|
-
type?: 0 | 1 | 2;
|
|
715
|
+
type?: 0 | 1 | 2 | 4;
|
|
564
716
|
|
|
565
717
|
value?: string | number;
|
|
566
718
|
}
|
|
719
|
+
|
|
720
|
+
export namespace Transaction {
|
|
721
|
+
export interface AuthorizationList {
|
|
722
|
+
chain_id: string | number;
|
|
723
|
+
|
|
724
|
+
contract: string;
|
|
725
|
+
|
|
726
|
+
nonce: string | number;
|
|
727
|
+
|
|
728
|
+
r: string;
|
|
729
|
+
|
|
730
|
+
s: string;
|
|
731
|
+
|
|
732
|
+
y_parity: number;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
567
735
|
}
|
|
568
736
|
}
|
|
569
737
|
|
|
@@ -591,6 +759,8 @@ export namespace EthereumSendTransactionRpcInput {
|
|
|
591
759
|
|
|
592
760
|
export namespace Params {
|
|
593
761
|
export interface Transaction {
|
|
762
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
763
|
+
|
|
594
764
|
chain_id?: string | number;
|
|
595
765
|
|
|
596
766
|
data?: string;
|
|
@@ -609,10 +779,26 @@ export namespace EthereumSendTransactionRpcInput {
|
|
|
609
779
|
|
|
610
780
|
to?: string;
|
|
611
781
|
|
|
612
|
-
type?: 0 | 1 | 2;
|
|
782
|
+
type?: 0 | 1 | 2 | 4;
|
|
613
783
|
|
|
614
784
|
value?: string | number;
|
|
615
785
|
}
|
|
786
|
+
|
|
787
|
+
export namespace Transaction {
|
|
788
|
+
export interface AuthorizationList {
|
|
789
|
+
chain_id: string | number;
|
|
790
|
+
|
|
791
|
+
contract: string;
|
|
792
|
+
|
|
793
|
+
nonce: string | number;
|
|
794
|
+
|
|
795
|
+
r: string;
|
|
796
|
+
|
|
797
|
+
s: string;
|
|
798
|
+
|
|
799
|
+
y_parity: number;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
616
802
|
}
|
|
617
803
|
}
|
|
618
804
|
|
|
@@ -852,10 +1038,14 @@ export namespace EthereumSendTransactionRpcResponse {
|
|
|
852
1038
|
transaction_id?: string;
|
|
853
1039
|
|
|
854
1040
|
transaction_request?: Data.TransactionRequest;
|
|
1041
|
+
|
|
1042
|
+
user_operation_hash?: string;
|
|
855
1043
|
}
|
|
856
1044
|
|
|
857
1045
|
export namespace Data {
|
|
858
1046
|
export interface TransactionRequest {
|
|
1047
|
+
authorization_list?: Array<TransactionRequest.AuthorizationList>;
|
|
1048
|
+
|
|
859
1049
|
chain_id?: string | number;
|
|
860
1050
|
|
|
861
1051
|
data?: string;
|
|
@@ -874,10 +1064,26 @@ export namespace EthereumSendTransactionRpcResponse {
|
|
|
874
1064
|
|
|
875
1065
|
to?: string;
|
|
876
1066
|
|
|
877
|
-
type?: 0 | 1 | 2;
|
|
1067
|
+
type?: 0 | 1 | 2 | 4;
|
|
878
1068
|
|
|
879
1069
|
value?: string | number;
|
|
880
1070
|
}
|
|
1071
|
+
|
|
1072
|
+
export namespace TransactionRequest {
|
|
1073
|
+
export interface AuthorizationList {
|
|
1074
|
+
chain_id: string | number;
|
|
1075
|
+
|
|
1076
|
+
contract: string;
|
|
1077
|
+
|
|
1078
|
+
nonce: string | number;
|
|
1079
|
+
|
|
1080
|
+
r: string;
|
|
1081
|
+
|
|
1082
|
+
s: string;
|
|
1083
|
+
|
|
1084
|
+
y_parity: number;
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
881
1087
|
}
|
|
882
1088
|
}
|
|
883
1089
|
|
|
@@ -1230,11 +1436,21 @@ export namespace WalletCreateParams {
|
|
|
1230
1436
|
}
|
|
1231
1437
|
|
|
1232
1438
|
export interface WalletListParams extends CursorParams {
|
|
1439
|
+
/**
|
|
1440
|
+
* Filter wallets by authorization public key. Returns wallets owned by key quorums
|
|
1441
|
+
* that include the specified P-256 public key (base64-encoded DER format). Cannot
|
|
1442
|
+
* be used together with user_id.
|
|
1443
|
+
*/
|
|
1444
|
+
authorization_key?: string;
|
|
1445
|
+
|
|
1233
1446
|
/**
|
|
1234
1447
|
* The wallet chain types.
|
|
1235
1448
|
*/
|
|
1236
1449
|
chain_type?: WalletChainType;
|
|
1237
1450
|
|
|
1451
|
+
/**
|
|
1452
|
+
* Filter wallets by user ID. Cannot be used together with authorization_key.
|
|
1453
|
+
*/
|
|
1238
1454
|
user_id?: string;
|
|
1239
1455
|
}
|
|
1240
1456
|
|
|
@@ -1378,22 +1594,22 @@ export type WalletRpcParams =
|
|
|
1378
1594
|
export declare namespace WalletRpcParams {
|
|
1379
1595
|
export interface EthereumPersonalSignRpcInput {
|
|
1380
1596
|
/**
|
|
1381
|
-
* Body param
|
|
1597
|
+
* Body param
|
|
1382
1598
|
*/
|
|
1383
1599
|
method: 'personal_sign';
|
|
1384
1600
|
|
|
1385
1601
|
/**
|
|
1386
|
-
* Body param
|
|
1602
|
+
* Body param
|
|
1387
1603
|
*/
|
|
1388
1604
|
params: EthereumPersonalSignRpcInput.Params;
|
|
1389
1605
|
|
|
1390
1606
|
/**
|
|
1391
|
-
* Body param
|
|
1607
|
+
* Body param
|
|
1392
1608
|
*/
|
|
1393
1609
|
address?: string;
|
|
1394
1610
|
|
|
1395
1611
|
/**
|
|
1396
|
-
* Body param
|
|
1612
|
+
* Body param
|
|
1397
1613
|
*/
|
|
1398
1614
|
chain_type?: 'ethereum';
|
|
1399
1615
|
|
|
@@ -1420,22 +1636,22 @@ export declare namespace WalletRpcParams {
|
|
|
1420
1636
|
|
|
1421
1637
|
export interface EthereumSignTypedDataRpcInput {
|
|
1422
1638
|
/**
|
|
1423
|
-
* Body param
|
|
1639
|
+
* Body param
|
|
1424
1640
|
*/
|
|
1425
1641
|
method: 'eth_signTypedData_v4';
|
|
1426
1642
|
|
|
1427
1643
|
/**
|
|
1428
|
-
* Body param
|
|
1644
|
+
* Body param
|
|
1429
1645
|
*/
|
|
1430
1646
|
params: EthereumSignTypedDataRpcInput.Params;
|
|
1431
1647
|
|
|
1432
1648
|
/**
|
|
1433
|
-
* Body param
|
|
1649
|
+
* Body param
|
|
1434
1650
|
*/
|
|
1435
1651
|
address?: string;
|
|
1436
1652
|
|
|
1437
1653
|
/**
|
|
1438
|
-
* Body param
|
|
1654
|
+
* Body param
|
|
1439
1655
|
*/
|
|
1440
1656
|
chain_type?: 'ethereum';
|
|
1441
1657
|
|
|
@@ -1480,22 +1696,22 @@ export declare namespace WalletRpcParams {
|
|
|
1480
1696
|
|
|
1481
1697
|
export interface EthereumSignTransactionRpcInput {
|
|
1482
1698
|
/**
|
|
1483
|
-
* Body param
|
|
1699
|
+
* Body param
|
|
1484
1700
|
*/
|
|
1485
1701
|
method: 'eth_signTransaction';
|
|
1486
1702
|
|
|
1487
1703
|
/**
|
|
1488
|
-
* Body param
|
|
1704
|
+
* Body param
|
|
1489
1705
|
*/
|
|
1490
1706
|
params: EthereumSignTransactionRpcInput.Params;
|
|
1491
1707
|
|
|
1492
1708
|
/**
|
|
1493
|
-
* Body param
|
|
1709
|
+
* Body param
|
|
1494
1710
|
*/
|
|
1495
1711
|
address?: string;
|
|
1496
1712
|
|
|
1497
1713
|
/**
|
|
1498
|
-
* Body param
|
|
1714
|
+
* Body param
|
|
1499
1715
|
*/
|
|
1500
1716
|
chain_type?: 'ethereum';
|
|
1501
1717
|
|
|
@@ -1519,6 +1735,8 @@ export declare namespace WalletRpcParams {
|
|
|
1519
1735
|
|
|
1520
1736
|
export namespace Params {
|
|
1521
1737
|
export interface Transaction {
|
|
1738
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
1739
|
+
|
|
1522
1740
|
chain_id?: string | number;
|
|
1523
1741
|
|
|
1524
1742
|
data?: string;
|
|
@@ -1537,31 +1755,47 @@ export declare namespace WalletRpcParams {
|
|
|
1537
1755
|
|
|
1538
1756
|
to?: string;
|
|
1539
1757
|
|
|
1540
|
-
type?: 0 | 1 | 2;
|
|
1758
|
+
type?: 0 | 1 | 2 | 4;
|
|
1541
1759
|
|
|
1542
1760
|
value?: string | number;
|
|
1543
1761
|
}
|
|
1762
|
+
|
|
1763
|
+
export namespace Transaction {
|
|
1764
|
+
export interface AuthorizationList {
|
|
1765
|
+
chain_id: string | number;
|
|
1766
|
+
|
|
1767
|
+
contract: string;
|
|
1768
|
+
|
|
1769
|
+
nonce: string | number;
|
|
1770
|
+
|
|
1771
|
+
r: string;
|
|
1772
|
+
|
|
1773
|
+
s: string;
|
|
1774
|
+
|
|
1775
|
+
y_parity: number;
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1544
1778
|
}
|
|
1545
1779
|
}
|
|
1546
1780
|
|
|
1547
1781
|
export interface EthereumSignUserOperationRpcInput {
|
|
1548
1782
|
/**
|
|
1549
|
-
* Body param
|
|
1783
|
+
* Body param
|
|
1550
1784
|
*/
|
|
1551
1785
|
method: 'eth_signUserOperation';
|
|
1552
1786
|
|
|
1553
1787
|
/**
|
|
1554
|
-
* Body param
|
|
1788
|
+
* Body param
|
|
1555
1789
|
*/
|
|
1556
1790
|
params: EthereumSignUserOperationRpcInput.Params;
|
|
1557
1791
|
|
|
1558
1792
|
/**
|
|
1559
|
-
* Body param
|
|
1793
|
+
* Body param
|
|
1560
1794
|
*/
|
|
1561
1795
|
address?: string;
|
|
1562
1796
|
|
|
1563
1797
|
/**
|
|
1564
|
-
* Body param
|
|
1798
|
+
* Body param
|
|
1565
1799
|
*/
|
|
1566
1800
|
chain_type?: 'ethereum';
|
|
1567
1801
|
|
|
@@ -1618,32 +1852,32 @@ export declare namespace WalletRpcParams {
|
|
|
1618
1852
|
|
|
1619
1853
|
export interface EthereumSendTransactionRpcInput {
|
|
1620
1854
|
/**
|
|
1621
|
-
* Body param
|
|
1855
|
+
* Body param
|
|
1622
1856
|
*/
|
|
1623
1857
|
caip2: string;
|
|
1624
1858
|
|
|
1625
1859
|
/**
|
|
1626
|
-
* Body param
|
|
1860
|
+
* Body param
|
|
1627
1861
|
*/
|
|
1628
1862
|
method: 'eth_sendTransaction';
|
|
1629
1863
|
|
|
1630
1864
|
/**
|
|
1631
|
-
* Body param
|
|
1865
|
+
* Body param
|
|
1632
1866
|
*/
|
|
1633
1867
|
params: EthereumSendTransactionRpcInput.Params;
|
|
1634
1868
|
|
|
1635
1869
|
/**
|
|
1636
|
-
* Body param
|
|
1870
|
+
* Body param
|
|
1637
1871
|
*/
|
|
1638
1872
|
address?: string;
|
|
1639
1873
|
|
|
1640
1874
|
/**
|
|
1641
|
-
* Body param
|
|
1875
|
+
* Body param
|
|
1642
1876
|
*/
|
|
1643
1877
|
chain_type?: 'ethereum';
|
|
1644
1878
|
|
|
1645
1879
|
/**
|
|
1646
|
-
* Body param
|
|
1880
|
+
* Body param
|
|
1647
1881
|
*/
|
|
1648
1882
|
sponsor?: boolean;
|
|
1649
1883
|
|
|
@@ -1667,6 +1901,8 @@ export declare namespace WalletRpcParams {
|
|
|
1667
1901
|
|
|
1668
1902
|
export namespace Params {
|
|
1669
1903
|
export interface Transaction {
|
|
1904
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
1905
|
+
|
|
1670
1906
|
chain_id?: string | number;
|
|
1671
1907
|
|
|
1672
1908
|
data?: string;
|
|
@@ -1685,31 +1921,47 @@ export declare namespace WalletRpcParams {
|
|
|
1685
1921
|
|
|
1686
1922
|
to?: string;
|
|
1687
1923
|
|
|
1688
|
-
type?: 0 | 1 | 2;
|
|
1924
|
+
type?: 0 | 1 | 2 | 4;
|
|
1689
1925
|
|
|
1690
1926
|
value?: string | number;
|
|
1691
1927
|
}
|
|
1928
|
+
|
|
1929
|
+
export namespace Transaction {
|
|
1930
|
+
export interface AuthorizationList {
|
|
1931
|
+
chain_id: string | number;
|
|
1932
|
+
|
|
1933
|
+
contract: string;
|
|
1934
|
+
|
|
1935
|
+
nonce: string | number;
|
|
1936
|
+
|
|
1937
|
+
r: string;
|
|
1938
|
+
|
|
1939
|
+
s: string;
|
|
1940
|
+
|
|
1941
|
+
y_parity: number;
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1692
1944
|
}
|
|
1693
1945
|
}
|
|
1694
1946
|
|
|
1695
1947
|
export interface EthereumSign7702AuthorizationRpcInput {
|
|
1696
1948
|
/**
|
|
1697
|
-
* Body param
|
|
1949
|
+
* Body param
|
|
1698
1950
|
*/
|
|
1699
1951
|
method: 'eth_sign7702Authorization';
|
|
1700
1952
|
|
|
1701
1953
|
/**
|
|
1702
|
-
* Body param
|
|
1954
|
+
* Body param
|
|
1703
1955
|
*/
|
|
1704
1956
|
params: EthereumSign7702AuthorizationRpcInput.Params;
|
|
1705
1957
|
|
|
1706
1958
|
/**
|
|
1707
|
-
* Body param
|
|
1959
|
+
* Body param
|
|
1708
1960
|
*/
|
|
1709
1961
|
address?: string;
|
|
1710
1962
|
|
|
1711
1963
|
/**
|
|
1712
|
-
* Body param
|
|
1964
|
+
* Body param
|
|
1713
1965
|
*/
|
|
1714
1966
|
chain_type?: 'ethereum';
|
|
1715
1967
|
|
|
@@ -1738,22 +1990,22 @@ export declare namespace WalletRpcParams {
|
|
|
1738
1990
|
|
|
1739
1991
|
export interface EthereumSecp256k1SignRpcInput {
|
|
1740
1992
|
/**
|
|
1741
|
-
* Body param
|
|
1993
|
+
* Body param
|
|
1742
1994
|
*/
|
|
1743
1995
|
method: 'secp256k1_sign';
|
|
1744
1996
|
|
|
1745
1997
|
/**
|
|
1746
|
-
* Body param
|
|
1998
|
+
* Body param
|
|
1747
1999
|
*/
|
|
1748
2000
|
params: EthereumSecp256k1SignRpcInput.Params;
|
|
1749
2001
|
|
|
1750
2002
|
/**
|
|
1751
|
-
* Body param
|
|
2003
|
+
* Body param
|
|
1752
2004
|
*/
|
|
1753
2005
|
address?: string;
|
|
1754
2006
|
|
|
1755
2007
|
/**
|
|
1756
|
-
* Body param
|
|
2008
|
+
* Body param
|
|
1757
2009
|
*/
|
|
1758
2010
|
chain_type?: 'ethereum';
|
|
1759
2011
|
|
|
@@ -1778,22 +2030,22 @@ export declare namespace WalletRpcParams {
|
|
|
1778
2030
|
|
|
1779
2031
|
export interface SolanaSignMessageRpcInput {
|
|
1780
2032
|
/**
|
|
1781
|
-
* Body param
|
|
2033
|
+
* Body param
|
|
1782
2034
|
*/
|
|
1783
2035
|
method: 'signMessage';
|
|
1784
2036
|
|
|
1785
2037
|
/**
|
|
1786
|
-
* Body param
|
|
2038
|
+
* Body param
|
|
1787
2039
|
*/
|
|
1788
2040
|
params: SolanaSignMessageRpcInput.Params;
|
|
1789
2041
|
|
|
1790
2042
|
/**
|
|
1791
|
-
* Body param
|
|
2043
|
+
* Body param
|
|
1792
2044
|
*/
|
|
1793
2045
|
address?: string;
|
|
1794
2046
|
|
|
1795
2047
|
/**
|
|
1796
|
-
* Body param
|
|
2048
|
+
* Body param
|
|
1797
2049
|
*/
|
|
1798
2050
|
chain_type?: 'solana';
|
|
1799
2051
|
|
|
@@ -1820,22 +2072,22 @@ export declare namespace WalletRpcParams {
|
|
|
1820
2072
|
|
|
1821
2073
|
export interface SolanaSignTransactionRpcInput {
|
|
1822
2074
|
/**
|
|
1823
|
-
* Body param
|
|
2075
|
+
* Body param
|
|
1824
2076
|
*/
|
|
1825
2077
|
method: 'signTransaction';
|
|
1826
2078
|
|
|
1827
2079
|
/**
|
|
1828
|
-
* Body param
|
|
2080
|
+
* Body param
|
|
1829
2081
|
*/
|
|
1830
2082
|
params: SolanaSignTransactionRpcInput.Params;
|
|
1831
2083
|
|
|
1832
2084
|
/**
|
|
1833
|
-
* Body param
|
|
2085
|
+
* Body param
|
|
1834
2086
|
*/
|
|
1835
2087
|
address?: string;
|
|
1836
2088
|
|
|
1837
2089
|
/**
|
|
1838
|
-
* Body param
|
|
2090
|
+
* Body param
|
|
1839
2091
|
*/
|
|
1840
2092
|
chain_type?: 'solana';
|
|
1841
2093
|
|
|
@@ -1862,32 +2114,32 @@ export declare namespace WalletRpcParams {
|
|
|
1862
2114
|
|
|
1863
2115
|
export interface SolanaSignAndSendTransactionRpcInput {
|
|
1864
2116
|
/**
|
|
1865
|
-
* Body param
|
|
2117
|
+
* Body param
|
|
1866
2118
|
*/
|
|
1867
2119
|
caip2: string;
|
|
1868
2120
|
|
|
1869
2121
|
/**
|
|
1870
|
-
* Body param
|
|
2122
|
+
* Body param
|
|
1871
2123
|
*/
|
|
1872
2124
|
method: 'signAndSendTransaction';
|
|
1873
2125
|
|
|
1874
2126
|
/**
|
|
1875
|
-
* Body param
|
|
2127
|
+
* Body param
|
|
1876
2128
|
*/
|
|
1877
2129
|
params: SolanaSignAndSendTransactionRpcInput.Params;
|
|
1878
2130
|
|
|
1879
2131
|
/**
|
|
1880
|
-
* Body param
|
|
2132
|
+
* Body param
|
|
1881
2133
|
*/
|
|
1882
2134
|
address?: string;
|
|
1883
2135
|
|
|
1884
2136
|
/**
|
|
1885
|
-
* Body param
|
|
2137
|
+
* Body param
|
|
1886
2138
|
*/
|
|
1887
2139
|
chain_type?: 'solana';
|
|
1888
2140
|
|
|
1889
2141
|
/**
|
|
1890
|
-
* Body param
|
|
2142
|
+
* Body param
|
|
1891
2143
|
*/
|
|
1892
2144
|
sponsor?: boolean;
|
|
1893
2145
|
|
|
@@ -2039,8 +2291,7 @@ export interface WalletUpdateParams {
|
|
|
2039
2291
|
owner?: WalletUpdateParams.PublicKeyOwner | WalletUpdateParams.UserOwner | null;
|
|
2040
2292
|
|
|
2041
2293
|
/**
|
|
2042
|
-
* Body param
|
|
2043
|
-
* provide this, do not specify an owner.
|
|
2294
|
+
* Body param
|
|
2044
2295
|
*/
|
|
2045
2296
|
owner_id?: string | null;
|
|
2046
2297
|
|
|
@@ -2165,11 +2416,11 @@ Wallets.Balance = Balance;
|
|
|
2165
2416
|
|
|
2166
2417
|
export declare namespace Wallets {
|
|
2167
2418
|
export {
|
|
2419
|
+
type Wallet as Wallet,
|
|
2168
2420
|
type CurveSigningChainType as CurveSigningChainType,
|
|
2421
|
+
type ExtendedChainType as ExtendedChainType,
|
|
2169
2422
|
type FirstClassChainType as FirstClassChainType,
|
|
2170
|
-
type Wallet as Wallet,
|
|
2171
2423
|
type WalletChainType as WalletChainType,
|
|
2172
|
-
type ExtendedChainType as ExtendedChainType,
|
|
2173
2424
|
type WalletCustodian as WalletCustodian,
|
|
2174
2425
|
type CustodialWalletProvider as CustodialWalletProvider,
|
|
2175
2426
|
type CustodialWalletChainType as CustodialWalletChainType,
|
|
@@ -2177,6 +2428,10 @@ export declare namespace Wallets {
|
|
|
2177
2428
|
type CustodialWallet as CustodialWallet,
|
|
2178
2429
|
type HpkeImportConfig as HpkeImportConfig,
|
|
2179
2430
|
type SuiCommandName as SuiCommandName,
|
|
2431
|
+
type WalletBatchItemInput as WalletBatchItemInput,
|
|
2432
|
+
type WalletBatchCreateInput as WalletBatchCreateInput,
|
|
2433
|
+
type WalletBatchCreateResult as WalletBatchCreateResult,
|
|
2434
|
+
type WalletBatchCreateResponse as WalletBatchCreateResponse,
|
|
2180
2435
|
type EthereumPersonalSignRpcInput as EthereumPersonalSignRpcInput,
|
|
2181
2436
|
type EthereumSignTransactionRpcInput as EthereumSignTransactionRpcInput,
|
|
2182
2437
|
type EthereumSendTransactionRpcInput as EthereumSendTransactionRpcInput,
|