@coinbase/cdp-sdk 1.45.0 → 1.46.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 +20 -2
- package/README.md +47 -43
- package/_cjs/accounts/evm/eip6492.js +49 -0
- package/_cjs/accounts/evm/eip6492.js.map +1 -0
- package/_cjs/accounts/evm/toEvmSmartAccount.js +6 -2
- package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -1
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js +31 -0
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_cjs/actions/solana/transfer.js.map +1 -1
- package/_cjs/actions/solana/utils.js +9 -9
- package/_cjs/actions/solana/utils.js.map +1 -1
- package/_cjs/auth/utils/http.js +1 -0
- package/_cjs/auth/utils/http.js.map +1 -1
- package/_cjs/client/cdp.js +4 -1
- package/_cjs/client/cdp.js.map +1 -1
- package/_cjs/client/end-user/endUser.js +385 -4
- package/_cjs/client/end-user/endUser.js.map +1 -1
- package/_cjs/client/end-user/toEndUserAccount.js +201 -23
- package/_cjs/client/end-user/toEndUserAccount.js.map +1 -1
- package/_cjs/client/solana/solana.js +39 -13
- package/_cjs/client/solana/solana.js.map +1 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/openapi-client/cdpApiClient.js +32 -0
- package/_cjs/openapi-client/cdpApiClient.js.map +1 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +52 -15
- 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 +261 -0
- package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +1 -0
- package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +2 -2
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
- package/_cjs/openapi-client/generated/faucets/faucets.js +6 -5
- package/_cjs/openapi-client/generated/faucets/faucets.js.map +1 -1
- package/_cjs/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
- package/_cjs/openapi-client/generated/onramp/onramp.js.map +1 -1
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
- package/_cjs/openapi-client/generated/sql-api/sql-api.js +75 -0
- package/_cjs/openapi-client/generated/sql-api/sql-api.js.map +1 -0
- package/_cjs/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
- package/_cjs/openapi-client/index.js +4 -1
- package/_cjs/openapi-client/index.js.map +1 -1
- package/_cjs/utils/export.js +6 -5
- package/_cjs/utils/export.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/accounts/evm/eip6492.js +46 -0
- package/_esm/accounts/evm/eip6492.js.map +1 -0
- package/_esm/accounts/evm/toEvmSmartAccount.js +6 -2
- package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -1
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js +31 -0
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_esm/actions/solana/transfer.js.map +1 -1
- package/_esm/actions/solana/utils.js +9 -9
- package/_esm/actions/solana/utils.js.map +1 -1
- package/_esm/auth/utils/http.js +1 -0
- package/_esm/auth/utils/http.js.map +1 -1
- package/_esm/client/cdp.js +4 -1
- package/_esm/client/cdp.js.map +1 -1
- package/_esm/client/end-user/endUser.js +385 -4
- package/_esm/client/end-user/endUser.js.map +1 -1
- package/_esm/client/end-user/toEndUserAccount.js +201 -23
- package/_esm/client/end-user/toEndUserAccount.js.map +1 -1
- package/_esm/client/solana/solana.js +39 -13
- package/_esm/client/solana/solana.js.map +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/openapi-client/cdpApiClient.js +32 -0
- package/_esm/openapi-client/cdpApiClient.js.map +1 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +49 -12
- 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 +243 -0
- package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +1 -0
- package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +2 -2
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
- package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
- package/_esm/openapi-client/generated/faucets/faucets.js +6 -5
- package/_esm/openapi-client/generated/faucets/faucets.js.map +1 -1
- package/_esm/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
- package/_esm/openapi-client/generated/onramp/onramp.js.map +1 -1
- package/_esm/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
- package/_esm/openapi-client/generated/sql-api/sql-api.js +70 -0
- package/_esm/openapi-client/generated/sql-api/sql-api.js.map +1 -0
- package/_esm/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
- package/_esm/openapi-client/index.js +4 -1
- package/_esm/openapi-client/index.js.map +1 -1
- package/_esm/utils/export.js +6 -5
- package/_esm/utils/export.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/accounts/evm/eip6492.d.ts +17 -0
- package/_types/accounts/evm/eip6492.d.ts.map +1 -0
- package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts +4 -4
- package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts.map +1 -1
- package/_types/accounts/evm/types.d.ts +3 -2
- package/_types/accounts/evm/types.d.ts.map +1 -1
- package/_types/actions/solana/transfer.d.ts +3 -4
- package/_types/actions/solana/transfer.d.ts.map +1 -1
- package/_types/actions/solana/types.d.ts +79 -29
- package/_types/actions/solana/types.d.ts.map +1 -1
- package/_types/actions/solana/utils.d.ts +10 -9
- package/_types/actions/solana/utils.d.ts.map +1 -1
- package/_types/auth/utils/http.d.ts.map +1 -1
- package/_types/client/cdp.d.ts +4 -0
- package/_types/client/cdp.d.ts.map +1 -1
- package/_types/client/end-user/endUser.d.ts +272 -1
- package/_types/client/end-user/endUser.d.ts.map +1 -1
- package/_types/client/end-user/endUser.types.d.ts +491 -1
- package/_types/client/end-user/endUser.types.d.ts.map +1 -1
- package/_types/client/end-user/toEndUserAccount.d.ts +4 -1
- package/_types/client/end-user/toEndUserAccount.d.ts.map +1 -1
- package/_types/client/evm/evm.types.d.ts.map +1 -1
- package/_types/client/solana/solana.d.ts +38 -12
- package/_types/client/solana/solana.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 +487 -119
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts +163 -0
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts.map +1 -0
- package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts +9 -9
- package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts +16 -16
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +14 -14
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts +3 -3
- package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts +2 -2
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts.map +1 -1
- package/_types/openapi-client/generated/faucets/faucets.d.ts +9 -8
- package/_types/openapi-client/generated/faucets/faucets.d.ts.map +1 -1
- package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts +3 -3
- package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts.map +1 -1
- package/_types/openapi-client/generated/onramp/onramp.d.ts +5 -5
- package/_types/openapi-client/generated/onramp/onramp.d.ts.map +1 -1
- package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts +6 -6
- package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts.map +1 -1
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts +12 -12
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.d.ts +2 -2
- package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.d.ts.map +1 -1
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts +73 -0
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts.map +1 -0
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts +6 -6
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts.map +1 -1
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts +4 -4
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts.map +1 -1
- package/_types/openapi-client/index.d.ts +19 -3
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/policies/evmSchema.d.ts +26 -78
- package/_types/policies/evmSchema.d.ts.map +1 -1
- package/_types/policies/types.d.ts.map +1 -1
- package/_types/types/contract.d.ts.map +1 -1
- package/_types/utils/export.d.ts +1 -1
- package/_types/utils/export.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/accounts/evm/eip6492.ts +60 -0
- package/accounts/evm/toEvmSmartAccount.ts +17 -4
- package/accounts/evm/toNetworkScopedEvmSmartAccount.ts +44 -5
- package/accounts/evm/types.ts +8 -3
- package/actions/solana/transfer.ts +3 -3
- package/actions/solana/types.ts +79 -29
- package/actions/solana/utils.ts +13 -11
- package/auth/utils/http.ts +1 -0
- package/client/cdp.ts +6 -1
- package/client/end-user/endUser.ts +513 -4
- package/client/end-user/endUser.types.ts +598 -0
- package/client/end-user/toEndUserAccount.ts +330 -26
- package/client/evm/evm.types.ts +4 -2
- package/client/solana/solana.ts +39 -13
- package/index.ts +31 -1
- package/openapi-client/cdpApiClient.ts +34 -0
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +566 -152
- package/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts +455 -0
- package/openapi-client/generated/end-user-accounts/end-user-accounts.ts +12 -9
- package/openapi-client/generated/evm-accounts/evm-accounts.ts +19 -16
- package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts +16 -16
- package/openapi-client/generated/evm-swaps/evm-swaps.ts +3 -3
- package/openapi-client/generated/evm-token-balances/evm-token-balances.ts +2 -2
- package/openapi-client/generated/faucets/faucets.ts +9 -8
- package/openapi-client/generated/onchain-data/onchain-data.ts +3 -3
- package/openapi-client/generated/onramp/onramp.ts +5 -5
- package/openapi-client/generated/policy-engine/policy-engine.ts +12 -6
- package/openapi-client/generated/solana-accounts/solana-accounts.ts +12 -12
- package/openapi-client/generated/solana-token-balances/solana-token-balances.ts +2 -2
- package/openapi-client/generated/sql-api/sql-api.ts +92 -0
- package/openapi-client/generated/webhooks/webhooks.ts +6 -6
- package/openapi-client/generated/x402-facilitator/x402-facilitator.ts +6 -4
- package/openapi-client/index.ts +4 -1
- package/package.json +7 -8
- package/types/contract.ts +2 -4
- package/utils/export.ts +6 -5
- package/version.ts +1 -1
- package/_cjs/openapi-client/generated/sql-api-alpha/sql-api-alpha.js +0 -55
- package/_cjs/openapi-client/generated/sql-api-alpha/sql-api-alpha.js.map +0 -1
- package/_esm/openapi-client/generated/sql-api-alpha/sql-api-alpha.js +0 -50
- package/_esm/openapi-client/generated/sql-api-alpha/sql-api-alpha.js.map +0 -1
- package/_types/openapi-client/generated/sql-api-alpha/sql-api-alpha.d.ts +0 -53
- package/_types/openapi-client/generated/sql-api-alpha/sql-api-alpha.d.ts.map +0 -1
- package/openapi-client/generated/sql-api-alpha/sql-api-alpha.ts +0 -72
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v7.
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Coinbase Developer Platform APIs
|
|
5
5
|
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
@@ -84,6 +84,7 @@ export const OAuth2ProviderType = {
|
|
|
84
84
|
apple: "apple",
|
|
85
85
|
x: "x",
|
|
86
86
|
telegram: "telegram",
|
|
87
|
+
github: "github",
|
|
87
88
|
} as const;
|
|
88
89
|
|
|
89
90
|
/**
|
|
@@ -311,6 +312,9 @@ export const ErrorType = {
|
|
|
311
312
|
order_already_filled: "order_already_filled",
|
|
312
313
|
order_already_canceled: "order_already_canceled",
|
|
313
314
|
account_not_ready: "account_not_ready",
|
|
315
|
+
insufficient_liquidity: "insufficient_liquidity",
|
|
316
|
+
insufficient_allowance: "insufficient_allowance",
|
|
317
|
+
transaction_simulation_failed: "transaction_simulation_failed",
|
|
314
318
|
} as const;
|
|
315
319
|
|
|
316
320
|
/**
|
|
@@ -334,26 +338,19 @@ export interface Error {
|
|
|
334
338
|
errorLink?: Url;
|
|
335
339
|
}
|
|
336
340
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
/** 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. */
|
|
351
|
-
policies?: string[];
|
|
352
|
-
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
353
|
-
createdAt?: string;
|
|
354
|
-
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
355
|
-
updatedAt?: string;
|
|
356
|
-
}
|
|
341
|
+
/**
|
|
342
|
+
* A blockchain address. Format varies by network (e.g., 0x-prefixed for EVM, base58 for Solana).
|
|
343
|
+
* @minLength 1
|
|
344
|
+
* @maxLength 128
|
|
345
|
+
*/
|
|
346
|
+
export type BlockchainAddress = string;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* The symbol of the asset (e.g., eth, usd, usdc, usdt).
|
|
350
|
+
* @minLength 1
|
|
351
|
+
* @maxLength 42
|
|
352
|
+
*/
|
|
353
|
+
export type Asset = string;
|
|
357
354
|
|
|
358
355
|
/**
|
|
359
356
|
* The domain of the EIP-712 typed data.
|
|
@@ -420,67 +417,6 @@ export const EvmEip7702DelegationNetwork = {
|
|
|
420
417
|
"ethereum-sepolia": "ethereum-sepolia",
|
|
421
418
|
} as const;
|
|
422
419
|
|
|
423
|
-
/**
|
|
424
|
-
* The current status of the delegation operation.
|
|
425
|
-
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.
|
|
426
|
-
*/
|
|
427
|
-
export type EvmEip7702DelegationOperationStatus =
|
|
428
|
-
(typeof EvmEip7702DelegationOperationStatus)[keyof typeof EvmEip7702DelegationOperationStatus];
|
|
429
|
-
|
|
430
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
431
|
-
export const EvmEip7702DelegationOperationStatus = {
|
|
432
|
-
UNSPECIFIED: "UNSPECIFIED",
|
|
433
|
-
PENDING: "PENDING",
|
|
434
|
-
SUBMITTED: "SUBMITTED",
|
|
435
|
-
COMPLETED: "COMPLETED",
|
|
436
|
-
FAILED: "FAILED",
|
|
437
|
-
} as const;
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* The status of an EIP-7702 delegation operation.
|
|
441
|
-
*/
|
|
442
|
-
export interface EvmEip7702DelegationOperation {
|
|
443
|
-
/** The unique identifier for the delegation operation. */
|
|
444
|
-
delegationOperationId: string;
|
|
445
|
-
/** The current status of the delegation operation.
|
|
446
|
-
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. */
|
|
447
|
-
status: EvmEip7702DelegationOperationStatus;
|
|
448
|
-
/**
|
|
449
|
-
* The hash of the delegation transaction, if available. Present once the transaction has been submitted to the network.
|
|
450
|
-
* @pattern ^0x[0-9a-fA-F]{64}$
|
|
451
|
-
*/
|
|
452
|
-
transactionHash?: string;
|
|
453
|
-
network: EvmEip7702DelegationNetwork;
|
|
454
|
-
/**
|
|
455
|
-
* The address the account has delegated to, if any. Only present when the account has an active delegation.
|
|
456
|
-
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
457
|
-
*/
|
|
458
|
-
delegateAddress?: string;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
export interface EvmSmartAccount {
|
|
462
|
-
/**
|
|
463
|
-
* The 0x-prefixed, checksum address of the Smart Account.
|
|
464
|
-
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
465
|
-
*/
|
|
466
|
-
address: string;
|
|
467
|
-
/** 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. */
|
|
468
|
-
owners: string[];
|
|
469
|
-
/**
|
|
470
|
-
* An optional name for the account.
|
|
471
|
-
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
472
|
-
Account names are guaranteed to be unique across all Smart Accounts in the developer's CDP Project.
|
|
473
|
-
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
474
|
-
*/
|
|
475
|
-
name?: string;
|
|
476
|
-
/** 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. */
|
|
477
|
-
policies?: string[];
|
|
478
|
-
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
479
|
-
createdAt?: string;
|
|
480
|
-
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
481
|
-
updatedAt?: string;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
420
|
/**
|
|
485
421
|
* The network the user operation is for.
|
|
486
422
|
*/
|
|
@@ -606,6 +542,106 @@ export const SpendPermissionNetwork = {
|
|
|
606
542
|
polygon: "polygon",
|
|
607
543
|
} as const;
|
|
608
544
|
|
|
545
|
+
/**
|
|
546
|
+
* Request parameters for revoking a Spend Permission.
|
|
547
|
+
*/
|
|
548
|
+
export interface RevokeSpendPermissionRequest {
|
|
549
|
+
/**
|
|
550
|
+
* The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
551
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
552
|
+
*/
|
|
553
|
+
walletSecretId: string;
|
|
554
|
+
network: SpendPermissionNetwork;
|
|
555
|
+
/** The hash of the spend permission to revoke. */
|
|
556
|
+
permissionHash: string;
|
|
557
|
+
/** Whether to use the CDP Paymaster for the user operation. */
|
|
558
|
+
useCdpPaymaster: boolean;
|
|
559
|
+
/** The paymaster URL of the spend permission. */
|
|
560
|
+
paymasterUrl?: Url;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
export interface EvmAccount {
|
|
564
|
+
/**
|
|
565
|
+
* The 0x-prefixed, checksum EVM address.
|
|
566
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
567
|
+
*/
|
|
568
|
+
address: string;
|
|
569
|
+
/**
|
|
570
|
+
* An optional name for the account.
|
|
571
|
+
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
572
|
+
Account names are guaranteed to be unique across all EVM accounts in the developer's CDP Project.
|
|
573
|
+
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
574
|
+
*/
|
|
575
|
+
name?: string;
|
|
576
|
+
/** 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. */
|
|
577
|
+
policies?: string[];
|
|
578
|
+
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
579
|
+
createdAt?: string;
|
|
580
|
+
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
581
|
+
updatedAt?: string;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* The current status of the delegation operation.
|
|
586
|
+
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.
|
|
587
|
+
*/
|
|
588
|
+
export type EvmEip7702DelegationOperationStatus =
|
|
589
|
+
(typeof EvmEip7702DelegationOperationStatus)[keyof typeof EvmEip7702DelegationOperationStatus];
|
|
590
|
+
|
|
591
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
592
|
+
export const EvmEip7702DelegationOperationStatus = {
|
|
593
|
+
UNSPECIFIED: "UNSPECIFIED",
|
|
594
|
+
PENDING: "PENDING",
|
|
595
|
+
SUBMITTED: "SUBMITTED",
|
|
596
|
+
COMPLETED: "COMPLETED",
|
|
597
|
+
FAILED: "FAILED",
|
|
598
|
+
} as const;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* The status of an EIP-7702 delegation operation.
|
|
602
|
+
*/
|
|
603
|
+
export interface EvmEip7702DelegationOperation {
|
|
604
|
+
/** The unique identifier for the delegation operation. */
|
|
605
|
+
delegationOperationId: string;
|
|
606
|
+
/** The current status of the delegation operation.
|
|
607
|
+
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. */
|
|
608
|
+
status: EvmEip7702DelegationOperationStatus;
|
|
609
|
+
/**
|
|
610
|
+
* The hash of the delegation transaction, if available. Present once the transaction has been submitted to the network.
|
|
611
|
+
* @pattern ^0x[0-9a-fA-F]{64}$
|
|
612
|
+
*/
|
|
613
|
+
transactionHash?: string;
|
|
614
|
+
network: EvmEip7702DelegationNetwork;
|
|
615
|
+
/**
|
|
616
|
+
* The address the account has delegated to, if any. Only present when the account has an active delegation.
|
|
617
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
618
|
+
*/
|
|
619
|
+
delegateAddress?: string;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
export interface EvmSmartAccount {
|
|
623
|
+
/**
|
|
624
|
+
* The 0x-prefixed, checksum address of the Smart Account.
|
|
625
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
626
|
+
*/
|
|
627
|
+
address: string;
|
|
628
|
+
/** 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. */
|
|
629
|
+
owners: string[];
|
|
630
|
+
/**
|
|
631
|
+
* An optional name for the account.
|
|
632
|
+
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
633
|
+
Account names are guaranteed to be unique across all Smart Accounts in the developer's CDP Project.
|
|
634
|
+
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
635
|
+
*/
|
|
636
|
+
name?: string;
|
|
637
|
+
/** 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. */
|
|
638
|
+
policies?: string[];
|
|
639
|
+
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
640
|
+
createdAt?: string;
|
|
641
|
+
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
642
|
+
updatedAt?: string;
|
|
643
|
+
}
|
|
644
|
+
|
|
609
645
|
/**
|
|
610
646
|
* Request parameters for creating a Spend Permission.
|
|
611
647
|
*/
|
|
@@ -686,7 +722,7 @@ export interface SpendPermissionResponseObject {
|
|
|
686
722
|
/**
|
|
687
723
|
* Request parameters for revoking a Spend Permission.
|
|
688
724
|
*/
|
|
689
|
-
export interface
|
|
725
|
+
export interface EvmSpendPermissionsRevokeSpendPermissionRequest {
|
|
690
726
|
network: SpendPermissionNetwork;
|
|
691
727
|
/** The hash of the spend permission to revoke. */
|
|
692
728
|
permissionHash: string;
|
|
@@ -3012,6 +3048,8 @@ export type WebhookSubscriptionResponseLabels = { [key: string]: string };
|
|
|
3012
3048
|
export interface WebhookSubscriptionResponse {
|
|
3013
3049
|
/** When the subscription was created. */
|
|
3014
3050
|
createdAt: string;
|
|
3051
|
+
/** When the subscription was last updated. */
|
|
3052
|
+
updatedAt?: string;
|
|
3015
3053
|
/** Description of the webhook subscription. */
|
|
3016
3054
|
description?: Description;
|
|
3017
3055
|
/** Types of events to subscribe to. Event types follow a three-part dot-separated format:
|
|
@@ -3248,53 +3286,6 @@ export interface X402ExactSolanaPayload {
|
|
|
3248
3286
|
transaction: string;
|
|
3249
3287
|
}
|
|
3250
3288
|
|
|
3251
|
-
/**
|
|
3252
|
-
* The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
|
|
3253
|
-
*/
|
|
3254
|
-
export type X402V1PaymentPayloadScheme =
|
|
3255
|
-
(typeof X402V1PaymentPayloadScheme)[keyof typeof X402V1PaymentPayloadScheme];
|
|
3256
|
-
|
|
3257
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
3258
|
-
export const X402V1PaymentPayloadScheme = {
|
|
3259
|
-
exact: "exact",
|
|
3260
|
-
} as const;
|
|
3261
|
-
|
|
3262
|
-
/**
|
|
3263
|
-
* The network of the blockchain to send payment on.
|
|
3264
|
-
*/
|
|
3265
|
-
export type X402V1PaymentPayloadNetwork =
|
|
3266
|
-
(typeof X402V1PaymentPayloadNetwork)[keyof typeof X402V1PaymentPayloadNetwork];
|
|
3267
|
-
|
|
3268
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
3269
|
-
export const X402V1PaymentPayloadNetwork = {
|
|
3270
|
-
"base-sepolia": "base-sepolia",
|
|
3271
|
-
base: "base",
|
|
3272
|
-
"solana-devnet": "solana-devnet",
|
|
3273
|
-
solana: "solana",
|
|
3274
|
-
polygon: "polygon",
|
|
3275
|
-
} as const;
|
|
3276
|
-
|
|
3277
|
-
/**
|
|
3278
|
-
* The payload of the payment depending on the x402Version, scheme, and network.
|
|
3279
|
-
*/
|
|
3280
|
-
export type X402V1PaymentPayloadPayload =
|
|
3281
|
-
| X402ExactEvmPayload
|
|
3282
|
-
| X402ExactEvmPermit2Payload
|
|
3283
|
-
| X402ExactSolanaPayload;
|
|
3284
|
-
|
|
3285
|
-
/**
|
|
3286
|
-
* The x402 protocol payment payload that the client attaches to x402-paid API requests to the resource server in the X-PAYMENT header.
|
|
3287
|
-
*/
|
|
3288
|
-
export interface X402V1PaymentPayload {
|
|
3289
|
-
x402Version: X402Version;
|
|
3290
|
-
/** The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`. */
|
|
3291
|
-
scheme: X402V1PaymentPayloadScheme;
|
|
3292
|
-
/** The network of the blockchain to send payment on. */
|
|
3293
|
-
network: X402V1PaymentPayloadNetwork;
|
|
3294
|
-
/** The payload of the payment depending on the x402Version, scheme, and network. */
|
|
3295
|
-
payload: X402V1PaymentPayloadPayload;
|
|
3296
|
-
}
|
|
3297
|
-
|
|
3298
3289
|
/**
|
|
3299
3290
|
* The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
|
|
3300
3291
|
*/
|
|
@@ -3383,31 +3374,25 @@ export interface X402V2PaymentPayload {
|
|
|
3383
3374
|
extensions?: X402V2PaymentPayloadExtensions;
|
|
3384
3375
|
}
|
|
3385
3376
|
|
|
3386
|
-
/**
|
|
3387
|
-
* The x402 protocol payment payload that the client attaches to x402-paid API requests to the resource server in the X-PAYMENT header.
|
|
3388
|
-
For EVM networks, smart account signatures can be longer than 65 bytes.
|
|
3389
|
-
*/
|
|
3390
|
-
export type X402PaymentPayload = X402V1PaymentPayload | X402V2PaymentPayload;
|
|
3391
|
-
|
|
3392
3377
|
/**
|
|
3393
3378
|
* The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
|
|
3394
3379
|
*/
|
|
3395
|
-
export type
|
|
3396
|
-
(typeof
|
|
3380
|
+
export type X402V1PaymentPayloadScheme =
|
|
3381
|
+
(typeof X402V1PaymentPayloadScheme)[keyof typeof X402V1PaymentPayloadScheme];
|
|
3397
3382
|
|
|
3398
3383
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
3399
|
-
export const
|
|
3384
|
+
export const X402V1PaymentPayloadScheme = {
|
|
3400
3385
|
exact: "exact",
|
|
3401
3386
|
} as const;
|
|
3402
3387
|
|
|
3403
3388
|
/**
|
|
3404
3389
|
* The network of the blockchain to send payment on.
|
|
3405
3390
|
*/
|
|
3406
|
-
export type
|
|
3407
|
-
(typeof
|
|
3391
|
+
export type X402V1PaymentPayloadNetwork =
|
|
3392
|
+
(typeof X402V1PaymentPayloadNetwork)[keyof typeof X402V1PaymentPayloadNetwork];
|
|
3408
3393
|
|
|
3409
3394
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
3410
|
-
export const
|
|
3395
|
+
export const X402V1PaymentPayloadNetwork = {
|
|
3411
3396
|
"base-sepolia": "base-sepolia",
|
|
3412
3397
|
base: "base",
|
|
3413
3398
|
"solana-devnet": "solana-devnet",
|
|
@@ -3416,9 +3401,62 @@ export const X402V1PaymentRequirementsNetwork = {
|
|
|
3416
3401
|
} as const;
|
|
3417
3402
|
|
|
3418
3403
|
/**
|
|
3419
|
-
* The
|
|
3404
|
+
* The payload of the payment depending on the x402Version, scheme, and network.
|
|
3420
3405
|
*/
|
|
3421
|
-
export type
|
|
3406
|
+
export type X402V1PaymentPayloadPayload =
|
|
3407
|
+
| X402ExactEvmPayload
|
|
3408
|
+
| X402ExactEvmPermit2Payload
|
|
3409
|
+
| X402ExactSolanaPayload;
|
|
3410
|
+
|
|
3411
|
+
/**
|
|
3412
|
+
* The x402 protocol payment payload that the client attaches to x402-paid API requests to the resource server in the X-PAYMENT header.
|
|
3413
|
+
*/
|
|
3414
|
+
export interface X402V1PaymentPayload {
|
|
3415
|
+
x402Version: X402Version;
|
|
3416
|
+
/** The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`. */
|
|
3417
|
+
scheme: X402V1PaymentPayloadScheme;
|
|
3418
|
+
/** The network of the blockchain to send payment on. */
|
|
3419
|
+
network: X402V1PaymentPayloadNetwork;
|
|
3420
|
+
/** The payload of the payment depending on the x402Version, scheme, and network. */
|
|
3421
|
+
payload: X402V1PaymentPayloadPayload;
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3424
|
+
/**
|
|
3425
|
+
* The x402 protocol payment payload that the client attaches to x402-paid API requests to the resource server in the X-PAYMENT header.
|
|
3426
|
+
For EVM networks, smart account signatures can be longer than 65 bytes.
|
|
3427
|
+
*/
|
|
3428
|
+
export type X402PaymentPayload = X402V2PaymentPayload | X402V1PaymentPayload;
|
|
3429
|
+
|
|
3430
|
+
/**
|
|
3431
|
+
* The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
|
|
3432
|
+
*/
|
|
3433
|
+
export type X402V1PaymentRequirementsScheme =
|
|
3434
|
+
(typeof X402V1PaymentRequirementsScheme)[keyof typeof X402V1PaymentRequirementsScheme];
|
|
3435
|
+
|
|
3436
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
3437
|
+
export const X402V1PaymentRequirementsScheme = {
|
|
3438
|
+
exact: "exact",
|
|
3439
|
+
} as const;
|
|
3440
|
+
|
|
3441
|
+
/**
|
|
3442
|
+
* The network of the blockchain to send payment on.
|
|
3443
|
+
*/
|
|
3444
|
+
export type X402V1PaymentRequirementsNetwork =
|
|
3445
|
+
(typeof X402V1PaymentRequirementsNetwork)[keyof typeof X402V1PaymentRequirementsNetwork];
|
|
3446
|
+
|
|
3447
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
3448
|
+
export const X402V1PaymentRequirementsNetwork = {
|
|
3449
|
+
"base-sepolia": "base-sepolia",
|
|
3450
|
+
base: "base",
|
|
3451
|
+
"solana-devnet": "solana-devnet",
|
|
3452
|
+
solana: "solana",
|
|
3453
|
+
polygon: "polygon",
|
|
3454
|
+
} as const;
|
|
3455
|
+
|
|
3456
|
+
/**
|
|
3457
|
+
* The optional JSON schema describing the resource output.
|
|
3458
|
+
*/
|
|
3459
|
+
export type X402V1PaymentRequirementsOutputSchema = { [key: string]: unknown };
|
|
3422
3460
|
|
|
3423
3461
|
/**
|
|
3424
3462
|
* The optional additional scheme-specific payment info.
|
|
@@ -3470,7 +3508,7 @@ For Solana-based networks, the asset will be a base58-encoded Solana address.
|
|
|
3470
3508
|
/**
|
|
3471
3509
|
* The x402 protocol payment requirements that the resource server expects the client's payment payload to meet.
|
|
3472
3510
|
*/
|
|
3473
|
-
export type X402PaymentRequirements =
|
|
3511
|
+
export type X402PaymentRequirements = X402V2PaymentRequirements | X402V1PaymentRequirements;
|
|
3474
3512
|
|
|
3475
3513
|
/**
|
|
3476
3514
|
* The reason the payment is invalid on the x402 protocol.
|
|
@@ -3735,13 +3773,6 @@ export interface X402SupportedPaymentKind {
|
|
|
3735
3773
|
extra?: X402SupportedPaymentKindExtra;
|
|
3736
3774
|
}
|
|
3737
3775
|
|
|
3738
|
-
/**
|
|
3739
|
-
* A blockchain address. Format varies by network (e.g., 0x-prefixed for EVM, base58 for Solana).
|
|
3740
|
-
* @minLength 1
|
|
3741
|
-
* @maxLength 128
|
|
3742
|
-
*/
|
|
3743
|
-
export type BlockchainAddress = string;
|
|
3744
|
-
|
|
3745
3776
|
/**
|
|
3746
3777
|
* The type of payment method to be used to complete an onramp order.
|
|
3747
3778
|
*/
|
|
@@ -4084,6 +4115,22 @@ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/i
|
|
|
4084
4115
|
*/
|
|
4085
4116
|
export type IdempotencyKeyParameter = string;
|
|
4086
4117
|
|
|
4118
|
+
/**
|
|
4119
|
+
* A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
4120
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
4121
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
4122
|
+
|
|
4123
|
+
*/
|
|
4124
|
+
export type XDeveloperAuthParameter = string;
|
|
4125
|
+
|
|
4126
|
+
/**
|
|
4127
|
+
* A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
4128
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
4129
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
4130
|
+
|
|
4131
|
+
*/
|
|
4132
|
+
export type XWalletAuthOptionalParameter = string;
|
|
4133
|
+
|
|
4087
4134
|
/**
|
|
4088
4135
|
* The number of resources to return per page.
|
|
4089
4136
|
*/
|
|
@@ -4130,6 +4177,8 @@ If `userId` is not provided in the request, the server will generate a random UU
|
|
|
4130
4177
|
export type ListEndUsersParams = {
|
|
4131
4178
|
/**
|
|
4132
4179
|
* The number of end users to return per page.
|
|
4180
|
+
* @minimum 1
|
|
4181
|
+
* @maximum 100
|
|
4133
4182
|
*/
|
|
4134
4183
|
pageSize?: number;
|
|
4135
4184
|
/**
|
|
@@ -4211,6 +4260,368 @@ export type ImportEndUserBody = {
|
|
|
4211
4260
|
keyType: ImportEndUserBodyKeyType;
|
|
4212
4261
|
};
|
|
4213
4262
|
|
|
4263
|
+
export type SignEvmHashWithEndUserAccountBody = {
|
|
4264
|
+
/** The arbitrary 32 byte hash to sign. */
|
|
4265
|
+
hash: string;
|
|
4266
|
+
/**
|
|
4267
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
4268
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
4269
|
+
*/
|
|
4270
|
+
address: string;
|
|
4271
|
+
/**
|
|
4272
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4273
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4274
|
+
*/
|
|
4275
|
+
walletSecretId?: string;
|
|
4276
|
+
};
|
|
4277
|
+
|
|
4278
|
+
export type SignEvmHashWithEndUserAccount200 = {
|
|
4279
|
+
/** The signature of the hash, as a 0x-prefixed hex string. */
|
|
4280
|
+
signature: string;
|
|
4281
|
+
};
|
|
4282
|
+
|
|
4283
|
+
export type SignEvmTransactionWithEndUserAccountBody = {
|
|
4284
|
+
/**
|
|
4285
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
4286
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
4287
|
+
*/
|
|
4288
|
+
address: string;
|
|
4289
|
+
/** The RLP-encoded transaction to sign, as a 0x-prefixed hex string. */
|
|
4290
|
+
transaction: string;
|
|
4291
|
+
/**
|
|
4292
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4293
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4294
|
+
*/
|
|
4295
|
+
walletSecretId?: string;
|
|
4296
|
+
};
|
|
4297
|
+
|
|
4298
|
+
export type SignEvmTransactionWithEndUserAccount200 = {
|
|
4299
|
+
/** The RLP-encoded signed transaction, as a 0x-prefixed hex string. */
|
|
4300
|
+
signedTransaction: string;
|
|
4301
|
+
};
|
|
4302
|
+
|
|
4303
|
+
/**
|
|
4304
|
+
* The network to send the transaction to.
|
|
4305
|
+
*/
|
|
4306
|
+
export type SendEvmTransactionWithEndUserAccountBodyNetwork =
|
|
4307
|
+
(typeof SendEvmTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendEvmTransactionWithEndUserAccountBodyNetwork];
|
|
4308
|
+
|
|
4309
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
4310
|
+
export const SendEvmTransactionWithEndUserAccountBodyNetwork = {
|
|
4311
|
+
base: "base",
|
|
4312
|
+
"base-sepolia": "base-sepolia",
|
|
4313
|
+
ethereum: "ethereum",
|
|
4314
|
+
"ethereum-sepolia": "ethereum-sepolia",
|
|
4315
|
+
avalanche: "avalanche",
|
|
4316
|
+
polygon: "polygon",
|
|
4317
|
+
optimism: "optimism",
|
|
4318
|
+
arbitrum: "arbitrum",
|
|
4319
|
+
} as const;
|
|
4320
|
+
|
|
4321
|
+
export type SendEvmTransactionWithEndUserAccountBody = {
|
|
4322
|
+
/**
|
|
4323
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
4324
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
4325
|
+
*/
|
|
4326
|
+
address: string;
|
|
4327
|
+
/** The network to send the transaction to. */
|
|
4328
|
+
network: SendEvmTransactionWithEndUserAccountBodyNetwork;
|
|
4329
|
+
/**
|
|
4330
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4331
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4332
|
+
*/
|
|
4333
|
+
walletSecretId?: string;
|
|
4334
|
+
/** The RLP-encoded transaction to sign and send, as a 0x-prefixed hex string. */
|
|
4335
|
+
transaction: string;
|
|
4336
|
+
};
|
|
4337
|
+
|
|
4338
|
+
export type SendEvmTransactionWithEndUserAccount200 = {
|
|
4339
|
+
/** The hash of the transaction, as a 0x-prefixed hex string. */
|
|
4340
|
+
transactionHash: string;
|
|
4341
|
+
};
|
|
4342
|
+
|
|
4343
|
+
/**
|
|
4344
|
+
* The EVM network to send USDC on.
|
|
4345
|
+
*/
|
|
4346
|
+
export type SendEvmAssetWithEndUserAccountBodyNetwork =
|
|
4347
|
+
(typeof SendEvmAssetWithEndUserAccountBodyNetwork)[keyof typeof SendEvmAssetWithEndUserAccountBodyNetwork];
|
|
4348
|
+
|
|
4349
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
4350
|
+
export const SendEvmAssetWithEndUserAccountBodyNetwork = {
|
|
4351
|
+
base: "base",
|
|
4352
|
+
"base-sepolia": "base-sepolia",
|
|
4353
|
+
ethereum: "ethereum",
|
|
4354
|
+
"ethereum-sepolia": "ethereum-sepolia",
|
|
4355
|
+
avalanche: "avalanche",
|
|
4356
|
+
polygon: "polygon",
|
|
4357
|
+
optimism: "optimism",
|
|
4358
|
+
arbitrum: "arbitrum",
|
|
4359
|
+
} as const;
|
|
4360
|
+
|
|
4361
|
+
export type SendEvmAssetWithEndUserAccountBody = {
|
|
4362
|
+
/**
|
|
4363
|
+
* The 0x-prefixed address of the recipient.
|
|
4364
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
4365
|
+
*/
|
|
4366
|
+
to: BlockchainAddress;
|
|
4367
|
+
/**
|
|
4368
|
+
* The amount of USDC to send as a decimal string (e.g., "1.5" or "25.50").
|
|
4369
|
+
* @minLength 1
|
|
4370
|
+
* @maxLength 32
|
|
4371
|
+
*/
|
|
4372
|
+
amount: string;
|
|
4373
|
+
/** The EVM network to send USDC on. */
|
|
4374
|
+
network: SendEvmAssetWithEndUserAccountBodyNetwork;
|
|
4375
|
+
/** 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`. */
|
|
4376
|
+
useCdpPaymaster?: boolean;
|
|
4377
|
+
/** 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`. */
|
|
4378
|
+
paymasterUrl?: Url;
|
|
4379
|
+
/**
|
|
4380
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4381
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4382
|
+
*/
|
|
4383
|
+
walletSecretId?: string;
|
|
4384
|
+
};
|
|
4385
|
+
|
|
4386
|
+
export type SendEvmAssetWithEndUserAccount200 = {
|
|
4387
|
+
/**
|
|
4388
|
+
* The hash of the transaction, as a 0x-prefixed hex string. Populated for EOA accounts. Null for Smart Accounts (use userOpHash instead).
|
|
4389
|
+
* @nullable
|
|
4390
|
+
*/
|
|
4391
|
+
transactionHash?: string | null;
|
|
4392
|
+
/**
|
|
4393
|
+
* The hash of the user operation, as a 0x-prefixed hex string. Populated for Smart Accounts. Null for EOA accounts (use transactionHash instead).
|
|
4394
|
+
* @nullable
|
|
4395
|
+
*/
|
|
4396
|
+
userOpHash?: string | null;
|
|
4397
|
+
};
|
|
4398
|
+
|
|
4399
|
+
export type SignEvmMessageWithEndUserAccountBody = {
|
|
4400
|
+
/**
|
|
4401
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
4402
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
4403
|
+
*/
|
|
4404
|
+
address: string;
|
|
4405
|
+
/** The message to sign. */
|
|
4406
|
+
message: string;
|
|
4407
|
+
/**
|
|
4408
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4409
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4410
|
+
*/
|
|
4411
|
+
walletSecretId?: string;
|
|
4412
|
+
};
|
|
4413
|
+
|
|
4414
|
+
export type SignEvmMessageWithEndUserAccount200 = {
|
|
4415
|
+
/** The signature of the message, as a 0x-prefixed hex string. */
|
|
4416
|
+
signature: string;
|
|
4417
|
+
};
|
|
4418
|
+
|
|
4419
|
+
export type SignEvmTypedDataWithEndUserAccountBody = {
|
|
4420
|
+
/**
|
|
4421
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
4422
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
4423
|
+
*/
|
|
4424
|
+
address: string;
|
|
4425
|
+
typedData: EIP712Message;
|
|
4426
|
+
/**
|
|
4427
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4428
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4429
|
+
*/
|
|
4430
|
+
walletSecretId?: string;
|
|
4431
|
+
};
|
|
4432
|
+
|
|
4433
|
+
export type SignEvmTypedDataWithEndUserAccount200 = {
|
|
4434
|
+
/** The signature of the typed data, as a 0x-prefixed hex string. */
|
|
4435
|
+
signature: string;
|
|
4436
|
+
};
|
|
4437
|
+
|
|
4438
|
+
export type RevokeDelegationForEndUserBody = {
|
|
4439
|
+
/**
|
|
4440
|
+
* When revoking with a wallet authentication scheme, the ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4441
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4442
|
+
*/
|
|
4443
|
+
walletSecretId?: string;
|
|
4444
|
+
};
|
|
4445
|
+
|
|
4446
|
+
export type CreateEvmEip7702DelegationWithEndUserAccountBody = {
|
|
4447
|
+
/**
|
|
4448
|
+
* The 0x-prefixed address of the EVM account to delegate.
|
|
4449
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
4450
|
+
*/
|
|
4451
|
+
address: string;
|
|
4452
|
+
network: EvmEip7702DelegationNetwork;
|
|
4453
|
+
/** 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. */
|
|
4454
|
+
enableSpendPermissions?: boolean;
|
|
4455
|
+
/**
|
|
4456
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4457
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4458
|
+
*/
|
|
4459
|
+
walletSecretId?: string;
|
|
4460
|
+
};
|
|
4461
|
+
|
|
4462
|
+
export type CreateEvmEip7702DelegationWithEndUserAccount201 = {
|
|
4463
|
+
/** The unique identifier for the delegation operation. Use this to poll the operation status. */
|
|
4464
|
+
delegationOperationId: string;
|
|
4465
|
+
};
|
|
4466
|
+
|
|
4467
|
+
export type SendUserOperationWithEndUserAccountBody = {
|
|
4468
|
+
network: EvmUserOperationNetwork;
|
|
4469
|
+
/** The list of calls to make from the Smart Account. */
|
|
4470
|
+
calls: EvmCall[];
|
|
4471
|
+
/** Whether to use the CDP Paymaster for the user operation. */
|
|
4472
|
+
useCdpPaymaster: boolean;
|
|
4473
|
+
/** The URL of the paymaster to use for the user operation. If using the CDP Paymaster, use the `useCdpPaymaster` option. */
|
|
4474
|
+
paymasterUrl?: Url;
|
|
4475
|
+
/**
|
|
4476
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4477
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4478
|
+
*/
|
|
4479
|
+
walletSecretId?: string;
|
|
4480
|
+
/**
|
|
4481
|
+
* The EIP-8021 data suffix (hex-encoded) that enables transaction attribution for the user operation.
|
|
4482
|
+
* @pattern ^0x[0-9a-fA-F]+$
|
|
4483
|
+
*/
|
|
4484
|
+
dataSuffix?: string;
|
|
4485
|
+
};
|
|
4486
|
+
|
|
4487
|
+
export type SignSolanaHashWithEndUserAccountBody = {
|
|
4488
|
+
/** The arbitrary 32 byte hash to sign as base58 encoded string. */
|
|
4489
|
+
hash: string;
|
|
4490
|
+
/**
|
|
4491
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
4492
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
4493
|
+
*/
|
|
4494
|
+
address: string;
|
|
4495
|
+
/**
|
|
4496
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4497
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4498
|
+
*/
|
|
4499
|
+
walletSecretId?: string;
|
|
4500
|
+
};
|
|
4501
|
+
|
|
4502
|
+
export type SignSolanaHashWithEndUserAccount200 = {
|
|
4503
|
+
/** The signature of the hash, as a base58 encoded string. */
|
|
4504
|
+
signature: string;
|
|
4505
|
+
};
|
|
4506
|
+
|
|
4507
|
+
export type SignSolanaMessageWithEndUserAccountBody = {
|
|
4508
|
+
/**
|
|
4509
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
4510
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
4511
|
+
*/
|
|
4512
|
+
address: string;
|
|
4513
|
+
/** The base64 encoded arbitrary message to sign. */
|
|
4514
|
+
message: string;
|
|
4515
|
+
/**
|
|
4516
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4517
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4518
|
+
*/
|
|
4519
|
+
walletSecretId?: string;
|
|
4520
|
+
};
|
|
4521
|
+
|
|
4522
|
+
export type SignSolanaMessageWithEndUserAccount200 = {
|
|
4523
|
+
/** The signature of the message, as a base58 encoded string. */
|
|
4524
|
+
signature: string;
|
|
4525
|
+
};
|
|
4526
|
+
|
|
4527
|
+
export type SignSolanaTransactionWithEndUserAccountBody = {
|
|
4528
|
+
/**
|
|
4529
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
4530
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
4531
|
+
*/
|
|
4532
|
+
address: string;
|
|
4533
|
+
/** The base64 encoded transaction to sign. */
|
|
4534
|
+
transaction: string;
|
|
4535
|
+
/**
|
|
4536
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4537
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4538
|
+
*/
|
|
4539
|
+
walletSecretId?: string;
|
|
4540
|
+
};
|
|
4541
|
+
|
|
4542
|
+
export type SignSolanaTransactionWithEndUserAccount200 = {
|
|
4543
|
+
/** The base64 encoded signed transaction. */
|
|
4544
|
+
signedTransaction: string;
|
|
4545
|
+
};
|
|
4546
|
+
|
|
4547
|
+
/**
|
|
4548
|
+
* The Solana network to send the transaction to.
|
|
4549
|
+
*/
|
|
4550
|
+
export type SendSolanaTransactionWithEndUserAccountBodyNetwork =
|
|
4551
|
+
(typeof SendSolanaTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaTransactionWithEndUserAccountBodyNetwork];
|
|
4552
|
+
|
|
4553
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
4554
|
+
export const SendSolanaTransactionWithEndUserAccountBodyNetwork = {
|
|
4555
|
+
solana: "solana",
|
|
4556
|
+
"solana-devnet": "solana-devnet",
|
|
4557
|
+
} as const;
|
|
4558
|
+
|
|
4559
|
+
export type SendSolanaTransactionWithEndUserAccountBody = {
|
|
4560
|
+
/**
|
|
4561
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
4562
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
4563
|
+
*/
|
|
4564
|
+
address: string;
|
|
4565
|
+
/** The Solana network to send the transaction to. */
|
|
4566
|
+
network: SendSolanaTransactionWithEndUserAccountBodyNetwork;
|
|
4567
|
+
/**
|
|
4568
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4569
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4570
|
+
*/
|
|
4571
|
+
walletSecretId?: string;
|
|
4572
|
+
/** The base64 encoded transaction to sign and send. This transaction can contain multiple instructions for native Solana batching. */
|
|
4573
|
+
transaction: string;
|
|
4574
|
+
/** 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. */
|
|
4575
|
+
useCdpSponsor?: boolean;
|
|
4576
|
+
};
|
|
4577
|
+
|
|
4578
|
+
export type SendSolanaTransactionWithEndUserAccount200 = {
|
|
4579
|
+
/** The base58 encoded transaction signature. */
|
|
4580
|
+
transactionSignature: string;
|
|
4581
|
+
};
|
|
4582
|
+
|
|
4583
|
+
/**
|
|
4584
|
+
* The Solana network to send USDC on.
|
|
4585
|
+
*/
|
|
4586
|
+
export type SendSolanaAssetWithEndUserAccountBodyNetwork =
|
|
4587
|
+
(typeof SendSolanaAssetWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaAssetWithEndUserAccountBodyNetwork];
|
|
4588
|
+
|
|
4589
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
4590
|
+
export const SendSolanaAssetWithEndUserAccountBodyNetwork = {
|
|
4591
|
+
solana: "solana",
|
|
4592
|
+
"solana-devnet": "solana-devnet",
|
|
4593
|
+
} as const;
|
|
4594
|
+
|
|
4595
|
+
export type SendSolanaAssetWithEndUserAccountBody = {
|
|
4596
|
+
/**
|
|
4597
|
+
* The base58 encoded address of the recipient.
|
|
4598
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
4599
|
+
*/
|
|
4600
|
+
to: BlockchainAddress;
|
|
4601
|
+
/**
|
|
4602
|
+
* The amount of USDC to send as a decimal string (e.g., "1.5" or "25.50").
|
|
4603
|
+
* @minLength 1
|
|
4604
|
+
* @maxLength 32
|
|
4605
|
+
*/
|
|
4606
|
+
amount: string;
|
|
4607
|
+
/** The Solana network to send USDC on. */
|
|
4608
|
+
network: SendSolanaAssetWithEndUserAccountBodyNetwork;
|
|
4609
|
+
/** 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. */
|
|
4610
|
+
createRecipientAta?: boolean;
|
|
4611
|
+
/**
|
|
4612
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
4613
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
4614
|
+
*/
|
|
4615
|
+
walletSecretId?: string;
|
|
4616
|
+
/** 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. */
|
|
4617
|
+
useCdpSponsor?: boolean;
|
|
4618
|
+
};
|
|
4619
|
+
|
|
4620
|
+
export type SendSolanaAssetWithEndUserAccount200 = {
|
|
4621
|
+
/** The base58 encoded transaction signature. */
|
|
4622
|
+
transactionSignature: string;
|
|
4623
|
+
};
|
|
4624
|
+
|
|
4214
4625
|
export type ListEvmAccountsParams = {
|
|
4215
4626
|
/**
|
|
4216
4627
|
* The number of resources to return per page.
|
|
@@ -4769,6 +5180,7 @@ export type RequestSolanaFaucetBodyToken =
|
|
|
4769
5180
|
export const RequestSolanaFaucetBodyToken = {
|
|
4770
5181
|
sol: "sol",
|
|
4771
5182
|
usdc: "usdc",
|
|
5183
|
+
cbtusd: "cbtusd",
|
|
4772
5184
|
} as const;
|
|
4773
5185
|
|
|
4774
5186
|
export type RequestSolanaFaucetBody = {
|
|
@@ -4825,6 +5237,8 @@ export type ListDataTokenBalances200 = ListDataTokenBalances200AllOf & ListRespo
|
|
|
4825
5237
|
export type ListWebhookSubscriptionsParams = {
|
|
4826
5238
|
/**
|
|
4827
5239
|
* The number of subscriptions to return per page.
|
|
5240
|
+
* @minimum 1
|
|
5241
|
+
* @maximum 100
|
|
4828
5242
|
*/
|
|
4829
5243
|
pageSize?: number;
|
|
4830
5244
|
/**
|