@privy-io/node 0.4.1 → 0.6.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 +27 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/lib/identity-token.d.mts.map +1 -1
- package/lib/identity-token.d.ts.map +1 -1
- package/lib/identity-token.js +10 -0
- package/lib/identity-token.js.map +1 -1
- package/lib/identity-token.mjs +10 -0
- package/lib/identity-token.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api/services/ethereum.d.mts +7 -7
- package/public-api/services/ethereum.d.mts.map +1 -1
- package/public-api/services/ethereum.d.ts +7 -7
- package/public-api/services/ethereum.d.ts.map +1 -1
- package/public-api/services/ethereum.js.map +1 -1
- package/public-api/services/ethereum.mjs.map +1 -1
- package/public-api/services/solana.d.mts +4 -4
- package/public-api/services/solana.d.mts.map +1 -1
- package/public-api/services/solana.d.ts +4 -4
- package/public-api/services/solana.d.ts.map +1 -1
- package/public-api/services/solana.js.map +1 -1
- package/public-api/services/solana.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/policies.d.mts +122 -18
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +122 -18
- package/resources/policies.d.ts.map +1 -1
- package/resources/users.d.mts +6 -3
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +6 -3
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +1 -1
- package/resources/users.mjs +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 +2 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +2 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/wallets.d.mts +531 -208
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +531 -208
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +2 -2
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +2 -2
- package/resources/wallets/wallets.mjs.map +1 -1
- package/src/client.ts +42 -0
- package/src/lib/identity-token.ts +11 -0
- package/src/public-api/services/ethereum.ts +15 -7
- package/src/public-api/services/solana.ts +9 -4
- package/src/resources/index.ts +21 -0
- package/src/resources/policies.ts +210 -2
- package/src/resources/users.ts +6 -16
- package/src/resources/wallets/index.ts +21 -0
- package/src/resources/wallets/transactions.ts +2 -2
- package/src/resources/wallets/wallets.ts +707 -240
- 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
|
@@ -83,8 +83,8 @@ export declare class Wallets extends APIResource {
|
|
|
83
83
|
* @example
|
|
84
84
|
* ```ts
|
|
85
85
|
* const response = await client.wallets._rpc('wallet_id', {
|
|
86
|
-
* method: '
|
|
87
|
-
* params: {
|
|
86
|
+
* method: 'personal_sign',
|
|
87
|
+
* params: { encoding: 'utf-8', message: 'message' },
|
|
88
88
|
* });
|
|
89
89
|
* ```
|
|
90
90
|
*/
|
|
@@ -154,7 +154,7 @@ export type CurveSigningChainType = 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'mo
|
|
|
154
154
|
/**
|
|
155
155
|
* The wallet chain types that offer first class support.
|
|
156
156
|
*/
|
|
157
|
-
export type FirstClassChainType = '
|
|
157
|
+
export type FirstClassChainType = 'ethereum' | 'solana';
|
|
158
158
|
export interface Wallet {
|
|
159
159
|
/**
|
|
160
160
|
* Unique ID of the wallet. This will be the primary identifier when using the
|
|
@@ -214,7 +214,388 @@ export declare namespace Wallet {
|
|
|
214
214
|
/**
|
|
215
215
|
* The wallet chain types.
|
|
216
216
|
*/
|
|
217
|
-
export type WalletChainType = '
|
|
217
|
+
export type WalletChainType = 'ethereum' | 'solana' | 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'movement' | 'tron' | 'bitcoin-segwit' | 'near' | 'ton' | 'starknet' | 'spark';
|
|
218
|
+
/**
|
|
219
|
+
* The wallet chain types that are not first class chains.
|
|
220
|
+
*/
|
|
221
|
+
export type ExtendedChainType = 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'movement' | 'tron' | 'bitcoin-segwit' | 'near' | 'ton' | 'starknet' | 'spark';
|
|
222
|
+
/**
|
|
223
|
+
* Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
|
|
224
|
+
*/
|
|
225
|
+
export interface EthereumPersonalSignRpcInput {
|
|
226
|
+
method: 'personal_sign';
|
|
227
|
+
params: EthereumPersonalSignRpcInput.Params;
|
|
228
|
+
address?: string;
|
|
229
|
+
chain_type?: 'ethereum';
|
|
230
|
+
}
|
|
231
|
+
export declare namespace EthereumPersonalSignRpcInput {
|
|
232
|
+
interface Params {
|
|
233
|
+
encoding: 'utf-8' | 'hex';
|
|
234
|
+
message: string;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Executes the EVM `eth_signTransaction` RPC to sign a transaction.
|
|
239
|
+
*/
|
|
240
|
+
export interface EthereumSignTransactionRpcInput {
|
|
241
|
+
method: 'eth_signTransaction';
|
|
242
|
+
params: EthereumSignTransactionRpcInput.Params;
|
|
243
|
+
address?: string;
|
|
244
|
+
chain_type?: 'ethereum';
|
|
245
|
+
}
|
|
246
|
+
export declare namespace EthereumSignTransactionRpcInput {
|
|
247
|
+
interface Params {
|
|
248
|
+
transaction: Params.Transaction;
|
|
249
|
+
}
|
|
250
|
+
namespace Params {
|
|
251
|
+
interface Transaction {
|
|
252
|
+
chain_id?: string | number;
|
|
253
|
+
data?: string;
|
|
254
|
+
from?: string;
|
|
255
|
+
gas_limit?: string | number;
|
|
256
|
+
gas_price?: string | number;
|
|
257
|
+
max_fee_per_gas?: string | number;
|
|
258
|
+
max_priority_fee_per_gas?: string | number;
|
|
259
|
+
nonce?: string | number;
|
|
260
|
+
to?: string;
|
|
261
|
+
type?: 0 | 1 | 2;
|
|
262
|
+
value?: string | number;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Executes the EVM `eth_sendTransaction` RPC to sign and broadcast a transaction.
|
|
268
|
+
*/
|
|
269
|
+
export interface EthereumSendTransactionRpcInput {
|
|
270
|
+
caip2: string;
|
|
271
|
+
method: 'eth_sendTransaction';
|
|
272
|
+
params: EthereumSendTransactionRpcInput.Params;
|
|
273
|
+
address?: string;
|
|
274
|
+
chain_type?: 'ethereum';
|
|
275
|
+
sponsor?: boolean;
|
|
276
|
+
}
|
|
277
|
+
export declare namespace EthereumSendTransactionRpcInput {
|
|
278
|
+
interface Params {
|
|
279
|
+
transaction: Params.Transaction;
|
|
280
|
+
}
|
|
281
|
+
namespace Params {
|
|
282
|
+
interface Transaction {
|
|
283
|
+
chain_id?: string | number;
|
|
284
|
+
data?: string;
|
|
285
|
+
from?: string;
|
|
286
|
+
gas_limit?: string | number;
|
|
287
|
+
gas_price?: string | number;
|
|
288
|
+
max_fee_per_gas?: string | number;
|
|
289
|
+
max_priority_fee_per_gas?: string | number;
|
|
290
|
+
nonce?: string | number;
|
|
291
|
+
to?: string;
|
|
292
|
+
type?: 0 | 1 | 2;
|
|
293
|
+
value?: string | number;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Executes the EVM `eth_signTypedData_v4` RPC (EIP-712) to sign a typed data
|
|
299
|
+
* object.
|
|
300
|
+
*/
|
|
301
|
+
export interface EthereumSignTypedDataRpcInput {
|
|
302
|
+
method: 'eth_signTypedData_v4';
|
|
303
|
+
params: EthereumSignTypedDataRpcInput.Params;
|
|
304
|
+
address?: string;
|
|
305
|
+
chain_type?: 'ethereum';
|
|
306
|
+
}
|
|
307
|
+
export declare namespace EthereumSignTypedDataRpcInput {
|
|
308
|
+
interface Params {
|
|
309
|
+
typed_data: Params.TypedData;
|
|
310
|
+
}
|
|
311
|
+
namespace Params {
|
|
312
|
+
interface TypedData {
|
|
313
|
+
domain: {
|
|
314
|
+
[key: string]: unknown;
|
|
315
|
+
};
|
|
316
|
+
message: {
|
|
317
|
+
[key: string]: unknown;
|
|
318
|
+
};
|
|
319
|
+
primary_type: string;
|
|
320
|
+
types: {
|
|
321
|
+
[key: string]: Array<TypedData.Type>;
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
namespace TypedData {
|
|
325
|
+
interface Type {
|
|
326
|
+
name: string;
|
|
327
|
+
type: string;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Executes an RPC method to hash and sign a UserOperation.
|
|
334
|
+
*/
|
|
335
|
+
export interface EthereumSignUserOperationRpcInput {
|
|
336
|
+
method: 'eth_signUserOperation';
|
|
337
|
+
params: EthereumSignUserOperationRpcInput.Params;
|
|
338
|
+
address?: string;
|
|
339
|
+
chain_type?: 'ethereum';
|
|
340
|
+
}
|
|
341
|
+
export declare namespace EthereumSignUserOperationRpcInput {
|
|
342
|
+
interface Params {
|
|
343
|
+
chain_id: string | number;
|
|
344
|
+
contract: string;
|
|
345
|
+
user_operation: Params.UserOperation;
|
|
346
|
+
}
|
|
347
|
+
namespace Params {
|
|
348
|
+
interface UserOperation {
|
|
349
|
+
call_data: string;
|
|
350
|
+
call_gas_limit: string;
|
|
351
|
+
max_fee_per_gas: string;
|
|
352
|
+
max_priority_fee_per_gas: string;
|
|
353
|
+
nonce: string;
|
|
354
|
+
paymaster: string;
|
|
355
|
+
paymaster_data: string;
|
|
356
|
+
paymaster_post_op_gas_limit: string;
|
|
357
|
+
paymaster_verification_gas_limit: string;
|
|
358
|
+
pre_verification_gas: string;
|
|
359
|
+
sender: string;
|
|
360
|
+
verification_gas_limit: string;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Signs an EIP-7702 authorization.
|
|
366
|
+
*/
|
|
367
|
+
export interface EthereumSign7702AuthorizationRpcInput {
|
|
368
|
+
method: 'eth_sign7702Authorization';
|
|
369
|
+
params: EthereumSign7702AuthorizationRpcInput.Params;
|
|
370
|
+
address?: string;
|
|
371
|
+
chain_type?: 'ethereum';
|
|
372
|
+
}
|
|
373
|
+
export declare namespace EthereumSign7702AuthorizationRpcInput {
|
|
374
|
+
interface Params {
|
|
375
|
+
chain_id: string | number;
|
|
376
|
+
contract: string;
|
|
377
|
+
nonce?: string | number;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Signs a raw hash on the secp256k1 curve.
|
|
382
|
+
*/
|
|
383
|
+
export interface EthereumSecp256k1SignRpcInput {
|
|
384
|
+
method: 'secp256k1_sign';
|
|
385
|
+
params: EthereumSecp256k1SignRpcInput.Params;
|
|
386
|
+
address?: string;
|
|
387
|
+
chain_type?: 'ethereum';
|
|
388
|
+
}
|
|
389
|
+
export declare namespace EthereumSecp256k1SignRpcInput {
|
|
390
|
+
interface Params {
|
|
391
|
+
hash: string;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Executes the SVM `signTransaction` RPC to sign a transaction.
|
|
396
|
+
*/
|
|
397
|
+
export interface SolanaSignTransactionRpcInput {
|
|
398
|
+
method: 'signTransaction';
|
|
399
|
+
params: SolanaSignTransactionRpcInput.Params;
|
|
400
|
+
address?: string;
|
|
401
|
+
chain_type?: 'solana';
|
|
402
|
+
}
|
|
403
|
+
export declare namespace SolanaSignTransactionRpcInput {
|
|
404
|
+
interface Params {
|
|
405
|
+
encoding: 'base64';
|
|
406
|
+
transaction: string;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Executes the SVM `signAndSendTransaction` RPC to sign and broadcast a
|
|
411
|
+
* transaction.
|
|
412
|
+
*/
|
|
413
|
+
export interface SolanaSignAndSendTransactionRpcInput {
|
|
414
|
+
caip2: string;
|
|
415
|
+
method: 'signAndSendTransaction';
|
|
416
|
+
params: SolanaSignAndSendTransactionRpcInput.Params;
|
|
417
|
+
address?: string;
|
|
418
|
+
chain_type?: 'solana';
|
|
419
|
+
sponsor?: boolean;
|
|
420
|
+
}
|
|
421
|
+
export declare namespace SolanaSignAndSendTransactionRpcInput {
|
|
422
|
+
interface Params {
|
|
423
|
+
encoding: 'base64';
|
|
424
|
+
transaction: string;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Executes the SVM `signMessage` RPC to sign a message.
|
|
429
|
+
*/
|
|
430
|
+
export interface SolanaSignMessageRpcInput {
|
|
431
|
+
method: 'signMessage';
|
|
432
|
+
params: SolanaSignMessageRpcInput.Params;
|
|
433
|
+
address?: string;
|
|
434
|
+
chain_type?: 'solana';
|
|
435
|
+
}
|
|
436
|
+
export declare namespace SolanaSignMessageRpcInput {
|
|
437
|
+
interface Params {
|
|
438
|
+
encoding: 'base64';
|
|
439
|
+
message: string;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Response to the EVM `eth_signTransaction` RPC.
|
|
444
|
+
*/
|
|
445
|
+
export interface EthereumSignTransactionRpcResponse {
|
|
446
|
+
data: EthereumSignTransactionRpcResponse.Data;
|
|
447
|
+
method: 'eth_signTransaction';
|
|
448
|
+
}
|
|
449
|
+
export declare namespace EthereumSignTransactionRpcResponse {
|
|
450
|
+
interface Data {
|
|
451
|
+
encoding: 'rlp';
|
|
452
|
+
signed_transaction: string;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Response to the EVM `eth_sendTransaction` RPC.
|
|
457
|
+
*/
|
|
458
|
+
export interface EthereumSendTransactionRpcResponse {
|
|
459
|
+
data: EthereumSendTransactionRpcResponse.Data;
|
|
460
|
+
method: 'eth_sendTransaction';
|
|
461
|
+
}
|
|
462
|
+
export declare namespace EthereumSendTransactionRpcResponse {
|
|
463
|
+
interface Data {
|
|
464
|
+
caip2: string;
|
|
465
|
+
hash: string;
|
|
466
|
+
transaction_id?: string;
|
|
467
|
+
transaction_request?: Data.TransactionRequest;
|
|
468
|
+
}
|
|
469
|
+
namespace Data {
|
|
470
|
+
interface TransactionRequest {
|
|
471
|
+
chain_id?: string | number;
|
|
472
|
+
data?: string;
|
|
473
|
+
from?: string;
|
|
474
|
+
gas_limit?: string | number;
|
|
475
|
+
gas_price?: string | number;
|
|
476
|
+
max_fee_per_gas?: string | number;
|
|
477
|
+
max_priority_fee_per_gas?: string | number;
|
|
478
|
+
nonce?: string | number;
|
|
479
|
+
to?: string;
|
|
480
|
+
type?: 0 | 1 | 2;
|
|
481
|
+
value?: string | number;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Response to the EVM `personal_sign` RPC.
|
|
487
|
+
*/
|
|
488
|
+
export interface EthereumPersonalSignRpcResponse {
|
|
489
|
+
data: EthereumPersonalSignRpcResponse.Data;
|
|
490
|
+
method: 'personal_sign';
|
|
491
|
+
}
|
|
492
|
+
export declare namespace EthereumPersonalSignRpcResponse {
|
|
493
|
+
interface Data {
|
|
494
|
+
encoding: 'hex';
|
|
495
|
+
signature: string;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Response to the EVM `eth_signTypedData_v4` RPC.
|
|
500
|
+
*/
|
|
501
|
+
export interface EthereumSignTypedDataRpcResponse {
|
|
502
|
+
data: EthereumSignTypedDataRpcResponse.Data;
|
|
503
|
+
method: 'eth_signTypedData_v4';
|
|
504
|
+
}
|
|
505
|
+
export declare namespace EthereumSignTypedDataRpcResponse {
|
|
506
|
+
interface Data {
|
|
507
|
+
encoding: 'hex';
|
|
508
|
+
signature: string;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Response to the EVM `eth_signUserOperation` RPC.
|
|
513
|
+
*/
|
|
514
|
+
export interface EthereumSignUserOperationRpcResponse {
|
|
515
|
+
data: EthereumSignUserOperationRpcResponse.Data;
|
|
516
|
+
method: 'eth_signUserOperation';
|
|
517
|
+
}
|
|
518
|
+
export declare namespace EthereumSignUserOperationRpcResponse {
|
|
519
|
+
interface Data {
|
|
520
|
+
encoding: 'hex';
|
|
521
|
+
signature: string;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* Response to the EVM `eth_sign7702Authorization` RPC.
|
|
526
|
+
*/
|
|
527
|
+
export interface EthereumSign7702AuthorizationRpcResponse {
|
|
528
|
+
data: EthereumSign7702AuthorizationRpcResponse.Data;
|
|
529
|
+
method: 'eth_sign7702Authorization';
|
|
530
|
+
}
|
|
531
|
+
export declare namespace EthereumSign7702AuthorizationRpcResponse {
|
|
532
|
+
interface Data {
|
|
533
|
+
authorization: Data.Authorization;
|
|
534
|
+
}
|
|
535
|
+
namespace Data {
|
|
536
|
+
interface Authorization {
|
|
537
|
+
chain_id: string | number;
|
|
538
|
+
contract: string;
|
|
539
|
+
nonce: string | number;
|
|
540
|
+
r: string;
|
|
541
|
+
s: string;
|
|
542
|
+
y_parity: number;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* Response to the EVM `secp256k1_sign` RPC.
|
|
548
|
+
*/
|
|
549
|
+
export interface EthereumSecp256k1SignRpcResponse {
|
|
550
|
+
data: EthereumSecp256k1SignRpcResponse.Data;
|
|
551
|
+
method: 'secp256k1_sign';
|
|
552
|
+
}
|
|
553
|
+
export declare namespace EthereumSecp256k1SignRpcResponse {
|
|
554
|
+
interface Data {
|
|
555
|
+
encoding: 'hex';
|
|
556
|
+
signature: string;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* Response to the SVM `signTransaction` RPC.
|
|
561
|
+
*/
|
|
562
|
+
export interface SolanaSignTransactionRpcResponse {
|
|
563
|
+
data: SolanaSignTransactionRpcResponse.Data;
|
|
564
|
+
method: 'signTransaction';
|
|
565
|
+
}
|
|
566
|
+
export declare namespace SolanaSignTransactionRpcResponse {
|
|
567
|
+
interface Data {
|
|
568
|
+
encoding: 'base64';
|
|
569
|
+
signed_transaction: string;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* Response to the SVM `signAndSendTransaction` RPC.
|
|
574
|
+
*/
|
|
575
|
+
export interface SolanaSignAndSendTransactionRpcResponse {
|
|
576
|
+
data: SolanaSignAndSendTransactionRpcResponse.Data;
|
|
577
|
+
method: 'signAndSendTransaction';
|
|
578
|
+
}
|
|
579
|
+
export declare namespace SolanaSignAndSendTransactionRpcResponse {
|
|
580
|
+
interface Data {
|
|
581
|
+
caip2: string;
|
|
582
|
+
hash: string;
|
|
583
|
+
transaction_id?: string;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* Response to the SVM `signMessage` RPC.
|
|
588
|
+
*/
|
|
589
|
+
export interface SolanaSignMessageRpcResponse {
|
|
590
|
+
data: SolanaSignMessageRpcResponse.Data;
|
|
591
|
+
method: 'signMessage';
|
|
592
|
+
}
|
|
593
|
+
export declare namespace SolanaSignMessageRpcResponse {
|
|
594
|
+
interface Data {
|
|
595
|
+
encoding: 'base64';
|
|
596
|
+
signature: string;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
218
599
|
export interface WalletExportResponse {
|
|
219
600
|
/**
|
|
220
601
|
* The encrypted private key.
|
|
@@ -249,126 +630,10 @@ export declare namespace WalletRawSignResponse {
|
|
|
249
630
|
signature: string;
|
|
250
631
|
}
|
|
251
632
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
method: 'signTransaction';
|
|
257
|
-
}
|
|
258
|
-
namespace SolanaSignTransactionRpcResponse {
|
|
259
|
-
interface Data {
|
|
260
|
-
encoding: 'base64';
|
|
261
|
-
signed_transaction: string;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
interface SolanaSignAndSendTransactionRpcResponse {
|
|
265
|
-
data: SolanaSignAndSendTransactionRpcResponse.Data;
|
|
266
|
-
method: 'signAndSendTransaction';
|
|
267
|
-
}
|
|
268
|
-
namespace SolanaSignAndSendTransactionRpcResponse {
|
|
269
|
-
interface Data {
|
|
270
|
-
caip2: string;
|
|
271
|
-
hash: string;
|
|
272
|
-
transaction_id?: string;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
interface SolanaSignMessageRpcResponse {
|
|
276
|
-
data: SolanaSignMessageRpcResponse.Data;
|
|
277
|
-
method: 'signMessage';
|
|
278
|
-
}
|
|
279
|
-
namespace SolanaSignMessageRpcResponse {
|
|
280
|
-
interface Data {
|
|
281
|
-
encoding: 'base64';
|
|
282
|
-
signature: string;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
interface EthereumSignTransactionRpcResponse {
|
|
286
|
-
data: EthereumSignTransactionRpcResponse.Data;
|
|
287
|
-
method: 'eth_signTransaction';
|
|
288
|
-
}
|
|
289
|
-
namespace EthereumSignTransactionRpcResponse {
|
|
290
|
-
interface Data {
|
|
291
|
-
encoding: 'rlp';
|
|
292
|
-
signed_transaction: string;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
interface EthereumSendTransactionRpcResponse {
|
|
296
|
-
data: EthereumSendTransactionRpcResponse.Data;
|
|
297
|
-
method: 'eth_sendTransaction';
|
|
298
|
-
}
|
|
299
|
-
namespace EthereumSendTransactionRpcResponse {
|
|
300
|
-
interface Data {
|
|
301
|
-
caip2: string;
|
|
302
|
-
hash: string;
|
|
303
|
-
transaction_id?: string;
|
|
304
|
-
transaction_request?: Data.TransactionRequest;
|
|
305
|
-
}
|
|
306
|
-
namespace Data {
|
|
307
|
-
interface TransactionRequest {
|
|
308
|
-
chain_id?: string | number;
|
|
309
|
-
data?: string;
|
|
310
|
-
from?: string;
|
|
311
|
-
gas_limit?: string | number;
|
|
312
|
-
gas_price?: string | number;
|
|
313
|
-
max_fee_per_gas?: string | number;
|
|
314
|
-
max_priority_fee_per_gas?: string | number;
|
|
315
|
-
nonce?: string | number;
|
|
316
|
-
to?: string;
|
|
317
|
-
type?: 0 | 1 | 2;
|
|
318
|
-
value?: string | number;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
interface EthereumPersonalSignRpcResponse {
|
|
323
|
-
data: EthereumPersonalSignRpcResponse.Data;
|
|
324
|
-
method: 'personal_sign';
|
|
325
|
-
}
|
|
326
|
-
namespace EthereumPersonalSignRpcResponse {
|
|
327
|
-
interface Data {
|
|
328
|
-
encoding: 'hex';
|
|
329
|
-
signature: string;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
interface EthereumSignTypedDataRpcResponse {
|
|
333
|
-
data: EthereumSignTypedDataRpcResponse.Data;
|
|
334
|
-
method: 'eth_signTypedData_v4';
|
|
335
|
-
}
|
|
336
|
-
namespace EthereumSignTypedDataRpcResponse {
|
|
337
|
-
interface Data {
|
|
338
|
-
encoding: 'hex';
|
|
339
|
-
signature: string;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
interface EthereumSign7702AuthorizationRpcResponse {
|
|
343
|
-
data: EthereumSign7702AuthorizationRpcResponse.Data;
|
|
344
|
-
method: 'eth_sign7702Authorization';
|
|
345
|
-
}
|
|
346
|
-
namespace EthereumSign7702AuthorizationRpcResponse {
|
|
347
|
-
interface Data {
|
|
348
|
-
authorization: Data.Authorization;
|
|
349
|
-
}
|
|
350
|
-
namespace Data {
|
|
351
|
-
interface Authorization {
|
|
352
|
-
chain_id: string | number;
|
|
353
|
-
contract: string;
|
|
354
|
-
nonce: string | number;
|
|
355
|
-
r: string;
|
|
356
|
-
s: string;
|
|
357
|
-
y_parity: number;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
interface EthereumSecp256k1SignRpcResponse {
|
|
362
|
-
data: EthereumSecp256k1SignRpcResponse.Data;
|
|
363
|
-
method: 'secp256k1_sign';
|
|
364
|
-
}
|
|
365
|
-
namespace EthereumSecp256k1SignRpcResponse {
|
|
366
|
-
interface Data {
|
|
367
|
-
encoding: 'hex';
|
|
368
|
-
signature: string;
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
}
|
|
633
|
+
/**
|
|
634
|
+
* Response to the EVM `personal_sign` RPC.
|
|
635
|
+
*/
|
|
636
|
+
export type WalletRpcResponse = EthereumPersonalSignRpcResponse | EthereumSignTypedDataRpcResponse | EthereumSignTransactionRpcResponse | EthereumSendTransactionRpcResponse | EthereumSignUserOperationRpcResponse | EthereumSign7702AuthorizationRpcResponse | EthereumSecp256k1SignRpcResponse | SolanaSignMessageRpcResponse | SolanaSignTransactionRpcResponse | SolanaSignAndSendTransactionRpcResponse;
|
|
372
637
|
export type WalletAuthenticateWithJwtResponse = WalletAuthenticateWithJwtResponse.WithEncryption | WalletAuthenticateWithJwtResponse.WithoutEncryption;
|
|
373
638
|
export declare namespace WalletAuthenticateWithJwtResponse {
|
|
374
639
|
interface WithEncryption {
|
|
@@ -483,7 +748,10 @@ export declare namespace WalletCreateParams {
|
|
|
483
748
|
}
|
|
484
749
|
}
|
|
485
750
|
export interface WalletListParams extends CursorParams {
|
|
486
|
-
|
|
751
|
+
/**
|
|
752
|
+
* The wallet chain types.
|
|
753
|
+
*/
|
|
754
|
+
chain_type?: WalletChainType;
|
|
487
755
|
user_id?: string;
|
|
488
756
|
}
|
|
489
757
|
export interface WalletExportParams {
|
|
@@ -572,7 +840,7 @@ export declare namespace WalletRawSignParams {
|
|
|
572
840
|
hash: string;
|
|
573
841
|
}
|
|
574
842
|
/**
|
|
575
|
-
* Hash and sign bytes
|
|
843
|
+
* Hash and sign bytes
|
|
576
844
|
*/
|
|
577
845
|
interface UnionMember1 {
|
|
578
846
|
/**
|
|
@@ -580,22 +848,26 @@ export declare namespace WalletRawSignParams {
|
|
|
580
848
|
*/
|
|
581
849
|
bytes: string;
|
|
582
850
|
/**
|
|
583
|
-
* Encoding scheme
|
|
851
|
+
* Encoding scheme for the bytes.
|
|
584
852
|
*/
|
|
585
|
-
encoding: 'utf-8';
|
|
853
|
+
encoding: 'utf-8' | 'hex';
|
|
854
|
+
/**
|
|
855
|
+
* Hash function to use for the bytes.
|
|
856
|
+
*/
|
|
857
|
+
hash_function: 'keccak256' | 'sha256';
|
|
586
858
|
}
|
|
587
859
|
}
|
|
588
|
-
export type WalletRpcParams = WalletRpcParams.
|
|
860
|
+
export type WalletRpcParams = WalletRpcParams.EthereumPersonalSignRpcInput | WalletRpcParams.EthereumSignTypedDataRpcInput | WalletRpcParams.EthereumSignTransactionRpcInput | WalletRpcParams.EthereumSignUserOperationRpcInput | WalletRpcParams.EthereumSendTransactionRpcInput | WalletRpcParams.EthereumSign7702AuthorizationRpcInput | WalletRpcParams.EthereumSecp256k1SignRpcInput | WalletRpcParams.SolanaSignMessageRpcInput | WalletRpcParams.SolanaSignTransactionRpcInput | WalletRpcParams.SolanaSignAndSendTransactionRpcInput;
|
|
589
861
|
export declare namespace WalletRpcParams {
|
|
590
|
-
interface
|
|
862
|
+
interface EthereumPersonalSignRpcInput {
|
|
591
863
|
/**
|
|
592
864
|
* Body param:
|
|
593
865
|
*/
|
|
594
|
-
method: '
|
|
866
|
+
method: 'personal_sign';
|
|
595
867
|
/**
|
|
596
868
|
* Body param:
|
|
597
869
|
*/
|
|
598
|
-
params:
|
|
870
|
+
params: EthereumPersonalSignRpcInput.Params;
|
|
599
871
|
/**
|
|
600
872
|
* Body param:
|
|
601
873
|
*/
|
|
@@ -615,51 +887,82 @@ export declare namespace WalletRpcParams {
|
|
|
615
887
|
*/
|
|
616
888
|
'privy-idempotency-key'?: string;
|
|
617
889
|
}
|
|
618
|
-
namespace
|
|
890
|
+
namespace EthereumPersonalSignRpcInput {
|
|
619
891
|
interface Params {
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
namespace Params {
|
|
623
|
-
interface Transaction {
|
|
624
|
-
chain_id?: string | number;
|
|
625
|
-
data?: string;
|
|
626
|
-
from?: string;
|
|
627
|
-
gas_limit?: string | number;
|
|
628
|
-
gas_price?: string | number;
|
|
629
|
-
max_fee_per_gas?: string | number;
|
|
630
|
-
max_priority_fee_per_gas?: string | number;
|
|
631
|
-
nonce?: string | number;
|
|
632
|
-
to?: string;
|
|
633
|
-
type?: 0 | 1 | 2;
|
|
634
|
-
value?: string | number;
|
|
635
|
-
}
|
|
892
|
+
encoding: 'utf-8' | 'hex';
|
|
893
|
+
message: string;
|
|
636
894
|
}
|
|
637
895
|
}
|
|
638
|
-
interface
|
|
896
|
+
interface EthereumSignTypedDataRpcInput {
|
|
639
897
|
/**
|
|
640
898
|
* Body param:
|
|
641
899
|
*/
|
|
642
|
-
|
|
900
|
+
method: 'eth_signTypedData_v4';
|
|
643
901
|
/**
|
|
644
902
|
* Body param:
|
|
645
903
|
*/
|
|
646
|
-
|
|
904
|
+
params: EthereumSignTypedDataRpcInput.Params;
|
|
647
905
|
/**
|
|
648
906
|
* Body param:
|
|
649
907
|
*/
|
|
650
|
-
|
|
908
|
+
address?: string;
|
|
651
909
|
/**
|
|
652
910
|
* Body param:
|
|
653
911
|
*/
|
|
654
|
-
|
|
912
|
+
chain_type?: 'ethereum';
|
|
913
|
+
/**
|
|
914
|
+
* Header param: Request authorization signature. If multiple signatures are
|
|
915
|
+
* required, they should be comma separated.
|
|
916
|
+
*/
|
|
917
|
+
'privy-authorization-signature'?: string;
|
|
918
|
+
/**
|
|
919
|
+
* Header param: Idempotency keys ensure API requests are executed only once within
|
|
920
|
+
* a 24-hour window.
|
|
921
|
+
*/
|
|
922
|
+
'privy-idempotency-key'?: string;
|
|
923
|
+
}
|
|
924
|
+
namespace EthereumSignTypedDataRpcInput {
|
|
925
|
+
interface Params {
|
|
926
|
+
typed_data: Params.TypedData;
|
|
927
|
+
}
|
|
928
|
+
namespace Params {
|
|
929
|
+
interface TypedData {
|
|
930
|
+
domain: {
|
|
931
|
+
[key: string]: unknown;
|
|
932
|
+
};
|
|
933
|
+
message: {
|
|
934
|
+
[key: string]: unknown;
|
|
935
|
+
};
|
|
936
|
+
primary_type: string;
|
|
937
|
+
types: {
|
|
938
|
+
[key: string]: Array<TypedData.Type>;
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
namespace TypedData {
|
|
942
|
+
interface Type {
|
|
943
|
+
name: string;
|
|
944
|
+
type: string;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
interface EthereumSignTransactionRpcInput {
|
|
655
950
|
/**
|
|
656
951
|
* Body param:
|
|
657
952
|
*/
|
|
658
|
-
|
|
953
|
+
method: 'eth_signTransaction';
|
|
659
954
|
/**
|
|
660
955
|
* Body param:
|
|
661
956
|
*/
|
|
662
|
-
|
|
957
|
+
params: EthereumSignTransactionRpcInput.Params;
|
|
958
|
+
/**
|
|
959
|
+
* Body param:
|
|
960
|
+
*/
|
|
961
|
+
address?: string;
|
|
962
|
+
/**
|
|
963
|
+
* Body param:
|
|
964
|
+
*/
|
|
965
|
+
chain_type?: 'ethereum';
|
|
663
966
|
/**
|
|
664
967
|
* Header param: Request authorization signature. If multiple signatures are
|
|
665
968
|
* required, they should be comma separated.
|
|
@@ -671,7 +974,7 @@ export declare namespace WalletRpcParams {
|
|
|
671
974
|
*/
|
|
672
975
|
'privy-idempotency-key'?: string;
|
|
673
976
|
}
|
|
674
|
-
namespace
|
|
977
|
+
namespace EthereumSignTransactionRpcInput {
|
|
675
978
|
interface Params {
|
|
676
979
|
transaction: Params.Transaction;
|
|
677
980
|
}
|
|
@@ -691,15 +994,15 @@ export declare namespace WalletRpcParams {
|
|
|
691
994
|
}
|
|
692
995
|
}
|
|
693
996
|
}
|
|
694
|
-
interface
|
|
997
|
+
interface EthereumSignUserOperationRpcInput {
|
|
695
998
|
/**
|
|
696
999
|
* Body param:
|
|
697
1000
|
*/
|
|
698
|
-
method: '
|
|
1001
|
+
method: 'eth_signUserOperation';
|
|
699
1002
|
/**
|
|
700
1003
|
* Body param:
|
|
701
1004
|
*/
|
|
702
|
-
params:
|
|
1005
|
+
params: EthereumSignUserOperationRpcInput.Params;
|
|
703
1006
|
/**
|
|
704
1007
|
* Body param:
|
|
705
1008
|
*/
|
|
@@ -719,21 +1022,42 @@ export declare namespace WalletRpcParams {
|
|
|
719
1022
|
*/
|
|
720
1023
|
'privy-idempotency-key'?: string;
|
|
721
1024
|
}
|
|
722
|
-
namespace
|
|
1025
|
+
namespace EthereumSignUserOperationRpcInput {
|
|
723
1026
|
interface Params {
|
|
724
|
-
|
|
725
|
-
|
|
1027
|
+
chain_id: string | number;
|
|
1028
|
+
contract: string;
|
|
1029
|
+
user_operation: Params.UserOperation;
|
|
1030
|
+
}
|
|
1031
|
+
namespace Params {
|
|
1032
|
+
interface UserOperation {
|
|
1033
|
+
call_data: string;
|
|
1034
|
+
call_gas_limit: string;
|
|
1035
|
+
max_fee_per_gas: string;
|
|
1036
|
+
max_priority_fee_per_gas: string;
|
|
1037
|
+
nonce: string;
|
|
1038
|
+
paymaster: string;
|
|
1039
|
+
paymaster_data: string;
|
|
1040
|
+
paymaster_post_op_gas_limit: string;
|
|
1041
|
+
paymaster_verification_gas_limit: string;
|
|
1042
|
+
pre_verification_gas: string;
|
|
1043
|
+
sender: string;
|
|
1044
|
+
verification_gas_limit: string;
|
|
1045
|
+
}
|
|
726
1046
|
}
|
|
727
1047
|
}
|
|
728
|
-
interface
|
|
1048
|
+
interface EthereumSendTransactionRpcInput {
|
|
729
1049
|
/**
|
|
730
1050
|
* Body param:
|
|
731
1051
|
*/
|
|
732
|
-
|
|
1052
|
+
caip2: string;
|
|
733
1053
|
/**
|
|
734
1054
|
* Body param:
|
|
735
1055
|
*/
|
|
736
|
-
|
|
1056
|
+
method: 'eth_sendTransaction';
|
|
1057
|
+
/**
|
|
1058
|
+
* Body param:
|
|
1059
|
+
*/
|
|
1060
|
+
params: EthereumSendTransactionRpcInput.Params;
|
|
737
1061
|
/**
|
|
738
1062
|
* Body param:
|
|
739
1063
|
*/
|
|
@@ -742,6 +1066,10 @@ export declare namespace WalletRpcParams {
|
|
|
742
1066
|
* Body param:
|
|
743
1067
|
*/
|
|
744
1068
|
chain_type?: 'ethereum';
|
|
1069
|
+
/**
|
|
1070
|
+
* Body param:
|
|
1071
|
+
*/
|
|
1072
|
+
sponsor?: boolean;
|
|
745
1073
|
/**
|
|
746
1074
|
* Header param: Request authorization signature. If multiple signatures are
|
|
747
1075
|
* required, they should be comma separated.
|
|
@@ -753,28 +1081,23 @@ export declare namespace WalletRpcParams {
|
|
|
753
1081
|
*/
|
|
754
1082
|
'privy-idempotency-key'?: string;
|
|
755
1083
|
}
|
|
756
|
-
namespace
|
|
1084
|
+
namespace EthereumSendTransactionRpcInput {
|
|
757
1085
|
interface Params {
|
|
758
|
-
|
|
1086
|
+
transaction: Params.Transaction;
|
|
759
1087
|
}
|
|
760
1088
|
namespace Params {
|
|
761
|
-
interface
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
namespace TypedData {
|
|
774
|
-
interface Type {
|
|
775
|
-
name: string;
|
|
776
|
-
type: string;
|
|
777
|
-
}
|
|
1089
|
+
interface Transaction {
|
|
1090
|
+
chain_id?: string | number;
|
|
1091
|
+
data?: string;
|
|
1092
|
+
from?: string;
|
|
1093
|
+
gas_limit?: string | number;
|
|
1094
|
+
gas_price?: string | number;
|
|
1095
|
+
max_fee_per_gas?: string | number;
|
|
1096
|
+
max_priority_fee_per_gas?: string | number;
|
|
1097
|
+
nonce?: string | number;
|
|
1098
|
+
to?: string;
|
|
1099
|
+
type?: 0 | 1 | 2;
|
|
1100
|
+
value?: string | number;
|
|
778
1101
|
}
|
|
779
1102
|
}
|
|
780
1103
|
}
|
|
@@ -846,15 +1169,15 @@ export declare namespace WalletRpcParams {
|
|
|
846
1169
|
hash: string;
|
|
847
1170
|
}
|
|
848
1171
|
}
|
|
849
|
-
interface
|
|
1172
|
+
interface SolanaSignMessageRpcInput {
|
|
850
1173
|
/**
|
|
851
1174
|
* Body param:
|
|
852
1175
|
*/
|
|
853
|
-
method: '
|
|
1176
|
+
method: 'signMessage';
|
|
854
1177
|
/**
|
|
855
1178
|
* Body param:
|
|
856
1179
|
*/
|
|
857
|
-
params:
|
|
1180
|
+
params: SolanaSignMessageRpcInput.Params;
|
|
858
1181
|
/**
|
|
859
1182
|
* Body param:
|
|
860
1183
|
*/
|
|
@@ -874,25 +1197,21 @@ export declare namespace WalletRpcParams {
|
|
|
874
1197
|
*/
|
|
875
1198
|
'privy-idempotency-key'?: string;
|
|
876
1199
|
}
|
|
877
|
-
namespace
|
|
1200
|
+
namespace SolanaSignMessageRpcInput {
|
|
878
1201
|
interface Params {
|
|
879
1202
|
encoding: 'base64';
|
|
880
|
-
|
|
1203
|
+
message: string;
|
|
881
1204
|
}
|
|
882
1205
|
}
|
|
883
|
-
interface
|
|
884
|
-
/**
|
|
885
|
-
* Body param:
|
|
886
|
-
*/
|
|
887
|
-
caip2: string;
|
|
1206
|
+
interface SolanaSignTransactionRpcInput {
|
|
888
1207
|
/**
|
|
889
1208
|
* Body param:
|
|
890
1209
|
*/
|
|
891
|
-
method: '
|
|
1210
|
+
method: 'signTransaction';
|
|
892
1211
|
/**
|
|
893
1212
|
* Body param:
|
|
894
1213
|
*/
|
|
895
|
-
params:
|
|
1214
|
+
params: SolanaSignTransactionRpcInput.Params;
|
|
896
1215
|
/**
|
|
897
1216
|
* Body param:
|
|
898
1217
|
*/
|
|
@@ -901,10 +1220,6 @@ export declare namespace WalletRpcParams {
|
|
|
901
1220
|
* Body param:
|
|
902
1221
|
*/
|
|
903
1222
|
chain_type?: 'solana';
|
|
904
|
-
/**
|
|
905
|
-
* Body param:
|
|
906
|
-
*/
|
|
907
|
-
sponsor?: boolean;
|
|
908
1223
|
/**
|
|
909
1224
|
* Header param: Request authorization signature. If multiple signatures are
|
|
910
1225
|
* required, they should be comma separated.
|
|
@@ -916,21 +1231,25 @@ export declare namespace WalletRpcParams {
|
|
|
916
1231
|
*/
|
|
917
1232
|
'privy-idempotency-key'?: string;
|
|
918
1233
|
}
|
|
919
|
-
namespace
|
|
1234
|
+
namespace SolanaSignTransactionRpcInput {
|
|
920
1235
|
interface Params {
|
|
921
1236
|
encoding: 'base64';
|
|
922
1237
|
transaction: string;
|
|
923
1238
|
}
|
|
924
1239
|
}
|
|
925
|
-
interface
|
|
1240
|
+
interface SolanaSignAndSendTransactionRpcInput {
|
|
926
1241
|
/**
|
|
927
1242
|
* Body param:
|
|
928
1243
|
*/
|
|
929
|
-
|
|
1244
|
+
caip2: string;
|
|
930
1245
|
/**
|
|
931
1246
|
* Body param:
|
|
932
1247
|
*/
|
|
933
|
-
|
|
1248
|
+
method: 'signAndSendTransaction';
|
|
1249
|
+
/**
|
|
1250
|
+
* Body param:
|
|
1251
|
+
*/
|
|
1252
|
+
params: SolanaSignAndSendTransactionRpcInput.Params;
|
|
934
1253
|
/**
|
|
935
1254
|
* Body param:
|
|
936
1255
|
*/
|
|
@@ -939,6 +1258,10 @@ export declare namespace WalletRpcParams {
|
|
|
939
1258
|
* Body param:
|
|
940
1259
|
*/
|
|
941
1260
|
chain_type?: 'solana';
|
|
1261
|
+
/**
|
|
1262
|
+
* Body param:
|
|
1263
|
+
*/
|
|
1264
|
+
sponsor?: boolean;
|
|
942
1265
|
/**
|
|
943
1266
|
* Header param: Request authorization signature. If multiple signatures are
|
|
944
1267
|
* required, they should be comma separated.
|
|
@@ -950,10 +1273,10 @@ export declare namespace WalletRpcParams {
|
|
|
950
1273
|
*/
|
|
951
1274
|
'privy-idempotency-key'?: string;
|
|
952
1275
|
}
|
|
953
|
-
namespace
|
|
1276
|
+
namespace SolanaSignAndSendTransactionRpcInput {
|
|
954
1277
|
interface Params {
|
|
955
1278
|
encoding: 'base64';
|
|
956
|
-
|
|
1279
|
+
transaction: string;
|
|
957
1280
|
}
|
|
958
1281
|
}
|
|
959
1282
|
}
|
|
@@ -1146,7 +1469,7 @@ export declare namespace WalletCreateWalletsWithRecoveryParams {
|
|
|
1146
1469
|
}
|
|
1147
1470
|
}
|
|
1148
1471
|
export declare namespace Wallets {
|
|
1149
|
-
export { type CurveSigningChainType as CurveSigningChainType, type FirstClassChainType as FirstClassChainType, type Wallet as Wallet, type WalletChainType as WalletChainType, type WalletExportResponse as WalletExportResponse, type WalletInitImportResponse as WalletInitImportResponse, type WalletRawSignResponse as WalletRawSignResponse, type WalletRpcResponse as WalletRpcResponse, type WalletAuthenticateWithJwtResponse as WalletAuthenticateWithJwtResponse, type WalletCreateWalletsWithRecoveryResponse as WalletCreateWalletsWithRecoveryResponse, type WalletsCursor as WalletsCursor, type WalletCreateParams as WalletCreateParams, type WalletListParams as WalletListParams, type WalletExportParams as WalletExportParams, type WalletInitImportParams as WalletInitImportParams, type WalletRawSignParams as WalletRawSignParams, type WalletRpcParams as WalletRpcParams, type WalletSubmitImportParams as WalletSubmitImportParams, type WalletUpdateParams as WalletUpdateParams, type WalletAuthenticateWithJwtParams as WalletAuthenticateWithJwtParams, type WalletCreateWalletsWithRecoveryParams as WalletCreateWalletsWithRecoveryParams, };
|
|
1472
|
+
export { type CurveSigningChainType as CurveSigningChainType, type FirstClassChainType as FirstClassChainType, type Wallet as Wallet, type WalletChainType as WalletChainType, type ExtendedChainType as ExtendedChainType, type EthereumPersonalSignRpcInput as EthereumPersonalSignRpcInput, type EthereumSignTransactionRpcInput as EthereumSignTransactionRpcInput, type EthereumSendTransactionRpcInput as EthereumSendTransactionRpcInput, type EthereumSignTypedDataRpcInput as EthereumSignTypedDataRpcInput, type EthereumSignUserOperationRpcInput as EthereumSignUserOperationRpcInput, type EthereumSign7702AuthorizationRpcInput as EthereumSign7702AuthorizationRpcInput, type EthereumSecp256k1SignRpcInput as EthereumSecp256k1SignRpcInput, type SolanaSignTransactionRpcInput as SolanaSignTransactionRpcInput, type SolanaSignAndSendTransactionRpcInput as SolanaSignAndSendTransactionRpcInput, type SolanaSignMessageRpcInput as SolanaSignMessageRpcInput, type EthereumSignTransactionRpcResponse as EthereumSignTransactionRpcResponse, type EthereumSendTransactionRpcResponse as EthereumSendTransactionRpcResponse, type EthereumPersonalSignRpcResponse as EthereumPersonalSignRpcResponse, type EthereumSignTypedDataRpcResponse as EthereumSignTypedDataRpcResponse, type EthereumSignUserOperationRpcResponse as EthereumSignUserOperationRpcResponse, type EthereumSign7702AuthorizationRpcResponse as EthereumSign7702AuthorizationRpcResponse, type EthereumSecp256k1SignRpcResponse as EthereumSecp256k1SignRpcResponse, type SolanaSignTransactionRpcResponse as SolanaSignTransactionRpcResponse, type SolanaSignAndSendTransactionRpcResponse as SolanaSignAndSendTransactionRpcResponse, type SolanaSignMessageRpcResponse as SolanaSignMessageRpcResponse, type WalletExportResponse as WalletExportResponse, type WalletInitImportResponse as WalletInitImportResponse, type WalletRawSignResponse as WalletRawSignResponse, type WalletRpcResponse as WalletRpcResponse, type WalletAuthenticateWithJwtResponse as WalletAuthenticateWithJwtResponse, type WalletCreateWalletsWithRecoveryResponse as WalletCreateWalletsWithRecoveryResponse, type WalletsCursor as WalletsCursor, type WalletCreateParams as WalletCreateParams, type WalletListParams as WalletListParams, type WalletExportParams as WalletExportParams, type WalletInitImportParams as WalletInitImportParams, type WalletRawSignParams as WalletRawSignParams, type WalletRpcParams as WalletRpcParams, type WalletSubmitImportParams as WalletSubmitImportParams, type WalletUpdateParams as WalletUpdateParams, type WalletAuthenticateWithJwtParams as WalletAuthenticateWithJwtParams, type WalletCreateWalletsWithRecoveryParams as WalletCreateWalletsWithRecoveryParams, };
|
|
1150
1473
|
export { Transactions as Transactions, type TransactionGetResponse as TransactionGetResponse, type TransactionGetParams as TransactionGetParams, };
|
|
1151
1474
|
export { Balance as Balance, type BalanceGetResponse as BalanceGetResponse, type BalanceGetParams as BalanceGetParams, };
|
|
1152
1475
|
}
|