@coinbase/cdp-sdk 1.47.0 → 1.48.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 +8 -0
- package/README.md +282 -0
- package/_cjs/client/cdp.js +1 -4
- package/_cjs/client/cdp.js.map +1 -1
- package/_cjs/client/end-user/endUser.js +19 -89
- package/_cjs/client/end-user/endUser.js.map +1 -1
- package/_cjs/client/end-user/toEndUserAccount.js +13 -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 +54 -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} +37 -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/client/cdp.js +2 -5
- package/_esm/client/cdp.js.map +1 -1
- package/_esm/client/end-user/endUser.js +17 -87
- package/_esm/client/end-user/endUser.js.map +1 -1
- package/_esm/client/end-user/toEndUserAccount.js +13 -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 +52 -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} +36 -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/client/cdp.d.ts +2 -6
- package/_types/client/cdp.d.ts.map +1 -1
- package/_types/client/end-user/endUser.d.ts +2 -52
- package/_types/client/end-user/endUser.d.ts.map +1 -1
- package/_types/client/end-user/endUser.types.d.ts +1 -63
- 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 +476 -79
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts +145 -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 +13 -45
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/client/cdp.ts +3 -8
- package/client/end-user/endUser.ts +55 -187
- package/client/end-user/endUser.types.ts +0 -72
- package/client/end-user/toEndUserAccount.ts +57 -152
- package/index.ts +0 -4
- package/openapi-client/cdpApiClient.ts +0 -34
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +535 -85
- package/openapi-client/generated/{embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts → embedded-wallets/embedded-wallets.ts} +67 -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
package/_types/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { CreatePolicyBodySchema, UpdatePolicyBodySchema, type CreatePolicyBody,
|
|
|
7
7
|
export { NetworkError } from "./openapi-client/errors.js";
|
|
8
8
|
export type { SpendPermission, SpendPermissionInput } from "./spend-permissions/types.js";
|
|
9
9
|
export type { SpendPermissionNetwork, ListEndUsers200, EndUser } from "./openapi-client/index.js";
|
|
10
|
-
export type { ListEndUsersOptions, EndUserAccount, RevokeDelegationForEndUserOptions,
|
|
10
|
+
export type { ListEndUsersOptions, EndUserAccount, RevokeDelegationForEndUserOptions, SignEvmTransactionOptions, SignEvmTransactionResult, SignEvmMessageOptions, SignEvmMessageResult, SignEvmTypedDataOptions, SignEvmTypedDataResult, SendEvmTransactionOptions, SendEvmTransactionResult, SendEvmAssetOptions, SendEvmAssetResult, SendUserOperationOptions, SendUserOperationResult, CreateEvmEip7702DelegationOptions as CreateEvmEip7702DelegationForEndUserOptions, CreateEvmEip7702DelegationForEndUserResult, SignSolanaMessageOptions, SignSolanaMessageResult, SignSolanaTransactionOptions, SignSolanaTransactionResult, SendSolanaTransactionOptions, SendSolanaTransactionResult, SendSolanaAssetOptions, SendSolanaAssetResult, } from "./client/end-user/endUser.types.js";
|
|
11
11
|
export { SPEND_PERMISSION_MANAGER_ABI as spendPermissionManagerAbi, SPEND_PERMISSION_MANAGER_ADDRESS as spendPermissionManagerAddress, } from "./spend-permissions/constants.js";
|
|
12
12
|
export type { CreateWebhookSubscriptionOptions, CreateWebhookSubscriptionResult, WebhookEventType, } from "./actions/webhooks/index.js";
|
|
13
13
|
export { parseEther, parseUnits } from "viem";
|
package/_types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACjF,YAAY,EACV,gCAAgC,EAChC,iDAAiD,GAClD,MAAM,2BAA2B,CAAC;AACnC,YAAY,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC1F,YAAY,EAAE,sBAAsB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAClG,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,iCAAiC,EACjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACjF,YAAY,EACV,gCAAgC,EAChC,iDAAiD,GAClD,MAAM,2BAA2B,CAAC;AACnC,YAAY,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC1F,YAAY,EAAE,sBAAsB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAClG,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,iCAAiC,EACjC,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,mBAAmB,EACnB,kBAAkB,EAClB,wBAAwB,EACxB,uBAAuB,EACvB,iCAAiC,IAAI,2CAA2C,EAChF,0CAA0C,EAC1C,wBAAwB,EACxB,uBAAuB,EACvB,4BAA4B,EAC5B,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC3B,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,4BAA4B,IAAI,yBAAyB,EACzD,gCAAgC,IAAI,6BAA6B,GAClE,MAAM,kCAAkC,CAAC;AAE1C,YAAY,EACV,gCAAgC,EAChC,+BAA+B,EAC/B,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdpApiClient.d.ts","sourceRoot":"","sources":["../../openapi-client/cdpApiClient.ts"],"names":[],"mappings":"AACA,OAAc,EAAiB,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAQjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,2FAA2F;IAC3F,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAIF,eAAO,IAAI,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,SACxE,CAAC;AAEZ;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,SAAS,UAAU,
|
|
1
|
+
{"version":3,"file":"cdpApiClient.d.ts","sourceRoot":"","sources":["../../openapi-client/cdpApiClient.ts"],"names":[],"mappings":"AACA,OAAc,EAAiB,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAQjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,2FAA2F;IAC3F,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAIF,eAAO,IAAI,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,SACxE,CAAC;AAEZ;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,SAAS,UAAU,SAyB5C,CAAC;AA0BF;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,GAAU,CAAC,EAClC,QAAQ,kBAAkB,EAC1B,iBAAiB,MAAM,KACtB,OAAO,CAAC,CAAC,CAsLX,CAAC"}
|
|
@@ -320,26 +320,12 @@ export interface Error {
|
|
|
320
320
|
/** A link to the corresponding error documentation. */
|
|
321
321
|
errorLink?: Url;
|
|
322
322
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* An optional name for the account.
|
|
331
|
-
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
332
|
-
Account names are guaranteed to be unique across all EVM accounts in the developer's CDP Project.
|
|
333
|
-
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
334
|
-
*/
|
|
335
|
-
name?: string;
|
|
336
|
-
/** 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. */
|
|
337
|
-
policies?: string[];
|
|
338
|
-
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
339
|
-
createdAt?: string;
|
|
340
|
-
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
341
|
-
updatedAt?: string;
|
|
342
|
-
}
|
|
323
|
+
/**
|
|
324
|
+
* The symbol of the asset (e.g., eth, usd, usdc, usdt).
|
|
325
|
+
* @minLength 1
|
|
326
|
+
* @maxLength 42
|
|
327
|
+
*/
|
|
328
|
+
export type Asset = string;
|
|
343
329
|
/**
|
|
344
330
|
* The domain of the EIP-712 typed data.
|
|
345
331
|
*/
|
|
@@ -399,61 +385,6 @@ export declare const EvmEip7702DelegationNetwork: {
|
|
|
399
385
|
readonly ethereum: "ethereum";
|
|
400
386
|
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
401
387
|
};
|
|
402
|
-
/**
|
|
403
|
-
* The current status of the delegation operation.
|
|
404
|
-
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.
|
|
405
|
-
*/
|
|
406
|
-
export type EvmEip7702DelegationOperationStatus = (typeof EvmEip7702DelegationOperationStatus)[keyof typeof EvmEip7702DelegationOperationStatus];
|
|
407
|
-
export declare const EvmEip7702DelegationOperationStatus: {
|
|
408
|
-
readonly UNSPECIFIED: "UNSPECIFIED";
|
|
409
|
-
readonly PENDING: "PENDING";
|
|
410
|
-
readonly SUBMITTED: "SUBMITTED";
|
|
411
|
-
readonly COMPLETED: "COMPLETED";
|
|
412
|
-
readonly FAILED: "FAILED";
|
|
413
|
-
};
|
|
414
|
-
/**
|
|
415
|
-
* The status of an EIP-7702 delegation operation.
|
|
416
|
-
*/
|
|
417
|
-
export interface EvmEip7702DelegationOperation {
|
|
418
|
-
/** The unique identifier for the delegation operation. */
|
|
419
|
-
delegationOperationId: string;
|
|
420
|
-
/** The current status of the delegation operation.
|
|
421
|
-
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. */
|
|
422
|
-
status: EvmEip7702DelegationOperationStatus;
|
|
423
|
-
/**
|
|
424
|
-
* The hash of the delegation transaction, if available. Present once the transaction has been submitted to the network.
|
|
425
|
-
* @pattern ^0x[0-9a-fA-F]{64}$
|
|
426
|
-
*/
|
|
427
|
-
transactionHash?: string;
|
|
428
|
-
network: EvmEip7702DelegationNetwork;
|
|
429
|
-
/**
|
|
430
|
-
* The address the account has delegated to, if any. Only present when the account has an active delegation.
|
|
431
|
-
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
432
|
-
*/
|
|
433
|
-
delegateAddress?: string;
|
|
434
|
-
}
|
|
435
|
-
export interface EvmSmartAccount {
|
|
436
|
-
/**
|
|
437
|
-
* The 0x-prefixed, checksum address of the Smart Account.
|
|
438
|
-
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
439
|
-
*/
|
|
440
|
-
address: string;
|
|
441
|
-
/** 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. */
|
|
442
|
-
owners: string[];
|
|
443
|
-
/**
|
|
444
|
-
* An optional name for the account.
|
|
445
|
-
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
446
|
-
Account names are guaranteed to be unique across all Smart Accounts in the developer's CDP Project.
|
|
447
|
-
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
448
|
-
*/
|
|
449
|
-
name?: string;
|
|
450
|
-
/** 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. */
|
|
451
|
-
policies?: string[];
|
|
452
|
-
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
453
|
-
createdAt?: string;
|
|
454
|
-
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
455
|
-
updatedAt?: string;
|
|
456
|
-
}
|
|
457
388
|
/**
|
|
458
389
|
* The network the user operation is for.
|
|
459
390
|
*/
|
|
@@ -549,6 +480,81 @@ export interface EvmUserOperation {
|
|
|
549
480
|
/** The list of receipts associated with the user operation. */
|
|
550
481
|
receipts?: UserOperationReceipt[];
|
|
551
482
|
}
|
|
483
|
+
export interface EvmAccount {
|
|
484
|
+
/**
|
|
485
|
+
* The 0x-prefixed, checksum EVM address.
|
|
486
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
487
|
+
*/
|
|
488
|
+
address: string;
|
|
489
|
+
/**
|
|
490
|
+
* An optional name for the account.
|
|
491
|
+
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
492
|
+
Account names are guaranteed to be unique across all EVM accounts in the developer's CDP Project.
|
|
493
|
+
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
494
|
+
*/
|
|
495
|
+
name?: string;
|
|
496
|
+
/** 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. */
|
|
497
|
+
policies?: string[];
|
|
498
|
+
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
499
|
+
createdAt?: string;
|
|
500
|
+
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
501
|
+
updatedAt?: string;
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* The current status of the delegation operation.
|
|
505
|
+
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.
|
|
506
|
+
*/
|
|
507
|
+
export type EvmEip7702DelegationOperationStatus = (typeof EvmEip7702DelegationOperationStatus)[keyof typeof EvmEip7702DelegationOperationStatus];
|
|
508
|
+
export declare const EvmEip7702DelegationOperationStatus: {
|
|
509
|
+
readonly UNSPECIFIED: "UNSPECIFIED";
|
|
510
|
+
readonly PENDING: "PENDING";
|
|
511
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
512
|
+
readonly COMPLETED: "COMPLETED";
|
|
513
|
+
readonly FAILED: "FAILED";
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
* The status of an EIP-7702 delegation operation.
|
|
517
|
+
*/
|
|
518
|
+
export interface EvmEip7702DelegationOperation {
|
|
519
|
+
/** The unique identifier for the delegation operation. */
|
|
520
|
+
delegationOperationId: string;
|
|
521
|
+
/** The current status of the delegation operation.
|
|
522
|
+
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. */
|
|
523
|
+
status: EvmEip7702DelegationOperationStatus;
|
|
524
|
+
/**
|
|
525
|
+
* The hash of the delegation transaction, if available. Present once the transaction has been submitted to the network.
|
|
526
|
+
* @pattern ^0x[0-9a-fA-F]{64}$
|
|
527
|
+
*/
|
|
528
|
+
transactionHash?: string;
|
|
529
|
+
network: EvmEip7702DelegationNetwork;
|
|
530
|
+
/**
|
|
531
|
+
* The address the account has delegated to, if any. Only present when the account has an active delegation.
|
|
532
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
533
|
+
*/
|
|
534
|
+
delegateAddress?: string;
|
|
535
|
+
}
|
|
536
|
+
export interface EvmSmartAccount {
|
|
537
|
+
/**
|
|
538
|
+
* The 0x-prefixed, checksum address of the Smart Account.
|
|
539
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
540
|
+
*/
|
|
541
|
+
address: string;
|
|
542
|
+
/** 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. */
|
|
543
|
+
owners: string[];
|
|
544
|
+
/**
|
|
545
|
+
* An optional name for the account.
|
|
546
|
+
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
547
|
+
Account names are guaranteed to be unique across all Smart Accounts in the developer's CDP Project.
|
|
548
|
+
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
549
|
+
*/
|
|
550
|
+
name?: string;
|
|
551
|
+
/** 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. */
|
|
552
|
+
policies?: string[];
|
|
553
|
+
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
554
|
+
createdAt?: string;
|
|
555
|
+
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
556
|
+
updatedAt?: string;
|
|
557
|
+
}
|
|
552
558
|
/**
|
|
553
559
|
* The network the spend permission is on.
|
|
554
560
|
*/
|
|
@@ -1242,8 +1248,11 @@ export declare const EvmNetworkCriterionNetworksItem: {
|
|
|
1242
1248
|
readonly polygon: "polygon";
|
|
1243
1249
|
readonly optimism: "optimism";
|
|
1244
1250
|
readonly arbitrum: "arbitrum";
|
|
1251
|
+
readonly "arbitrum-sepolia": "arbitrum-sepolia";
|
|
1245
1252
|
readonly zora: "zora";
|
|
1246
1253
|
readonly bnb: "bnb";
|
|
1254
|
+
readonly world: "world";
|
|
1255
|
+
readonly "world-sepolia": "world-sepolia";
|
|
1247
1256
|
};
|
|
1248
1257
|
/**
|
|
1249
1258
|
* The operator to use for the comparison. The transaction's intended `network` will be on the left-hand side of the operator, and the `networks` field will be on the right-hand side.
|
|
@@ -2496,9 +2505,9 @@ export interface WebhookSubscriptionResponse {
|
|
|
2496
2505
|
updatedAt?: string;
|
|
2497
2506
|
/** Description of the webhook subscription. */
|
|
2498
2507
|
description?: Description;
|
|
2499
|
-
/** Types of events to subscribe to. Event types follow a
|
|
2508
|
+
/** Types of events to subscribe to. Event types follow a dot-separated format:
|
|
2500
2509
|
service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created",
|
|
2501
|
-
"acceptance.payment_session").
|
|
2510
|
+
"acceptance.payment_session.authorization_succeeded").
|
|
2502
2511
|
*/
|
|
2503
2512
|
eventTypes: string[];
|
|
2504
2513
|
/** Whether the subscription is enabled. */
|
|
@@ -2543,9 +2552,9 @@ export type WebhookSubscriptionRequestLabels = {
|
|
|
2543
2552
|
export interface WebhookSubscriptionRequest {
|
|
2544
2553
|
/** Description of the webhook subscription. */
|
|
2545
2554
|
description?: Description;
|
|
2546
|
-
/** Types of events to subscribe to. Event types follow a
|
|
2555
|
+
/** Types of events to subscribe to. Event types follow a dot-separated format:
|
|
2547
2556
|
service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created",
|
|
2548
|
-
"acceptance.payment_session").
|
|
2557
|
+
"acceptance.payment_session.authorization_succeeded").
|
|
2549
2558
|
The subscription will only receive events matching these types AND the label filter(s).
|
|
2550
2559
|
*/
|
|
2551
2560
|
eventTypes: string[];
|
|
@@ -3450,6 +3459,24 @@ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/i
|
|
|
3450
3459
|
|
|
3451
3460
|
*/
|
|
3452
3461
|
export type IdempotencyKeyParameter = string;
|
|
3462
|
+
/**
|
|
3463
|
+
* A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
3464
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
3465
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
3466
|
+
|
|
3467
|
+
*/
|
|
3468
|
+
export type XWalletAuthOptionalParameter = string;
|
|
3469
|
+
/**
|
|
3470
|
+
* A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
3471
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
3472
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
3473
|
+
|
|
3474
|
+
*/
|
|
3475
|
+
export type XDeveloperAuthParameter = string;
|
|
3476
|
+
/**
|
|
3477
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
3478
|
+
*/
|
|
3479
|
+
export type ProjectIDOptionalParameter = string;
|
|
3453
3480
|
/**
|
|
3454
3481
|
* The number of resources to return per page.
|
|
3455
3482
|
*/
|
|
@@ -3560,6 +3587,373 @@ export type ImportEndUserBody = {
|
|
|
3560
3587
|
/** The type of key being imported. Determines what type of account will be associated for the end user. */
|
|
3561
3588
|
keyType: ImportEndUserBodyKeyType;
|
|
3562
3589
|
};
|
|
3590
|
+
export type SignEvmTransactionWithEndUserAccountParams = {
|
|
3591
|
+
/**
|
|
3592
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
3593
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
3594
|
+
*/
|
|
3595
|
+
projectID?: ProjectIDOptionalParameter;
|
|
3596
|
+
};
|
|
3597
|
+
export type SignEvmTransactionWithEndUserAccountBody = {
|
|
3598
|
+
/**
|
|
3599
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
3600
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3601
|
+
*/
|
|
3602
|
+
address: string;
|
|
3603
|
+
/** The RLP-encoded transaction to sign, as a 0x-prefixed hex string. */
|
|
3604
|
+
transaction: string;
|
|
3605
|
+
/**
|
|
3606
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3607
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3608
|
+
*/
|
|
3609
|
+
walletSecretId?: string;
|
|
3610
|
+
};
|
|
3611
|
+
export type SignEvmTransactionWithEndUserAccount200 = {
|
|
3612
|
+
/** The RLP-encoded signed transaction, as a 0x-prefixed hex string. */
|
|
3613
|
+
signedTransaction: string;
|
|
3614
|
+
};
|
|
3615
|
+
export type SendEvmTransactionWithEndUserAccountParams = {
|
|
3616
|
+
/**
|
|
3617
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
3618
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
3619
|
+
*/
|
|
3620
|
+
projectID?: ProjectIDOptionalParameter;
|
|
3621
|
+
};
|
|
3622
|
+
/**
|
|
3623
|
+
* The network to send the transaction to.
|
|
3624
|
+
*/
|
|
3625
|
+
export type SendEvmTransactionWithEndUserAccountBodyNetwork = (typeof SendEvmTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendEvmTransactionWithEndUserAccountBodyNetwork];
|
|
3626
|
+
export declare const SendEvmTransactionWithEndUserAccountBodyNetwork: {
|
|
3627
|
+
readonly base: "base";
|
|
3628
|
+
readonly "base-sepolia": "base-sepolia";
|
|
3629
|
+
readonly ethereum: "ethereum";
|
|
3630
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
3631
|
+
readonly avalanche: "avalanche";
|
|
3632
|
+
readonly polygon: "polygon";
|
|
3633
|
+
readonly optimism: "optimism";
|
|
3634
|
+
readonly arbitrum: "arbitrum";
|
|
3635
|
+
readonly "arbitrum-sepolia": "arbitrum-sepolia";
|
|
3636
|
+
readonly world: "world";
|
|
3637
|
+
readonly "world-sepolia": "world-sepolia";
|
|
3638
|
+
};
|
|
3639
|
+
export type SendEvmTransactionWithEndUserAccountBody = {
|
|
3640
|
+
/**
|
|
3641
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
3642
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3643
|
+
*/
|
|
3644
|
+
address: string;
|
|
3645
|
+
/** The network to send the transaction to. */
|
|
3646
|
+
network: SendEvmTransactionWithEndUserAccountBodyNetwork;
|
|
3647
|
+
/**
|
|
3648
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3649
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3650
|
+
*/
|
|
3651
|
+
walletSecretId?: string;
|
|
3652
|
+
/** The RLP-encoded transaction to sign and send, as a 0x-prefixed hex string. */
|
|
3653
|
+
transaction: string;
|
|
3654
|
+
};
|
|
3655
|
+
export type SendEvmTransactionWithEndUserAccount200 = {
|
|
3656
|
+
/** The hash of the transaction, as a 0x-prefixed hex string. */
|
|
3657
|
+
transactionHash: string;
|
|
3658
|
+
};
|
|
3659
|
+
export type SendEvmAssetWithEndUserAccountParams = {
|
|
3660
|
+
/**
|
|
3661
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
3662
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
3663
|
+
*/
|
|
3664
|
+
projectID?: ProjectIDOptionalParameter;
|
|
3665
|
+
};
|
|
3666
|
+
/**
|
|
3667
|
+
* The EVM network to send USDC on.
|
|
3668
|
+
*/
|
|
3669
|
+
export type SendEvmAssetWithEndUserAccountBodyNetwork = (typeof SendEvmAssetWithEndUserAccountBodyNetwork)[keyof typeof SendEvmAssetWithEndUserAccountBodyNetwork];
|
|
3670
|
+
export declare const SendEvmAssetWithEndUserAccountBodyNetwork: {
|
|
3671
|
+
readonly base: "base";
|
|
3672
|
+
readonly "base-sepolia": "base-sepolia";
|
|
3673
|
+
readonly ethereum: "ethereum";
|
|
3674
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
3675
|
+
readonly avalanche: "avalanche";
|
|
3676
|
+
readonly polygon: "polygon";
|
|
3677
|
+
readonly optimism: "optimism";
|
|
3678
|
+
readonly arbitrum: "arbitrum";
|
|
3679
|
+
readonly "arbitrum-sepolia": "arbitrum-sepolia";
|
|
3680
|
+
readonly world: "world";
|
|
3681
|
+
readonly "world-sepolia": "world-sepolia";
|
|
3682
|
+
};
|
|
3683
|
+
export type SendEvmAssetWithEndUserAccountBody = {
|
|
3684
|
+
/**
|
|
3685
|
+
* The 0x-prefixed address of the recipient.
|
|
3686
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3687
|
+
*/
|
|
3688
|
+
to: BlockchainAddress;
|
|
3689
|
+
/**
|
|
3690
|
+
* The amount of USDC to send as a decimal string (e.g., "1.5" or "25.50").
|
|
3691
|
+
* @minLength 1
|
|
3692
|
+
* @maxLength 32
|
|
3693
|
+
*/
|
|
3694
|
+
amount: string;
|
|
3695
|
+
/** The EVM network to send USDC on. */
|
|
3696
|
+
network: SendEvmAssetWithEndUserAccountBodyNetwork;
|
|
3697
|
+
/** 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`. */
|
|
3698
|
+
useCdpPaymaster?: boolean;
|
|
3699
|
+
/** 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`. */
|
|
3700
|
+
paymasterUrl?: Url;
|
|
3701
|
+
/**
|
|
3702
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3703
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3704
|
+
*/
|
|
3705
|
+
walletSecretId?: string;
|
|
3706
|
+
};
|
|
3707
|
+
export type SendEvmAssetWithEndUserAccount200 = {
|
|
3708
|
+
/**
|
|
3709
|
+
* The hash of the transaction, as a 0x-prefixed hex string. Populated for EOA accounts. Null for Smart Accounts (use userOpHash instead).
|
|
3710
|
+
* @nullable
|
|
3711
|
+
*/
|
|
3712
|
+
transactionHash?: string | null;
|
|
3713
|
+
/**
|
|
3714
|
+
* The hash of the user operation, as a 0x-prefixed hex string. Populated for Smart Accounts. Null for EOA accounts (use transactionHash instead).
|
|
3715
|
+
* @nullable
|
|
3716
|
+
*/
|
|
3717
|
+
userOpHash?: string | null;
|
|
3718
|
+
};
|
|
3719
|
+
export type SignEvmMessageWithEndUserAccountParams = {
|
|
3720
|
+
/**
|
|
3721
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
3722
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
3723
|
+
*/
|
|
3724
|
+
projectID?: ProjectIDOptionalParameter;
|
|
3725
|
+
};
|
|
3726
|
+
export type SignEvmMessageWithEndUserAccountBody = {
|
|
3727
|
+
/**
|
|
3728
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
3729
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3730
|
+
*/
|
|
3731
|
+
address: string;
|
|
3732
|
+
/** The message to sign. */
|
|
3733
|
+
message: string;
|
|
3734
|
+
/**
|
|
3735
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3736
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3737
|
+
*/
|
|
3738
|
+
walletSecretId?: string;
|
|
3739
|
+
};
|
|
3740
|
+
export type SignEvmMessageWithEndUserAccount200 = {
|
|
3741
|
+
/** The signature of the message, as a 0x-prefixed hex string. */
|
|
3742
|
+
signature: string;
|
|
3743
|
+
};
|
|
3744
|
+
export type SignEvmTypedDataWithEndUserAccountParams = {
|
|
3745
|
+
/**
|
|
3746
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
3747
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
3748
|
+
*/
|
|
3749
|
+
projectID?: ProjectIDOptionalParameter;
|
|
3750
|
+
};
|
|
3751
|
+
export type SignEvmTypedDataWithEndUserAccountBody = {
|
|
3752
|
+
/**
|
|
3753
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
3754
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3755
|
+
*/
|
|
3756
|
+
address: string;
|
|
3757
|
+
typedData: EIP712Message;
|
|
3758
|
+
/**
|
|
3759
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3760
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3761
|
+
*/
|
|
3762
|
+
walletSecretId?: string;
|
|
3763
|
+
};
|
|
3764
|
+
export type SignEvmTypedDataWithEndUserAccount200 = {
|
|
3765
|
+
/** The signature of the typed data, as a 0x-prefixed hex string. */
|
|
3766
|
+
signature: string;
|
|
3767
|
+
};
|
|
3768
|
+
export type RevokeDelegationForEndUserBody = {
|
|
3769
|
+
/**
|
|
3770
|
+
* When revoking with a wallet authentication scheme, the ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3771
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3772
|
+
*/
|
|
3773
|
+
walletSecretId?: string;
|
|
3774
|
+
};
|
|
3775
|
+
export type CreateEvmEip7702DelegationWithEndUserAccountParams = {
|
|
3776
|
+
/**
|
|
3777
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
3778
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
3779
|
+
*/
|
|
3780
|
+
projectID?: ProjectIDOptionalParameter;
|
|
3781
|
+
};
|
|
3782
|
+
export type CreateEvmEip7702DelegationWithEndUserAccountBody = {
|
|
3783
|
+
/**
|
|
3784
|
+
* The 0x-prefixed address of the EVM account to delegate.
|
|
3785
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3786
|
+
*/
|
|
3787
|
+
address: string;
|
|
3788
|
+
network: EvmEip7702DelegationNetwork;
|
|
3789
|
+
/** 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. */
|
|
3790
|
+
enableSpendPermissions?: boolean;
|
|
3791
|
+
/**
|
|
3792
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3793
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3794
|
+
*/
|
|
3795
|
+
walletSecretId?: string;
|
|
3796
|
+
};
|
|
3797
|
+
export type CreateEvmEip7702DelegationWithEndUserAccount201 = {
|
|
3798
|
+
/** The unique identifier for the delegation operation. Use this to poll the operation status. */
|
|
3799
|
+
delegationOperationId: string;
|
|
3800
|
+
};
|
|
3801
|
+
export type SendUserOperationWithEndUserAccountParams = {
|
|
3802
|
+
/**
|
|
3803
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
3804
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
3805
|
+
*/
|
|
3806
|
+
projectID?: ProjectIDOptionalParameter;
|
|
3807
|
+
};
|
|
3808
|
+
export type SendUserOperationWithEndUserAccountBody = {
|
|
3809
|
+
network: EvmUserOperationNetwork;
|
|
3810
|
+
/** The list of calls to make from the Smart Account. */
|
|
3811
|
+
calls: EvmCall[];
|
|
3812
|
+
/** Whether to use the CDP Paymaster for the user operation. */
|
|
3813
|
+
useCdpPaymaster: boolean;
|
|
3814
|
+
/** The URL of the paymaster to use for the user operation. If using the CDP Paymaster, use the `useCdpPaymaster` option. */
|
|
3815
|
+
paymasterUrl?: Url;
|
|
3816
|
+
/**
|
|
3817
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3818
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3819
|
+
*/
|
|
3820
|
+
walletSecretId?: string;
|
|
3821
|
+
/**
|
|
3822
|
+
* The EIP-8021 data suffix (hex-encoded) that enables transaction attribution for the user operation.
|
|
3823
|
+
* @pattern ^0x[0-9a-fA-F]+$
|
|
3824
|
+
*/
|
|
3825
|
+
dataSuffix?: string;
|
|
3826
|
+
};
|
|
3827
|
+
export type SignSolanaMessageWithEndUserAccountParams = {
|
|
3828
|
+
/**
|
|
3829
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
3830
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
3831
|
+
*/
|
|
3832
|
+
projectID?: ProjectIDOptionalParameter;
|
|
3833
|
+
};
|
|
3834
|
+
export type SignSolanaMessageWithEndUserAccountBody = {
|
|
3835
|
+
/**
|
|
3836
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
3837
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
3838
|
+
*/
|
|
3839
|
+
address: string;
|
|
3840
|
+
/** The base64 encoded arbitrary message to sign. */
|
|
3841
|
+
message: string;
|
|
3842
|
+
/**
|
|
3843
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3844
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3845
|
+
*/
|
|
3846
|
+
walletSecretId?: string;
|
|
3847
|
+
};
|
|
3848
|
+
export type SignSolanaMessageWithEndUserAccount200 = {
|
|
3849
|
+
/** The signature of the message, as a base58 encoded string. */
|
|
3850
|
+
signature: string;
|
|
3851
|
+
};
|
|
3852
|
+
export type SignSolanaTransactionWithEndUserAccountParams = {
|
|
3853
|
+
/**
|
|
3854
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
3855
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
3856
|
+
*/
|
|
3857
|
+
projectID?: ProjectIDOptionalParameter;
|
|
3858
|
+
};
|
|
3859
|
+
export type SignSolanaTransactionWithEndUserAccountBody = {
|
|
3860
|
+
/**
|
|
3861
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
3862
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
3863
|
+
*/
|
|
3864
|
+
address: string;
|
|
3865
|
+
/** The base64 encoded transaction to sign. */
|
|
3866
|
+
transaction: string;
|
|
3867
|
+
/**
|
|
3868
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3869
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3870
|
+
*/
|
|
3871
|
+
walletSecretId?: string;
|
|
3872
|
+
};
|
|
3873
|
+
export type SignSolanaTransactionWithEndUserAccount200 = {
|
|
3874
|
+
/** The base64 encoded signed transaction. */
|
|
3875
|
+
signedTransaction: string;
|
|
3876
|
+
};
|
|
3877
|
+
export type SendSolanaTransactionWithEndUserAccountParams = {
|
|
3878
|
+
/**
|
|
3879
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
3880
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
3881
|
+
*/
|
|
3882
|
+
projectID?: ProjectIDOptionalParameter;
|
|
3883
|
+
};
|
|
3884
|
+
/**
|
|
3885
|
+
* The Solana network to send the transaction to.
|
|
3886
|
+
*/
|
|
3887
|
+
export type SendSolanaTransactionWithEndUserAccountBodyNetwork = (typeof SendSolanaTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaTransactionWithEndUserAccountBodyNetwork];
|
|
3888
|
+
export declare const SendSolanaTransactionWithEndUserAccountBodyNetwork: {
|
|
3889
|
+
readonly solana: "solana";
|
|
3890
|
+
readonly "solana-devnet": "solana-devnet";
|
|
3891
|
+
};
|
|
3892
|
+
export type SendSolanaTransactionWithEndUserAccountBody = {
|
|
3893
|
+
/**
|
|
3894
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
3895
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
3896
|
+
*/
|
|
3897
|
+
address: string;
|
|
3898
|
+
/** The Solana network to send the transaction to. */
|
|
3899
|
+
network: SendSolanaTransactionWithEndUserAccountBodyNetwork;
|
|
3900
|
+
/**
|
|
3901
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3902
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3903
|
+
*/
|
|
3904
|
+
walletSecretId?: string;
|
|
3905
|
+
/** The base64 encoded transaction to sign and send. This transaction can contain multiple instructions for native Solana batching. */
|
|
3906
|
+
transaction: string;
|
|
3907
|
+
/** 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. */
|
|
3908
|
+
useCdpSponsor?: boolean;
|
|
3909
|
+
};
|
|
3910
|
+
export type SendSolanaTransactionWithEndUserAccount200 = {
|
|
3911
|
+
/** The base58 encoded transaction signature. */
|
|
3912
|
+
transactionSignature: string;
|
|
3913
|
+
};
|
|
3914
|
+
export type SendSolanaAssetWithEndUserAccountParams = {
|
|
3915
|
+
/**
|
|
3916
|
+
* The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
3917
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
3918
|
+
*/
|
|
3919
|
+
projectID?: ProjectIDOptionalParameter;
|
|
3920
|
+
};
|
|
3921
|
+
/**
|
|
3922
|
+
* The Solana network to send USDC on.
|
|
3923
|
+
*/
|
|
3924
|
+
export type SendSolanaAssetWithEndUserAccountBodyNetwork = (typeof SendSolanaAssetWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaAssetWithEndUserAccountBodyNetwork];
|
|
3925
|
+
export declare const SendSolanaAssetWithEndUserAccountBodyNetwork: {
|
|
3926
|
+
readonly solana: "solana";
|
|
3927
|
+
readonly "solana-devnet": "solana-devnet";
|
|
3928
|
+
};
|
|
3929
|
+
export type SendSolanaAssetWithEndUserAccountBody = {
|
|
3930
|
+
/**
|
|
3931
|
+
* The base58 encoded address of the recipient.
|
|
3932
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
3933
|
+
*/
|
|
3934
|
+
to: BlockchainAddress;
|
|
3935
|
+
/**
|
|
3936
|
+
* The amount of USDC to send as a decimal string (e.g., "1.5" or "25.50").
|
|
3937
|
+
* @minLength 1
|
|
3938
|
+
* @maxLength 32
|
|
3939
|
+
*/
|
|
3940
|
+
amount: string;
|
|
3941
|
+
/** The Solana network to send USDC on. */
|
|
3942
|
+
network: SendSolanaAssetWithEndUserAccountBodyNetwork;
|
|
3943
|
+
/** 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. */
|
|
3944
|
+
createRecipientAta?: boolean;
|
|
3945
|
+
/**
|
|
3946
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3947
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3948
|
+
*/
|
|
3949
|
+
walletSecretId?: string;
|
|
3950
|
+
/** 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. */
|
|
3951
|
+
useCdpSponsor?: boolean;
|
|
3952
|
+
};
|
|
3953
|
+
export type SendSolanaAssetWithEndUserAccount200 = {
|
|
3954
|
+
/** The base58 encoded transaction signature. */
|
|
3955
|
+
transactionSignature: string;
|
|
3956
|
+
};
|
|
3563
3957
|
export type ListEvmAccountsParams = {
|
|
3564
3958
|
/**
|
|
3565
3959
|
* The number of resources to return per page.
|
|
@@ -3616,6 +4010,9 @@ export declare const SendEvmTransactionBodyNetwork: {
|
|
|
3616
4010
|
readonly polygon: "polygon";
|
|
3617
4011
|
readonly optimism: "optimism";
|
|
3618
4012
|
readonly arbitrum: "arbitrum";
|
|
4013
|
+
readonly "arbitrum-sepolia": "arbitrum-sepolia";
|
|
4014
|
+
readonly world: "world";
|
|
4015
|
+
readonly "world-sepolia": "world-sepolia";
|
|
3619
4016
|
};
|
|
3620
4017
|
export type SendEvmTransactionBody = {
|
|
3621
4018
|
/** The network to send the transaction to. */
|