@coinbase/cdp-sdk 1.47.0 → 1.48.1
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 +14 -0
- package/README.md +287 -0
- package/_cjs/actions/webhooks/createWebhookSubscription.js.map +1 -1
- package/_cjs/client/cdp.js +1 -4
- package/_cjs/client/cdp.js.map +1 -1
- package/_cjs/client/end-user/endUser.js +42 -89
- package/_cjs/client/end-user/endUser.js.map +1 -1
- package/_cjs/client/end-user/toEndUserAccount.js +17 -43
- package/_cjs/client/end-user/toEndUserAccount.js.map +1 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/openapi-client/cdpApiClient.js +0 -32
- package/_cjs/openapi-client/cdpApiClient.js.map +1 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +57 -10
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_cjs/openapi-client/generated/{embedded-wallets-core-functionality/embedded-wallets-core-functionality.js → embedded-wallets/embedded-wallets.js} +45 -97
- package/_cjs/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +1 -0
- package/_cjs/openapi-client/generated/webhooks/webhooks.js +6 -6
- package/_cjs/openapi-client/index.js +2 -2
- package/_cjs/openapi-client/index.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/actions/webhooks/createWebhookSubscription.js.map +1 -1
- package/_esm/client/cdp.js +2 -5
- package/_esm/client/cdp.js.map +1 -1
- package/_esm/client/end-user/endUser.js +40 -87
- package/_esm/client/end-user/endUser.js.map +1 -1
- package/_esm/client/end-user/toEndUserAccount.js +17 -43
- package/_esm/client/end-user/toEndUserAccount.js.map +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/openapi-client/cdpApiClient.js +0 -32
- package/_esm/openapi-client/cdpApiClient.js.map +1 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +55 -8
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_esm/openapi-client/generated/{embedded-wallets-core-functionality/embedded-wallets-core-functionality.js → embedded-wallets/embedded-wallets.js} +43 -93
- package/_esm/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +1 -0
- package/_esm/openapi-client/generated/webhooks/webhooks.js +6 -6
- package/_esm/openapi-client/index.js +2 -2
- package/_esm/openapi-client/index.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/actions/webhooks/createWebhookSubscription.d.ts +1 -1
- package/_types/actions/webhooks/createWebhookSubscription.d.ts.map +1 -1
- package/_types/client/cdp.d.ts +2 -6
- package/_types/client/cdp.d.ts.map +1 -1
- package/_types/client/end-user/endUser.d.ts +19 -52
- package/_types/client/end-user/endUser.d.ts.map +1 -1
- package/_types/client/end-user/endUser.types.d.ts +26 -61
- package/_types/client/end-user/endUser.types.d.ts.map +1 -1
- package/_types/client/end-user/toEndUserAccount.d.ts +0 -2
- package/_types/client/end-user/toEndUserAccount.d.ts.map +1 -1
- package/_types/index.d.ts +1 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/openapi-client/cdpApiClient.d.ts.map +1 -1
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +490 -79
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts +151 -0
- package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts.map +1 -0
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts +6 -6
- package/_types/openapi-client/index.d.ts +14 -45
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/actions/webhooks/createWebhookSubscription.ts +6 -1
- package/client/cdp.ts +3 -8
- package/client/end-user/endUser.ts +85 -187
- package/client/end-user/endUser.types.ts +28 -69
- package/client/end-user/toEndUserAccount.ts +63 -152
- package/index.ts +0 -4
- package/openapi-client/cdpApiClient.ts +0 -34
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +551 -85
- package/openapi-client/generated/{embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts → embedded-wallets/embedded-wallets.ts} +86 -249
- package/openapi-client/generated/webhooks/webhooks.ts +6 -6
- package/openapi-client/index.ts +2 -2
- package/package.json +1 -1
- package/version.ts +1 -1
- package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +0 -1
- package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +0 -1
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts +0 -312
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts.map +0 -1
|
@@ -284,7 +284,9 @@ export type ErrorType = (typeof ErrorType)[keyof typeof ErrorType];
|
|
|
284
284
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
285
285
|
export const ErrorType = {
|
|
286
286
|
already_exists: "already_exists",
|
|
287
|
+
authorization_expired: "authorization_expired",
|
|
287
288
|
bad_gateway: "bad_gateway",
|
|
289
|
+
capture_expired: "capture_expired",
|
|
288
290
|
client_closed_request: "client_closed_request",
|
|
289
291
|
faucet_limit_exceeded: "faucet_limit_exceeded",
|
|
290
292
|
forbidden: "forbidden",
|
|
@@ -315,6 +317,7 @@ export const ErrorType = {
|
|
|
315
317
|
document_verification_failed: "document_verification_failed",
|
|
316
318
|
recipient_allowlist_violation: "recipient_allowlist_violation",
|
|
317
319
|
recipient_allowlist_pending: "recipient_allowlist_pending",
|
|
320
|
+
refund_expired: "refund_expired",
|
|
318
321
|
travel_rules_recipient_violation: "travel_rules_recipient_violation",
|
|
319
322
|
source_account_invalid: "source_account_invalid",
|
|
320
323
|
target_account_invalid: "target_account_invalid",
|
|
@@ -367,26 +370,12 @@ export interface Error {
|
|
|
367
370
|
errorLink?: Url;
|
|
368
371
|
}
|
|
369
372
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* An optional name for the account.
|
|
378
|
-
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
379
|
-
Account names are guaranteed to be unique across all EVM accounts in the developer's CDP Project.
|
|
380
|
-
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
381
|
-
*/
|
|
382
|
-
name?: string;
|
|
383
|
-
/** The list of policy IDs that apply to the account. This will include both the project-level policy and the account-level policy, if one exists. */
|
|
384
|
-
policies?: string[];
|
|
385
|
-
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
386
|
-
createdAt?: string;
|
|
387
|
-
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
388
|
-
updatedAt?: string;
|
|
389
|
-
}
|
|
373
|
+
/**
|
|
374
|
+
* The symbol of the asset (e.g., eth, usd, usdc, usdt).
|
|
375
|
+
* @minLength 1
|
|
376
|
+
* @maxLength 42
|
|
377
|
+
*/
|
|
378
|
+
export type Asset = string;
|
|
390
379
|
|
|
391
380
|
/**
|
|
392
381
|
* The domain of the EIP-712 typed data.
|
|
@@ -453,67 +442,6 @@ export const EvmEip7702DelegationNetwork = {
|
|
|
453
442
|
"ethereum-sepolia": "ethereum-sepolia",
|
|
454
443
|
} as const;
|
|
455
444
|
|
|
456
|
-
/**
|
|
457
|
-
* The current status of the delegation operation.
|
|
458
|
-
UNSPECIFIED means the status has not been set. PENDING means the operation has been created but not yet submitted. SUBMITTED means the operation has been submitted to the network. COMPLETED means the operation has completed successfully. FAILED means the operation has failed.
|
|
459
|
-
*/
|
|
460
|
-
export type EvmEip7702DelegationOperationStatus =
|
|
461
|
-
(typeof EvmEip7702DelegationOperationStatus)[keyof typeof EvmEip7702DelegationOperationStatus];
|
|
462
|
-
|
|
463
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
464
|
-
export const EvmEip7702DelegationOperationStatus = {
|
|
465
|
-
UNSPECIFIED: "UNSPECIFIED",
|
|
466
|
-
PENDING: "PENDING",
|
|
467
|
-
SUBMITTED: "SUBMITTED",
|
|
468
|
-
COMPLETED: "COMPLETED",
|
|
469
|
-
FAILED: "FAILED",
|
|
470
|
-
} as const;
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* The status of an EIP-7702 delegation operation.
|
|
474
|
-
*/
|
|
475
|
-
export interface EvmEip7702DelegationOperation {
|
|
476
|
-
/** The unique identifier for the delegation operation. */
|
|
477
|
-
delegationOperationId: string;
|
|
478
|
-
/** The current status of the delegation operation.
|
|
479
|
-
UNSPECIFIED means the status has not been set. PENDING means the operation has been created but not yet submitted. SUBMITTED means the operation has been submitted to the network. COMPLETED means the operation has completed successfully. FAILED means the operation has failed. */
|
|
480
|
-
status: EvmEip7702DelegationOperationStatus;
|
|
481
|
-
/**
|
|
482
|
-
* The hash of the delegation transaction, if available. Present once the transaction has been submitted to the network.
|
|
483
|
-
* @pattern ^0x[0-9a-fA-F]{64}$
|
|
484
|
-
*/
|
|
485
|
-
transactionHash?: string;
|
|
486
|
-
network: EvmEip7702DelegationNetwork;
|
|
487
|
-
/**
|
|
488
|
-
* The address the account has delegated to, if any. Only present when the account has an active delegation.
|
|
489
|
-
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
490
|
-
*/
|
|
491
|
-
delegateAddress?: string;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
export interface EvmSmartAccount {
|
|
495
|
-
/**
|
|
496
|
-
* The 0x-prefixed, checksum address of the Smart Account.
|
|
497
|
-
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
498
|
-
*/
|
|
499
|
-
address: string;
|
|
500
|
-
/** Today, only a single owner can be set for a Smart Account, but this is an array to allow having multiple owners in the future. The address is a 0x-prefixed, checksum address. */
|
|
501
|
-
owners: string[];
|
|
502
|
-
/**
|
|
503
|
-
* An optional name for the account.
|
|
504
|
-
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
505
|
-
Account names are guaranteed to be unique across all Smart Accounts in the developer's CDP Project.
|
|
506
|
-
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
507
|
-
*/
|
|
508
|
-
name?: string;
|
|
509
|
-
/** The list of policy IDs that apply to the smart account. This will include both the project-level policy and the account-level policy, if one exists. */
|
|
510
|
-
policies?: string[];
|
|
511
|
-
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
512
|
-
createdAt?: string;
|
|
513
|
-
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
514
|
-
updatedAt?: string;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
445
|
/**
|
|
518
446
|
* The network the user operation is for.
|
|
519
447
|
*/
|
|
@@ -621,6 +549,88 @@ export interface EvmUserOperation {
|
|
|
621
549
|
receipts?: UserOperationReceipt[];
|
|
622
550
|
}
|
|
623
551
|
|
|
552
|
+
export interface EvmAccount {
|
|
553
|
+
/**
|
|
554
|
+
* The 0x-prefixed, checksum EVM address.
|
|
555
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
556
|
+
*/
|
|
557
|
+
address: string;
|
|
558
|
+
/**
|
|
559
|
+
* An optional name for the account.
|
|
560
|
+
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
561
|
+
Account names are guaranteed to be unique across all EVM accounts in the developer's CDP Project.
|
|
562
|
+
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
563
|
+
*/
|
|
564
|
+
name?: string;
|
|
565
|
+
/** The list of policy IDs that apply to the account. This will include both the project-level policy and the account-level policy, if one exists. */
|
|
566
|
+
policies?: string[];
|
|
567
|
+
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
568
|
+
createdAt?: string;
|
|
569
|
+
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
570
|
+
updatedAt?: string;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* The current status of the delegation operation.
|
|
575
|
+
UNSPECIFIED means the status has not been set. PENDING means the operation has been created but not yet submitted. SUBMITTED means the operation has been submitted to the network. COMPLETED means the operation has completed successfully. FAILED means the operation has failed.
|
|
576
|
+
*/
|
|
577
|
+
export type EvmEip7702DelegationOperationStatus =
|
|
578
|
+
(typeof EvmEip7702DelegationOperationStatus)[keyof typeof EvmEip7702DelegationOperationStatus];
|
|
579
|
+
|
|
580
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
581
|
+
export const EvmEip7702DelegationOperationStatus = {
|
|
582
|
+
UNSPECIFIED: "UNSPECIFIED",
|
|
583
|
+
PENDING: "PENDING",
|
|
584
|
+
SUBMITTED: "SUBMITTED",
|
|
585
|
+
COMPLETED: "COMPLETED",
|
|
586
|
+
FAILED: "FAILED",
|
|
587
|
+
} as const;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* The status of an EIP-7702 delegation operation.
|
|
591
|
+
*/
|
|
592
|
+
export interface EvmEip7702DelegationOperation {
|
|
593
|
+
/** The unique identifier for the delegation operation. */
|
|
594
|
+
delegationOperationId: string;
|
|
595
|
+
/** The current status of the delegation operation.
|
|
596
|
+
UNSPECIFIED means the status has not been set. PENDING means the operation has been created but not yet submitted. SUBMITTED means the operation has been submitted to the network. COMPLETED means the operation has completed successfully. FAILED means the operation has failed. */
|
|
597
|
+
status: EvmEip7702DelegationOperationStatus;
|
|
598
|
+
/**
|
|
599
|
+
* The hash of the delegation transaction, if available. Present once the transaction has been submitted to the network.
|
|
600
|
+
* @pattern ^0x[0-9a-fA-F]{64}$
|
|
601
|
+
*/
|
|
602
|
+
transactionHash?: string;
|
|
603
|
+
network: EvmEip7702DelegationNetwork;
|
|
604
|
+
/**
|
|
605
|
+
* The address the account has delegated to, if any. Only present when the account has an active delegation.
|
|
606
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
607
|
+
*/
|
|
608
|
+
delegateAddress?: string;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
export interface EvmSmartAccount {
|
|
612
|
+
/**
|
|
613
|
+
* The 0x-prefixed, checksum address of the Smart Account.
|
|
614
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
615
|
+
*/
|
|
616
|
+
address: string;
|
|
617
|
+
/** Today, only a single owner can be set for a Smart Account, but this is an array to allow having multiple owners in the future. The address is a 0x-prefixed, checksum address. */
|
|
618
|
+
owners: string[];
|
|
619
|
+
/**
|
|
620
|
+
* An optional name for the account.
|
|
621
|
+
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
622
|
+
Account names are guaranteed to be unique across all Smart Accounts in the developer's CDP Project.
|
|
623
|
+
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
624
|
+
*/
|
|
625
|
+
name?: string;
|
|
626
|
+
/** The list of policy IDs that apply to the smart account. This will include both the project-level policy and the account-level policy, if one exists. */
|
|
627
|
+
policies?: string[];
|
|
628
|
+
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
629
|
+
createdAt?: string;
|
|
630
|
+
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
631
|
+
updatedAt?: string;
|
|
632
|
+
}
|
|
633
|
+
|
|
624
634
|
/**
|
|
625
635
|
* The network the spend permission is on.
|
|
626
636
|
*/
|
|
@@ -1439,8 +1449,11 @@ export const EvmNetworkCriterionNetworksItem = {
|
|
|
1439
1449
|
polygon: "polygon",
|
|
1440
1450
|
optimism: "optimism",
|
|
1441
1451
|
arbitrum: "arbitrum",
|
|
1452
|
+
"arbitrum-sepolia": "arbitrum-sepolia",
|
|
1442
1453
|
zora: "zora",
|
|
1443
1454
|
bnb: "bnb",
|
|
1455
|
+
world: "world",
|
|
1456
|
+
"world-sepolia": "world-sepolia",
|
|
1444
1457
|
} as const;
|
|
1445
1458
|
|
|
1446
1459
|
/**
|
|
@@ -3116,9 +3129,9 @@ export interface WebhookSubscriptionResponse {
|
|
|
3116
3129
|
updatedAt?: string;
|
|
3117
3130
|
/** Description of the webhook subscription. */
|
|
3118
3131
|
description?: Description;
|
|
3119
|
-
/** Types of events to subscribe to. Event types follow a
|
|
3132
|
+
/** Types of events to subscribe to. Event types follow a dot-separated format:
|
|
3120
3133
|
service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created",
|
|
3121
|
-
"acceptance.payment_session").
|
|
3134
|
+
"acceptance.payment_session.authorization_succeeded").
|
|
3122
3135
|
*/
|
|
3123
3136
|
eventTypes: string[];
|
|
3124
3137
|
/** Whether the subscription is enabled. */
|
|
@@ -3165,9 +3178,9 @@ export type WebhookSubscriptionRequestLabels = { [key: string]: string };
|
|
|
3165
3178
|
export interface WebhookSubscriptionRequest {
|
|
3166
3179
|
/** Description of the webhook subscription. */
|
|
3167
3180
|
description?: Description;
|
|
3168
|
-
/** Types of events to subscribe to. Event types follow a
|
|
3181
|
+
/** Types of events to subscribe to. Event types follow a dot-separated format:
|
|
3169
3182
|
service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created",
|
|
3170
|
-
"acceptance.payment_session").
|
|
3183
|
+
"acceptance.payment_session.authorization_succeeded").
|
|
3171
3184
|
The subscription will only receive events matching these types AND the label filter(s).
|
|
3172
3185
|
*/
|
|
3173
3186
|
eventTypes: string[];
|
|
@@ -4241,6 +4254,27 @@ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/i
|
|
|
4241
4254
|
*/
|
|
4242
4255
|
export type IdempotencyKeyParameter = string;
|
|
4243
4256
|
|
|
4257
|
+
/**
|
|
4258
|
+
* A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
4259
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
4260
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
4261
|
+
|
|
4262
|
+
*/
|
|
4263
|
+
export type XWalletAuthOptionalParameter = string;
|
|
4264
|
+
|
|
4265
|
+
/**
|
|
4266
|
+
* A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
4267
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
4268
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
4269
|
+
|
|
4270
|
+
*/
|
|
4271
|
+
export type XDeveloperAuthParameter = string;
|
|
4272
|
+
|
|
4273
|
+
/**
|
|
4274
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
4275
|
+
*/
|
|
4276
|
+
export type ProjectIDOptionalParameter = string;
|
|
4277
|
+
|
|
4244
4278
|
/**
|
|
4245
4279
|
* The number of resources to return per page.
|
|
4246
4280
|
*/
|
|
@@ -4370,6 +4404,435 @@ export type ImportEndUserBody = {
|
|
|
4370
4404
|
keyType: ImportEndUserBodyKeyType;
|
|
4371
4405
|
};
|
|
4372
4406
|
|
|
4407
|
+
export type SignEvmTransactionWithEndUserAccountParams = {
|
|
4408
|
+
/**
|
|
4409
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
4410
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
4411
|
+
*/
|
|
4412
|
+
projectID?: ProjectIDOptionalParameter;
|
|
4413
|
+
};
|
|
4414
|
+
|
|
4415
|
+
export type SignEvmTransactionWithEndUserAccountBody = {
|
|
4416
|
+
/**
|
|
4417
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
4418
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
4419
|
+
*/
|
|
4420
|
+
address: string;
|
|
4421
|
+
/** The RLP-encoded transaction to sign, as a 0x-prefixed hex string. */
|
|
4422
|
+
transaction: string;
|
|
4423
|
+
/**
|
|
4424
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4425
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4426
|
+
*/
|
|
4427
|
+
walletSecretId?: string;
|
|
4428
|
+
};
|
|
4429
|
+
|
|
4430
|
+
export type SignEvmTransactionWithEndUserAccount200 = {
|
|
4431
|
+
/** The RLP-encoded signed transaction, as a 0x-prefixed hex string. */
|
|
4432
|
+
signedTransaction: string;
|
|
4433
|
+
};
|
|
4434
|
+
|
|
4435
|
+
export type SendEvmTransactionWithEndUserAccountParams = {
|
|
4436
|
+
/**
|
|
4437
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
4438
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
4439
|
+
*/
|
|
4440
|
+
projectID?: ProjectIDOptionalParameter;
|
|
4441
|
+
};
|
|
4442
|
+
|
|
4443
|
+
/**
|
|
4444
|
+
* The network to send the transaction to.
|
|
4445
|
+
*/
|
|
4446
|
+
export type SendEvmTransactionWithEndUserAccountBodyNetwork =
|
|
4447
|
+
(typeof SendEvmTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendEvmTransactionWithEndUserAccountBodyNetwork];
|
|
4448
|
+
|
|
4449
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
4450
|
+
export const SendEvmTransactionWithEndUserAccountBodyNetwork = {
|
|
4451
|
+
base: "base",
|
|
4452
|
+
"base-sepolia": "base-sepolia",
|
|
4453
|
+
ethereum: "ethereum",
|
|
4454
|
+
"ethereum-sepolia": "ethereum-sepolia",
|
|
4455
|
+
avalanche: "avalanche",
|
|
4456
|
+
polygon: "polygon",
|
|
4457
|
+
optimism: "optimism",
|
|
4458
|
+
arbitrum: "arbitrum",
|
|
4459
|
+
"arbitrum-sepolia": "arbitrum-sepolia",
|
|
4460
|
+
world: "world",
|
|
4461
|
+
"world-sepolia": "world-sepolia",
|
|
4462
|
+
} as const;
|
|
4463
|
+
|
|
4464
|
+
export type SendEvmTransactionWithEndUserAccountBody = {
|
|
4465
|
+
/**
|
|
4466
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
4467
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
4468
|
+
*/
|
|
4469
|
+
address: string;
|
|
4470
|
+
/** The network to send the transaction to. */
|
|
4471
|
+
network: SendEvmTransactionWithEndUserAccountBodyNetwork;
|
|
4472
|
+
/**
|
|
4473
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4474
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4475
|
+
*/
|
|
4476
|
+
walletSecretId?: string;
|
|
4477
|
+
/** The RLP-encoded transaction to sign and send, as a 0x-prefixed hex string. */
|
|
4478
|
+
transaction: string;
|
|
4479
|
+
};
|
|
4480
|
+
|
|
4481
|
+
export type SendEvmTransactionWithEndUserAccount200 = {
|
|
4482
|
+
/** The hash of the transaction, as a 0x-prefixed hex string. */
|
|
4483
|
+
transactionHash: string;
|
|
4484
|
+
};
|
|
4485
|
+
|
|
4486
|
+
export type SendEvmAssetWithEndUserAccountParams = {
|
|
4487
|
+
/**
|
|
4488
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
4489
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
4490
|
+
*/
|
|
4491
|
+
projectID?: ProjectIDOptionalParameter;
|
|
4492
|
+
};
|
|
4493
|
+
|
|
4494
|
+
/**
|
|
4495
|
+
* The EVM network to send USDC on.
|
|
4496
|
+
*/
|
|
4497
|
+
export type SendEvmAssetWithEndUserAccountBodyNetwork =
|
|
4498
|
+
(typeof SendEvmAssetWithEndUserAccountBodyNetwork)[keyof typeof SendEvmAssetWithEndUserAccountBodyNetwork];
|
|
4499
|
+
|
|
4500
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
4501
|
+
export const SendEvmAssetWithEndUserAccountBodyNetwork = {
|
|
4502
|
+
base: "base",
|
|
4503
|
+
"base-sepolia": "base-sepolia",
|
|
4504
|
+
ethereum: "ethereum",
|
|
4505
|
+
"ethereum-sepolia": "ethereum-sepolia",
|
|
4506
|
+
avalanche: "avalanche",
|
|
4507
|
+
polygon: "polygon",
|
|
4508
|
+
optimism: "optimism",
|
|
4509
|
+
arbitrum: "arbitrum",
|
|
4510
|
+
"arbitrum-sepolia": "arbitrum-sepolia",
|
|
4511
|
+
world: "world",
|
|
4512
|
+
"world-sepolia": "world-sepolia",
|
|
4513
|
+
} as const;
|
|
4514
|
+
|
|
4515
|
+
export type SendEvmAssetWithEndUserAccountBody = {
|
|
4516
|
+
/**
|
|
4517
|
+
* The 0x-prefixed address of the recipient.
|
|
4518
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
4519
|
+
*/
|
|
4520
|
+
to: BlockchainAddress;
|
|
4521
|
+
/**
|
|
4522
|
+
* The amount of USDC to send as a decimal string (e.g., "1.5" or "25.50").
|
|
4523
|
+
* @minLength 1
|
|
4524
|
+
* @maxLength 32
|
|
4525
|
+
*/
|
|
4526
|
+
amount: string;
|
|
4527
|
+
/** The EVM network to send USDC on. */
|
|
4528
|
+
network: SendEvmAssetWithEndUserAccountBodyNetwork;
|
|
4529
|
+
/** Whether to use CDP Paymaster to sponsor gas fees. Only applicable for EVM Smart Accounts. When true, the transaction gas will be paid by the Paymaster, allowing users to send USDC without holding native gas tokens. Ignored for EOA accounts. Cannot be used together with `paymasterUrl`. */
|
|
4530
|
+
useCdpPaymaster?: boolean;
|
|
4531
|
+
/** Optional custom Paymaster URL to use for gas sponsorship. Only applicable for EVM Smart Accounts. This allows you to use your own Paymaster service instead of CDP's Paymaster. Cannot be used together with `useCdpPaymaster`. */
|
|
4532
|
+
paymasterUrl?: Url;
|
|
4533
|
+
/**
|
|
4534
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4535
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4536
|
+
*/
|
|
4537
|
+
walletSecretId?: string;
|
|
4538
|
+
};
|
|
4539
|
+
|
|
4540
|
+
export type SendEvmAssetWithEndUserAccount200 = {
|
|
4541
|
+
/**
|
|
4542
|
+
* The hash of the transaction, as a 0x-prefixed hex string. Populated for EOA accounts. Null for Smart Accounts (use userOpHash instead).
|
|
4543
|
+
* @nullable
|
|
4544
|
+
*/
|
|
4545
|
+
transactionHash?: string | null;
|
|
4546
|
+
/**
|
|
4547
|
+
* The hash of the user operation, as a 0x-prefixed hex string. Populated for Smart Accounts. Null for EOA accounts (use transactionHash instead).
|
|
4548
|
+
* @nullable
|
|
4549
|
+
*/
|
|
4550
|
+
userOpHash?: string | null;
|
|
4551
|
+
};
|
|
4552
|
+
|
|
4553
|
+
export type SignEvmMessageWithEndUserAccountParams = {
|
|
4554
|
+
/**
|
|
4555
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
4556
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
4557
|
+
*/
|
|
4558
|
+
projectID?: ProjectIDOptionalParameter;
|
|
4559
|
+
};
|
|
4560
|
+
|
|
4561
|
+
export type SignEvmMessageWithEndUserAccountBody = {
|
|
4562
|
+
/**
|
|
4563
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
4564
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
4565
|
+
*/
|
|
4566
|
+
address: string;
|
|
4567
|
+
/** The message to sign. */
|
|
4568
|
+
message: string;
|
|
4569
|
+
/**
|
|
4570
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4571
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4572
|
+
*/
|
|
4573
|
+
walletSecretId?: string;
|
|
4574
|
+
};
|
|
4575
|
+
|
|
4576
|
+
export type SignEvmMessageWithEndUserAccount200 = {
|
|
4577
|
+
/** The signature of the message, as a 0x-prefixed hex string. */
|
|
4578
|
+
signature: string;
|
|
4579
|
+
};
|
|
4580
|
+
|
|
4581
|
+
export type SignEvmTypedDataWithEndUserAccountParams = {
|
|
4582
|
+
/**
|
|
4583
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
4584
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
4585
|
+
*/
|
|
4586
|
+
projectID?: ProjectIDOptionalParameter;
|
|
4587
|
+
};
|
|
4588
|
+
|
|
4589
|
+
export type SignEvmTypedDataWithEndUserAccountBody = {
|
|
4590
|
+
/**
|
|
4591
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
4592
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
4593
|
+
*/
|
|
4594
|
+
address: string;
|
|
4595
|
+
typedData: EIP712Message;
|
|
4596
|
+
/**
|
|
4597
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4598
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4599
|
+
*/
|
|
4600
|
+
walletSecretId?: string;
|
|
4601
|
+
};
|
|
4602
|
+
|
|
4603
|
+
export type SignEvmTypedDataWithEndUserAccount200 = {
|
|
4604
|
+
/** The signature of the typed data, as a 0x-prefixed hex string. */
|
|
4605
|
+
signature: string;
|
|
4606
|
+
};
|
|
4607
|
+
|
|
4608
|
+
export type GetDelegationForEndUserParams = {
|
|
4609
|
+
/**
|
|
4610
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
4611
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
4612
|
+
*/
|
|
4613
|
+
projectID?: ProjectIDOptionalParameter;
|
|
4614
|
+
};
|
|
4615
|
+
|
|
4616
|
+
export type GetDelegationForEndUser200 = {
|
|
4617
|
+
/** The date until which the delegation is valid. */
|
|
4618
|
+
expiresAt: string;
|
|
4619
|
+
};
|
|
4620
|
+
|
|
4621
|
+
export type RevokeDelegationForEndUserBody = {
|
|
4622
|
+
/**
|
|
4623
|
+
* When revoking with a wallet authentication scheme, the ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4624
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4625
|
+
*/
|
|
4626
|
+
walletSecretId?: string;
|
|
4627
|
+
};
|
|
4628
|
+
|
|
4629
|
+
export type CreateEvmEip7702DelegationWithEndUserAccountParams = {
|
|
4630
|
+
/**
|
|
4631
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
4632
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
4633
|
+
*/
|
|
4634
|
+
projectID?: ProjectIDOptionalParameter;
|
|
4635
|
+
};
|
|
4636
|
+
|
|
4637
|
+
export type CreateEvmEip7702DelegationWithEndUserAccountBody = {
|
|
4638
|
+
/**
|
|
4639
|
+
* The 0x-prefixed address of the EVM account to delegate.
|
|
4640
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
4641
|
+
*/
|
|
4642
|
+
address: string;
|
|
4643
|
+
network: EvmEip7702DelegationNetwork;
|
|
4644
|
+
/** Whether to configure spend permissions for the upgraded, delegated account. When enabled, the account can grant permissions for third parties to spend on its behalf. */
|
|
4645
|
+
enableSpendPermissions?: boolean;
|
|
4646
|
+
/**
|
|
4647
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4648
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4649
|
+
*/
|
|
4650
|
+
walletSecretId?: string;
|
|
4651
|
+
};
|
|
4652
|
+
|
|
4653
|
+
export type CreateEvmEip7702DelegationWithEndUserAccount201 = {
|
|
4654
|
+
/** The unique identifier for the delegation operation. Use this to poll the operation status. */
|
|
4655
|
+
delegationOperationId: string;
|
|
4656
|
+
};
|
|
4657
|
+
|
|
4658
|
+
export type SendUserOperationWithEndUserAccountParams = {
|
|
4659
|
+
/**
|
|
4660
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
4661
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
4662
|
+
*/
|
|
4663
|
+
projectID?: ProjectIDOptionalParameter;
|
|
4664
|
+
};
|
|
4665
|
+
|
|
4666
|
+
export type SendUserOperationWithEndUserAccountBody = {
|
|
4667
|
+
network: EvmUserOperationNetwork;
|
|
4668
|
+
/** The list of calls to make from the Smart Account. */
|
|
4669
|
+
calls: EvmCall[];
|
|
4670
|
+
/** Whether to use the CDP Paymaster for the user operation. */
|
|
4671
|
+
useCdpPaymaster: boolean;
|
|
4672
|
+
/** The URL of the paymaster to use for the user operation. If using the CDP Paymaster, use the `useCdpPaymaster` option. */
|
|
4673
|
+
paymasterUrl?: Url;
|
|
4674
|
+
/**
|
|
4675
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4676
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4677
|
+
*/
|
|
4678
|
+
walletSecretId?: string;
|
|
4679
|
+
/**
|
|
4680
|
+
* The EIP-8021 data suffix (hex-encoded) that enables transaction attribution for the user operation.
|
|
4681
|
+
* @pattern ^0x[0-9a-fA-F]+$
|
|
4682
|
+
*/
|
|
4683
|
+
dataSuffix?: string;
|
|
4684
|
+
};
|
|
4685
|
+
|
|
4686
|
+
export type SignSolanaMessageWithEndUserAccountParams = {
|
|
4687
|
+
/**
|
|
4688
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
4689
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
4690
|
+
*/
|
|
4691
|
+
projectID?: ProjectIDOptionalParameter;
|
|
4692
|
+
};
|
|
4693
|
+
|
|
4694
|
+
export type SignSolanaMessageWithEndUserAccountBody = {
|
|
4695
|
+
/**
|
|
4696
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
4697
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
4698
|
+
*/
|
|
4699
|
+
address: string;
|
|
4700
|
+
/** The base64 encoded arbitrary message to sign. */
|
|
4701
|
+
message: string;
|
|
4702
|
+
/**
|
|
4703
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4704
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4705
|
+
*/
|
|
4706
|
+
walletSecretId?: string;
|
|
4707
|
+
};
|
|
4708
|
+
|
|
4709
|
+
export type SignSolanaMessageWithEndUserAccount200 = {
|
|
4710
|
+
/** The signature of the message, as a base58 encoded string. */
|
|
4711
|
+
signature: string;
|
|
4712
|
+
};
|
|
4713
|
+
|
|
4714
|
+
export type SignSolanaTransactionWithEndUserAccountParams = {
|
|
4715
|
+
/**
|
|
4716
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
4717
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
4718
|
+
*/
|
|
4719
|
+
projectID?: ProjectIDOptionalParameter;
|
|
4720
|
+
};
|
|
4721
|
+
|
|
4722
|
+
export type SignSolanaTransactionWithEndUserAccountBody = {
|
|
4723
|
+
/**
|
|
4724
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
4725
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
4726
|
+
*/
|
|
4727
|
+
address: string;
|
|
4728
|
+
/** The base64 encoded transaction to sign. */
|
|
4729
|
+
transaction: string;
|
|
4730
|
+
/**
|
|
4731
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4732
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4733
|
+
*/
|
|
4734
|
+
walletSecretId?: string;
|
|
4735
|
+
};
|
|
4736
|
+
|
|
4737
|
+
export type SignSolanaTransactionWithEndUserAccount200 = {
|
|
4738
|
+
/** The base64 encoded signed transaction. */
|
|
4739
|
+
signedTransaction: string;
|
|
4740
|
+
};
|
|
4741
|
+
|
|
4742
|
+
export type SendSolanaTransactionWithEndUserAccountParams = {
|
|
4743
|
+
/**
|
|
4744
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
4745
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
4746
|
+
*/
|
|
4747
|
+
projectID?: ProjectIDOptionalParameter;
|
|
4748
|
+
};
|
|
4749
|
+
|
|
4750
|
+
/**
|
|
4751
|
+
* The Solana network to send the transaction to.
|
|
4752
|
+
*/
|
|
4753
|
+
export type SendSolanaTransactionWithEndUserAccountBodyNetwork =
|
|
4754
|
+
(typeof SendSolanaTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaTransactionWithEndUserAccountBodyNetwork];
|
|
4755
|
+
|
|
4756
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
4757
|
+
export const SendSolanaTransactionWithEndUserAccountBodyNetwork = {
|
|
4758
|
+
solana: "solana",
|
|
4759
|
+
"solana-devnet": "solana-devnet",
|
|
4760
|
+
} as const;
|
|
4761
|
+
|
|
4762
|
+
export type SendSolanaTransactionWithEndUserAccountBody = {
|
|
4763
|
+
/**
|
|
4764
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
4765
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
4766
|
+
*/
|
|
4767
|
+
address: string;
|
|
4768
|
+
/** The Solana network to send the transaction to. */
|
|
4769
|
+
network: SendSolanaTransactionWithEndUserAccountBodyNetwork;
|
|
4770
|
+
/**
|
|
4771
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4772
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4773
|
+
*/
|
|
4774
|
+
walletSecretId?: string;
|
|
4775
|
+
/** The base64 encoded transaction to sign and send. This transaction can contain multiple instructions for native Solana batching. */
|
|
4776
|
+
transaction: string;
|
|
4777
|
+
/** Whether transaction fees should be sponsored by CDP. When true, CDP sponsors the transaction fees on behalf of the end user. When false, the end user is responsible for paying the transaction fees. */
|
|
4778
|
+
useCdpSponsor?: boolean;
|
|
4779
|
+
};
|
|
4780
|
+
|
|
4781
|
+
export type SendSolanaTransactionWithEndUserAccount200 = {
|
|
4782
|
+
/** The base58 encoded transaction signature. */
|
|
4783
|
+
transactionSignature: string;
|
|
4784
|
+
};
|
|
4785
|
+
|
|
4786
|
+
export type SendSolanaAssetWithEndUserAccountParams = {
|
|
4787
|
+
/**
|
|
4788
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
4789
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
4790
|
+
*/
|
|
4791
|
+
projectID?: ProjectIDOptionalParameter;
|
|
4792
|
+
};
|
|
4793
|
+
|
|
4794
|
+
/**
|
|
4795
|
+
* The Solana network to send USDC on.
|
|
4796
|
+
*/
|
|
4797
|
+
export type SendSolanaAssetWithEndUserAccountBodyNetwork =
|
|
4798
|
+
(typeof SendSolanaAssetWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaAssetWithEndUserAccountBodyNetwork];
|
|
4799
|
+
|
|
4800
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
4801
|
+
export const SendSolanaAssetWithEndUserAccountBodyNetwork = {
|
|
4802
|
+
solana: "solana",
|
|
4803
|
+
"solana-devnet": "solana-devnet",
|
|
4804
|
+
} as const;
|
|
4805
|
+
|
|
4806
|
+
export type SendSolanaAssetWithEndUserAccountBody = {
|
|
4807
|
+
/**
|
|
4808
|
+
* The base58 encoded address of the recipient.
|
|
4809
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
4810
|
+
*/
|
|
4811
|
+
to: BlockchainAddress;
|
|
4812
|
+
/**
|
|
4813
|
+
* The amount of USDC to send as a decimal string (e.g., "1.5" or "25.50").
|
|
4814
|
+
* @minLength 1
|
|
4815
|
+
* @maxLength 32
|
|
4816
|
+
*/
|
|
4817
|
+
amount: string;
|
|
4818
|
+
/** The Solana network to send USDC on. */
|
|
4819
|
+
network: SendSolanaAssetWithEndUserAccountBodyNetwork;
|
|
4820
|
+
/** Whether to automatically create an Associated Token Account (ATA) for the recipient if it doesn't exist. When true, the sender pays the rent-exempt minimum to create the recipient's USDC ATA. When false, the transaction will fail if the recipient doesn't have a USDC ATA. */
|
|
4821
|
+
createRecipientAta?: boolean;
|
|
4822
|
+
/**
|
|
4823
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4824
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4825
|
+
*/
|
|
4826
|
+
walletSecretId?: string;
|
|
4827
|
+
/** Whether transaction fees should be sponsored by CDP. When true, CDP sponsors the transaction fees on behalf of the end user. When false, the end user is responsible for paying the transaction fees. */
|
|
4828
|
+
useCdpSponsor?: boolean;
|
|
4829
|
+
};
|
|
4830
|
+
|
|
4831
|
+
export type SendSolanaAssetWithEndUserAccount200 = {
|
|
4832
|
+
/** The base58 encoded transaction signature. */
|
|
4833
|
+
transactionSignature: string;
|
|
4834
|
+
};
|
|
4835
|
+
|
|
4373
4836
|
export type ListEvmAccountsParams = {
|
|
4374
4837
|
/**
|
|
4375
4838
|
* The number of resources to return per page.
|
|
@@ -4434,6 +4897,9 @@ export const SendEvmTransactionBodyNetwork = {
|
|
|
4434
4897
|
polygon: "polygon",
|
|
4435
4898
|
optimism: "optimism",
|
|
4436
4899
|
arbitrum: "arbitrum",
|
|
4900
|
+
"arbitrum-sepolia": "arbitrum-sepolia",
|
|
4901
|
+
world: "world",
|
|
4902
|
+
"world-sepolia": "world-sepolia",
|
|
4437
4903
|
} as const;
|
|
4438
4904
|
|
|
4439
4905
|
export type SendEvmTransactionBody = {
|