@coinbase/cdp-sdk 1.45.0 → 1.46.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 +14 -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.
|
|
@@ -67,6 +67,7 @@ export declare const OAuth2ProviderType: {
|
|
|
67
67
|
readonly apple: "apple";
|
|
68
68
|
readonly x: "x";
|
|
69
69
|
readonly telegram: "telegram";
|
|
70
|
+
readonly github: "github";
|
|
70
71
|
};
|
|
71
72
|
/**
|
|
72
73
|
* Information about an end user who authenticates using a third-party provider.
|
|
@@ -274,6 +275,9 @@ export declare const ErrorType: {
|
|
|
274
275
|
readonly order_already_filled: "order_already_filled";
|
|
275
276
|
readonly order_already_canceled: "order_already_canceled";
|
|
276
277
|
readonly account_not_ready: "account_not_ready";
|
|
278
|
+
readonly insufficient_liquidity: "insufficient_liquidity";
|
|
279
|
+
readonly insufficient_allowance: "insufficient_allowance";
|
|
280
|
+
readonly transaction_simulation_failed: "transaction_simulation_failed";
|
|
277
281
|
};
|
|
278
282
|
/**
|
|
279
283
|
* A valid HTTP or HTTPS URL.
|
|
@@ -294,26 +298,18 @@ export interface Error {
|
|
|
294
298
|
/** A link to the corresponding error documentation. */
|
|
295
299
|
errorLink?: Url;
|
|
296
300
|
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
name?: string;
|
|
310
|
-
/** 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. */
|
|
311
|
-
policies?: string[];
|
|
312
|
-
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
313
|
-
createdAt?: string;
|
|
314
|
-
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
315
|
-
updatedAt?: string;
|
|
316
|
-
}
|
|
301
|
+
/**
|
|
302
|
+
* A blockchain address. Format varies by network (e.g., 0x-prefixed for EVM, base58 for Solana).
|
|
303
|
+
* @minLength 1
|
|
304
|
+
* @maxLength 128
|
|
305
|
+
*/
|
|
306
|
+
export type BlockchainAddress = string;
|
|
307
|
+
/**
|
|
308
|
+
* The symbol of the asset (e.g., eth, usd, usdc, usdt).
|
|
309
|
+
* @minLength 1
|
|
310
|
+
* @maxLength 42
|
|
311
|
+
*/
|
|
312
|
+
export type Asset = string;
|
|
317
313
|
/**
|
|
318
314
|
* The domain of the EIP-712 typed data.
|
|
319
315
|
*/
|
|
@@ -373,61 +369,6 @@ export declare const EvmEip7702DelegationNetwork: {
|
|
|
373
369
|
readonly ethereum: "ethereum";
|
|
374
370
|
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
375
371
|
};
|
|
376
|
-
/**
|
|
377
|
-
* The current status of the delegation operation.
|
|
378
|
-
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.
|
|
379
|
-
*/
|
|
380
|
-
export type EvmEip7702DelegationOperationStatus = (typeof EvmEip7702DelegationOperationStatus)[keyof typeof EvmEip7702DelegationOperationStatus];
|
|
381
|
-
export declare const EvmEip7702DelegationOperationStatus: {
|
|
382
|
-
readonly UNSPECIFIED: "UNSPECIFIED";
|
|
383
|
-
readonly PENDING: "PENDING";
|
|
384
|
-
readonly SUBMITTED: "SUBMITTED";
|
|
385
|
-
readonly COMPLETED: "COMPLETED";
|
|
386
|
-
readonly FAILED: "FAILED";
|
|
387
|
-
};
|
|
388
|
-
/**
|
|
389
|
-
* The status of an EIP-7702 delegation operation.
|
|
390
|
-
*/
|
|
391
|
-
export interface EvmEip7702DelegationOperation {
|
|
392
|
-
/** The unique identifier for the delegation operation. */
|
|
393
|
-
delegationOperationId: string;
|
|
394
|
-
/** The current status of the delegation operation.
|
|
395
|
-
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. */
|
|
396
|
-
status: EvmEip7702DelegationOperationStatus;
|
|
397
|
-
/**
|
|
398
|
-
* The hash of the delegation transaction, if available. Present once the transaction has been submitted to the network.
|
|
399
|
-
* @pattern ^0x[0-9a-fA-F]{64}$
|
|
400
|
-
*/
|
|
401
|
-
transactionHash?: string;
|
|
402
|
-
network: EvmEip7702DelegationNetwork;
|
|
403
|
-
/**
|
|
404
|
-
* The address the account has delegated to, if any. Only present when the account has an active delegation.
|
|
405
|
-
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
406
|
-
*/
|
|
407
|
-
delegateAddress?: string;
|
|
408
|
-
}
|
|
409
|
-
export interface EvmSmartAccount {
|
|
410
|
-
/**
|
|
411
|
-
* The 0x-prefixed, checksum address of the Smart Account.
|
|
412
|
-
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
413
|
-
*/
|
|
414
|
-
address: string;
|
|
415
|
-
/** 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. */
|
|
416
|
-
owners: string[];
|
|
417
|
-
/**
|
|
418
|
-
* An optional name for the account.
|
|
419
|
-
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
420
|
-
Account names are guaranteed to be unique across all Smart Accounts in the developer's CDP Project.
|
|
421
|
-
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
422
|
-
*/
|
|
423
|
-
name?: string;
|
|
424
|
-
/** 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. */
|
|
425
|
-
policies?: string[];
|
|
426
|
-
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
427
|
-
createdAt?: string;
|
|
428
|
-
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
429
|
-
updatedAt?: string;
|
|
430
|
-
}
|
|
431
372
|
/**
|
|
432
373
|
* The network the user operation is for.
|
|
433
374
|
*/
|
|
@@ -537,6 +478,98 @@ export declare const SpendPermissionNetwork: {
|
|
|
537
478
|
readonly avalanche: "avalanche";
|
|
538
479
|
readonly polygon: "polygon";
|
|
539
480
|
};
|
|
481
|
+
/**
|
|
482
|
+
* Request parameters for revoking a Spend Permission.
|
|
483
|
+
*/
|
|
484
|
+
export interface RevokeSpendPermissionRequest {
|
|
485
|
+
/**
|
|
486
|
+
* The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
487
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
488
|
+
*/
|
|
489
|
+
walletSecretId: string;
|
|
490
|
+
network: SpendPermissionNetwork;
|
|
491
|
+
/** The hash of the spend permission to revoke. */
|
|
492
|
+
permissionHash: string;
|
|
493
|
+
/** Whether to use the CDP Paymaster for the user operation. */
|
|
494
|
+
useCdpPaymaster: boolean;
|
|
495
|
+
/** The paymaster URL of the spend permission. */
|
|
496
|
+
paymasterUrl?: Url;
|
|
497
|
+
}
|
|
498
|
+
export interface EvmAccount {
|
|
499
|
+
/**
|
|
500
|
+
* The 0x-prefixed, checksum EVM address.
|
|
501
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
502
|
+
*/
|
|
503
|
+
address: string;
|
|
504
|
+
/**
|
|
505
|
+
* An optional name for the account.
|
|
506
|
+
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
507
|
+
Account names are guaranteed to be unique across all EVM accounts in the developer's CDP Project.
|
|
508
|
+
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
509
|
+
*/
|
|
510
|
+
name?: string;
|
|
511
|
+
/** 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. */
|
|
512
|
+
policies?: string[];
|
|
513
|
+
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
514
|
+
createdAt?: string;
|
|
515
|
+
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
516
|
+
updatedAt?: string;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* The current status of the delegation operation.
|
|
520
|
+
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.
|
|
521
|
+
*/
|
|
522
|
+
export type EvmEip7702DelegationOperationStatus = (typeof EvmEip7702DelegationOperationStatus)[keyof typeof EvmEip7702DelegationOperationStatus];
|
|
523
|
+
export declare const EvmEip7702DelegationOperationStatus: {
|
|
524
|
+
readonly UNSPECIFIED: "UNSPECIFIED";
|
|
525
|
+
readonly PENDING: "PENDING";
|
|
526
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
527
|
+
readonly COMPLETED: "COMPLETED";
|
|
528
|
+
readonly FAILED: "FAILED";
|
|
529
|
+
};
|
|
530
|
+
/**
|
|
531
|
+
* The status of an EIP-7702 delegation operation.
|
|
532
|
+
*/
|
|
533
|
+
export interface EvmEip7702DelegationOperation {
|
|
534
|
+
/** The unique identifier for the delegation operation. */
|
|
535
|
+
delegationOperationId: string;
|
|
536
|
+
/** The current status of the delegation operation.
|
|
537
|
+
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. */
|
|
538
|
+
status: EvmEip7702DelegationOperationStatus;
|
|
539
|
+
/**
|
|
540
|
+
* The hash of the delegation transaction, if available. Present once the transaction has been submitted to the network.
|
|
541
|
+
* @pattern ^0x[0-9a-fA-F]{64}$
|
|
542
|
+
*/
|
|
543
|
+
transactionHash?: string;
|
|
544
|
+
network: EvmEip7702DelegationNetwork;
|
|
545
|
+
/**
|
|
546
|
+
* The address the account has delegated to, if any. Only present when the account has an active delegation.
|
|
547
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
548
|
+
*/
|
|
549
|
+
delegateAddress?: string;
|
|
550
|
+
}
|
|
551
|
+
export interface EvmSmartAccount {
|
|
552
|
+
/**
|
|
553
|
+
* The 0x-prefixed, checksum address of the Smart Account.
|
|
554
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
555
|
+
*/
|
|
556
|
+
address: string;
|
|
557
|
+
/** 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. */
|
|
558
|
+
owners: string[];
|
|
559
|
+
/**
|
|
560
|
+
* An optional name for the account.
|
|
561
|
+
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
562
|
+
Account names are guaranteed to be unique across all Smart Accounts in the developer's CDP Project.
|
|
563
|
+
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
564
|
+
*/
|
|
565
|
+
name?: string;
|
|
566
|
+
/** 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. */
|
|
567
|
+
policies?: string[];
|
|
568
|
+
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
569
|
+
createdAt?: string;
|
|
570
|
+
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
571
|
+
updatedAt?: string;
|
|
572
|
+
}
|
|
540
573
|
/**
|
|
541
574
|
* Request parameters for creating a Spend Permission.
|
|
542
575
|
*/
|
|
@@ -614,7 +647,7 @@ export interface SpendPermissionResponseObject {
|
|
|
614
647
|
/**
|
|
615
648
|
* Request parameters for revoking a Spend Permission.
|
|
616
649
|
*/
|
|
617
|
-
export interface
|
|
650
|
+
export interface EvmSpendPermissionsRevokeSpendPermissionRequest {
|
|
618
651
|
network: SpendPermissionNetwork;
|
|
619
652
|
/** The hash of the spend permission to revoke. */
|
|
620
653
|
permissionHash: string;
|
|
@@ -2412,6 +2445,8 @@ export type WebhookSubscriptionResponseLabels = {
|
|
|
2412
2445
|
export interface WebhookSubscriptionResponse {
|
|
2413
2446
|
/** When the subscription was created. */
|
|
2414
2447
|
createdAt: string;
|
|
2448
|
+
/** When the subscription was last updated. */
|
|
2449
|
+
updatedAt?: string;
|
|
2415
2450
|
/** Description of the webhook subscription. */
|
|
2416
2451
|
description?: Description;
|
|
2417
2452
|
/** Types of events to subscribe to. Event types follow a three-part dot-separated format:
|
|
@@ -2635,40 +2670,6 @@ export interface X402ExactSolanaPayload {
|
|
|
2635
2670
|
/** The base64-encoded Solana transaction. */
|
|
2636
2671
|
transaction: string;
|
|
2637
2672
|
}
|
|
2638
|
-
/**
|
|
2639
|
-
* The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
|
|
2640
|
-
*/
|
|
2641
|
-
export type X402V1PaymentPayloadScheme = (typeof X402V1PaymentPayloadScheme)[keyof typeof X402V1PaymentPayloadScheme];
|
|
2642
|
-
export declare const X402V1PaymentPayloadScheme: {
|
|
2643
|
-
readonly exact: "exact";
|
|
2644
|
-
};
|
|
2645
|
-
/**
|
|
2646
|
-
* The network of the blockchain to send payment on.
|
|
2647
|
-
*/
|
|
2648
|
-
export type X402V1PaymentPayloadNetwork = (typeof X402V1PaymentPayloadNetwork)[keyof typeof X402V1PaymentPayloadNetwork];
|
|
2649
|
-
export declare const X402V1PaymentPayloadNetwork: {
|
|
2650
|
-
readonly "base-sepolia": "base-sepolia";
|
|
2651
|
-
readonly base: "base";
|
|
2652
|
-
readonly "solana-devnet": "solana-devnet";
|
|
2653
|
-
readonly solana: "solana";
|
|
2654
|
-
readonly polygon: "polygon";
|
|
2655
|
-
};
|
|
2656
|
-
/**
|
|
2657
|
-
* The payload of the payment depending on the x402Version, scheme, and network.
|
|
2658
|
-
*/
|
|
2659
|
-
export type X402V1PaymentPayloadPayload = X402ExactEvmPayload | X402ExactEvmPermit2Payload | X402ExactSolanaPayload;
|
|
2660
|
-
/**
|
|
2661
|
-
* The x402 protocol payment payload that the client attaches to x402-paid API requests to the resource server in the X-PAYMENT header.
|
|
2662
|
-
*/
|
|
2663
|
-
export interface X402V1PaymentPayload {
|
|
2664
|
-
x402Version: X402Version;
|
|
2665
|
-
/** The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`. */
|
|
2666
|
-
scheme: X402V1PaymentPayloadScheme;
|
|
2667
|
-
/** The network of the blockchain to send payment on. */
|
|
2668
|
-
network: X402V1PaymentPayloadNetwork;
|
|
2669
|
-
/** The payload of the payment depending on the x402Version, scheme, and network. */
|
|
2670
|
-
payload: X402V1PaymentPayloadPayload;
|
|
2671
|
-
}
|
|
2672
2673
|
/**
|
|
2673
2674
|
* The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
|
|
2674
2675
|
*/
|
|
@@ -2748,11 +2749,45 @@ export interface X402V2PaymentPayload {
|
|
|
2748
2749
|
/** Optional protocol extensions. */
|
|
2749
2750
|
extensions?: X402V2PaymentPayloadExtensions;
|
|
2750
2751
|
}
|
|
2752
|
+
/**
|
|
2753
|
+
* The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
|
|
2754
|
+
*/
|
|
2755
|
+
export type X402V1PaymentPayloadScheme = (typeof X402V1PaymentPayloadScheme)[keyof typeof X402V1PaymentPayloadScheme];
|
|
2756
|
+
export declare const X402V1PaymentPayloadScheme: {
|
|
2757
|
+
readonly exact: "exact";
|
|
2758
|
+
};
|
|
2759
|
+
/**
|
|
2760
|
+
* The network of the blockchain to send payment on.
|
|
2761
|
+
*/
|
|
2762
|
+
export type X402V1PaymentPayloadNetwork = (typeof X402V1PaymentPayloadNetwork)[keyof typeof X402V1PaymentPayloadNetwork];
|
|
2763
|
+
export declare const X402V1PaymentPayloadNetwork: {
|
|
2764
|
+
readonly "base-sepolia": "base-sepolia";
|
|
2765
|
+
readonly base: "base";
|
|
2766
|
+
readonly "solana-devnet": "solana-devnet";
|
|
2767
|
+
readonly solana: "solana";
|
|
2768
|
+
readonly polygon: "polygon";
|
|
2769
|
+
};
|
|
2770
|
+
/**
|
|
2771
|
+
* The payload of the payment depending on the x402Version, scheme, and network.
|
|
2772
|
+
*/
|
|
2773
|
+
export type X402V1PaymentPayloadPayload = X402ExactEvmPayload | X402ExactEvmPermit2Payload | X402ExactSolanaPayload;
|
|
2774
|
+
/**
|
|
2775
|
+
* The x402 protocol payment payload that the client attaches to x402-paid API requests to the resource server in the X-PAYMENT header.
|
|
2776
|
+
*/
|
|
2777
|
+
export interface X402V1PaymentPayload {
|
|
2778
|
+
x402Version: X402Version;
|
|
2779
|
+
/** The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`. */
|
|
2780
|
+
scheme: X402V1PaymentPayloadScheme;
|
|
2781
|
+
/** The network of the blockchain to send payment on. */
|
|
2782
|
+
network: X402V1PaymentPayloadNetwork;
|
|
2783
|
+
/** The payload of the payment depending on the x402Version, scheme, and network. */
|
|
2784
|
+
payload: X402V1PaymentPayloadPayload;
|
|
2785
|
+
}
|
|
2751
2786
|
/**
|
|
2752
2787
|
* The x402 protocol payment payload that the client attaches to x402-paid API requests to the resource server in the X-PAYMENT header.
|
|
2753
2788
|
For EVM networks, smart account signatures can be longer than 65 bytes.
|
|
2754
2789
|
*/
|
|
2755
|
-
export type X402PaymentPayload =
|
|
2790
|
+
export type X402PaymentPayload = X402V2PaymentPayload | X402V1PaymentPayload;
|
|
2756
2791
|
/**
|
|
2757
2792
|
* The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
|
|
2758
2793
|
*/
|
|
@@ -2827,7 +2862,7 @@ export interface X402V1PaymentRequirements {
|
|
|
2827
2862
|
/**
|
|
2828
2863
|
* The x402 protocol payment requirements that the resource server expects the client's payment payload to meet.
|
|
2829
2864
|
*/
|
|
2830
|
-
export type X402PaymentRequirements =
|
|
2865
|
+
export type X402PaymentRequirements = X402V2PaymentRequirements | X402V1PaymentRequirements;
|
|
2831
2866
|
/**
|
|
2832
2867
|
* The reason the payment is invalid on the x402 protocol.
|
|
2833
2868
|
*/
|
|
@@ -3019,12 +3054,6 @@ export interface X402SupportedPaymentKind {
|
|
|
3019
3054
|
/** The optional additional scheme-specific payment info. */
|
|
3020
3055
|
extra?: X402SupportedPaymentKindExtra;
|
|
3021
3056
|
}
|
|
3022
|
-
/**
|
|
3023
|
-
* A blockchain address. Format varies by network (e.g., 0x-prefixed for EVM, base58 for Solana).
|
|
3024
|
-
* @minLength 1
|
|
3025
|
-
* @maxLength 128
|
|
3026
|
-
*/
|
|
3027
|
-
export type BlockchainAddress = string;
|
|
3028
3057
|
/**
|
|
3029
3058
|
* The type of payment method to be used to complete an onramp order.
|
|
3030
3059
|
*/
|
|
@@ -3319,6 +3348,20 @@ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/i
|
|
|
3319
3348
|
|
|
3320
3349
|
*/
|
|
3321
3350
|
export type IdempotencyKeyParameter = string;
|
|
3351
|
+
/**
|
|
3352
|
+
* A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
3353
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
3354
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
3355
|
+
|
|
3356
|
+
*/
|
|
3357
|
+
export type XDeveloperAuthParameter = string;
|
|
3358
|
+
/**
|
|
3359
|
+
* A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
3360
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
3361
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
3362
|
+
|
|
3363
|
+
*/
|
|
3364
|
+
export type XWalletAuthOptionalParameter = string;
|
|
3322
3365
|
/**
|
|
3323
3366
|
* The number of resources to return per page.
|
|
3324
3367
|
*/
|
|
@@ -3360,6 +3403,8 @@ export type CreateEndUserBody = {
|
|
|
3360
3403
|
export type ListEndUsersParams = {
|
|
3361
3404
|
/**
|
|
3362
3405
|
* The number of end users to return per page.
|
|
3406
|
+
* @minimum 1
|
|
3407
|
+
* @maximum 100
|
|
3363
3408
|
*/
|
|
3364
3409
|
pageSize?: number;
|
|
3365
3410
|
/**
|
|
@@ -3427,6 +3472,326 @@ export type ImportEndUserBody = {
|
|
|
3427
3472
|
/** The type of key being imported. Determines what type of account will be associated for the end user. */
|
|
3428
3473
|
keyType: ImportEndUserBodyKeyType;
|
|
3429
3474
|
};
|
|
3475
|
+
export type SignEvmHashWithEndUserAccountBody = {
|
|
3476
|
+
/** The arbitrary 32 byte hash to sign. */
|
|
3477
|
+
hash: string;
|
|
3478
|
+
/**
|
|
3479
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
3480
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3481
|
+
*/
|
|
3482
|
+
address: string;
|
|
3483
|
+
/**
|
|
3484
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3485
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3486
|
+
*/
|
|
3487
|
+
walletSecretId?: string;
|
|
3488
|
+
};
|
|
3489
|
+
export type SignEvmHashWithEndUserAccount200 = {
|
|
3490
|
+
/** The signature of the hash, as a 0x-prefixed hex string. */
|
|
3491
|
+
signature: string;
|
|
3492
|
+
};
|
|
3493
|
+
export type SignEvmTransactionWithEndUserAccountBody = {
|
|
3494
|
+
/**
|
|
3495
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
3496
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3497
|
+
*/
|
|
3498
|
+
address: string;
|
|
3499
|
+
/** The RLP-encoded transaction to sign, as a 0x-prefixed hex string. */
|
|
3500
|
+
transaction: string;
|
|
3501
|
+
/**
|
|
3502
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3503
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3504
|
+
*/
|
|
3505
|
+
walletSecretId?: string;
|
|
3506
|
+
};
|
|
3507
|
+
export type SignEvmTransactionWithEndUserAccount200 = {
|
|
3508
|
+
/** The RLP-encoded signed transaction, as a 0x-prefixed hex string. */
|
|
3509
|
+
signedTransaction: string;
|
|
3510
|
+
};
|
|
3511
|
+
/**
|
|
3512
|
+
* The network to send the transaction to.
|
|
3513
|
+
*/
|
|
3514
|
+
export type SendEvmTransactionWithEndUserAccountBodyNetwork = (typeof SendEvmTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendEvmTransactionWithEndUserAccountBodyNetwork];
|
|
3515
|
+
export declare const SendEvmTransactionWithEndUserAccountBodyNetwork: {
|
|
3516
|
+
readonly base: "base";
|
|
3517
|
+
readonly "base-sepolia": "base-sepolia";
|
|
3518
|
+
readonly ethereum: "ethereum";
|
|
3519
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
3520
|
+
readonly avalanche: "avalanche";
|
|
3521
|
+
readonly polygon: "polygon";
|
|
3522
|
+
readonly optimism: "optimism";
|
|
3523
|
+
readonly arbitrum: "arbitrum";
|
|
3524
|
+
};
|
|
3525
|
+
export type SendEvmTransactionWithEndUserAccountBody = {
|
|
3526
|
+
/**
|
|
3527
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
3528
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3529
|
+
*/
|
|
3530
|
+
address: string;
|
|
3531
|
+
/** The network to send the transaction to. */
|
|
3532
|
+
network: SendEvmTransactionWithEndUserAccountBodyNetwork;
|
|
3533
|
+
/**
|
|
3534
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3535
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3536
|
+
*/
|
|
3537
|
+
walletSecretId?: string;
|
|
3538
|
+
/** The RLP-encoded transaction to sign and send, as a 0x-prefixed hex string. */
|
|
3539
|
+
transaction: string;
|
|
3540
|
+
};
|
|
3541
|
+
export type SendEvmTransactionWithEndUserAccount200 = {
|
|
3542
|
+
/** The hash of the transaction, as a 0x-prefixed hex string. */
|
|
3543
|
+
transactionHash: string;
|
|
3544
|
+
};
|
|
3545
|
+
/**
|
|
3546
|
+
* The EVM network to send USDC on.
|
|
3547
|
+
*/
|
|
3548
|
+
export type SendEvmAssetWithEndUserAccountBodyNetwork = (typeof SendEvmAssetWithEndUserAccountBodyNetwork)[keyof typeof SendEvmAssetWithEndUserAccountBodyNetwork];
|
|
3549
|
+
export declare const SendEvmAssetWithEndUserAccountBodyNetwork: {
|
|
3550
|
+
readonly base: "base";
|
|
3551
|
+
readonly "base-sepolia": "base-sepolia";
|
|
3552
|
+
readonly ethereum: "ethereum";
|
|
3553
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
3554
|
+
readonly avalanche: "avalanche";
|
|
3555
|
+
readonly polygon: "polygon";
|
|
3556
|
+
readonly optimism: "optimism";
|
|
3557
|
+
readonly arbitrum: "arbitrum";
|
|
3558
|
+
};
|
|
3559
|
+
export type SendEvmAssetWithEndUserAccountBody = {
|
|
3560
|
+
/**
|
|
3561
|
+
* The 0x-prefixed address of the recipient.
|
|
3562
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3563
|
+
*/
|
|
3564
|
+
to: BlockchainAddress;
|
|
3565
|
+
/**
|
|
3566
|
+
* The amount of USDC to send as a decimal string (e.g., "1.5" or "25.50").
|
|
3567
|
+
* @minLength 1
|
|
3568
|
+
* @maxLength 32
|
|
3569
|
+
*/
|
|
3570
|
+
amount: string;
|
|
3571
|
+
/** The EVM network to send USDC on. */
|
|
3572
|
+
network: SendEvmAssetWithEndUserAccountBodyNetwork;
|
|
3573
|
+
/** 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`. */
|
|
3574
|
+
useCdpPaymaster?: boolean;
|
|
3575
|
+
/** 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`. */
|
|
3576
|
+
paymasterUrl?: Url;
|
|
3577
|
+
/**
|
|
3578
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3579
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3580
|
+
*/
|
|
3581
|
+
walletSecretId?: string;
|
|
3582
|
+
};
|
|
3583
|
+
export type SendEvmAssetWithEndUserAccount200 = {
|
|
3584
|
+
/**
|
|
3585
|
+
* The hash of the transaction, as a 0x-prefixed hex string. Populated for EOA accounts. Null for Smart Accounts (use userOpHash instead).
|
|
3586
|
+
* @nullable
|
|
3587
|
+
*/
|
|
3588
|
+
transactionHash?: string | null;
|
|
3589
|
+
/**
|
|
3590
|
+
* The hash of the user operation, as a 0x-prefixed hex string. Populated for Smart Accounts. Null for EOA accounts (use transactionHash instead).
|
|
3591
|
+
* @nullable
|
|
3592
|
+
*/
|
|
3593
|
+
userOpHash?: string | null;
|
|
3594
|
+
};
|
|
3595
|
+
export type SignEvmMessageWithEndUserAccountBody = {
|
|
3596
|
+
/**
|
|
3597
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
3598
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3599
|
+
*/
|
|
3600
|
+
address: string;
|
|
3601
|
+
/** The message to sign. */
|
|
3602
|
+
message: string;
|
|
3603
|
+
/**
|
|
3604
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3605
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3606
|
+
*/
|
|
3607
|
+
walletSecretId?: string;
|
|
3608
|
+
};
|
|
3609
|
+
export type SignEvmMessageWithEndUserAccount200 = {
|
|
3610
|
+
/** The signature of the message, as a 0x-prefixed hex string. */
|
|
3611
|
+
signature: string;
|
|
3612
|
+
};
|
|
3613
|
+
export type SignEvmTypedDataWithEndUserAccountBody = {
|
|
3614
|
+
/**
|
|
3615
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
3616
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3617
|
+
*/
|
|
3618
|
+
address: string;
|
|
3619
|
+
typedData: EIP712Message;
|
|
3620
|
+
/**
|
|
3621
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3622
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3623
|
+
*/
|
|
3624
|
+
walletSecretId?: string;
|
|
3625
|
+
};
|
|
3626
|
+
export type SignEvmTypedDataWithEndUserAccount200 = {
|
|
3627
|
+
/** The signature of the typed data, as a 0x-prefixed hex string. */
|
|
3628
|
+
signature: string;
|
|
3629
|
+
};
|
|
3630
|
+
export type RevokeDelegationForEndUserBody = {
|
|
3631
|
+
/**
|
|
3632
|
+
* When revoking with a wallet authentication scheme, the ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3633
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3634
|
+
*/
|
|
3635
|
+
walletSecretId?: string;
|
|
3636
|
+
};
|
|
3637
|
+
export type CreateEvmEip7702DelegationWithEndUserAccountBody = {
|
|
3638
|
+
/**
|
|
3639
|
+
* The 0x-prefixed address of the EVM account to delegate.
|
|
3640
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3641
|
+
*/
|
|
3642
|
+
address: string;
|
|
3643
|
+
network: EvmEip7702DelegationNetwork;
|
|
3644
|
+
/** 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. */
|
|
3645
|
+
enableSpendPermissions?: boolean;
|
|
3646
|
+
/**
|
|
3647
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3648
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3649
|
+
*/
|
|
3650
|
+
walletSecretId?: string;
|
|
3651
|
+
};
|
|
3652
|
+
export type CreateEvmEip7702DelegationWithEndUserAccount201 = {
|
|
3653
|
+
/** The unique identifier for the delegation operation. Use this to poll the operation status. */
|
|
3654
|
+
delegationOperationId: string;
|
|
3655
|
+
};
|
|
3656
|
+
export type SendUserOperationWithEndUserAccountBody = {
|
|
3657
|
+
network: EvmUserOperationNetwork;
|
|
3658
|
+
/** The list of calls to make from the Smart Account. */
|
|
3659
|
+
calls: EvmCall[];
|
|
3660
|
+
/** Whether to use the CDP Paymaster for the user operation. */
|
|
3661
|
+
useCdpPaymaster: boolean;
|
|
3662
|
+
/** The URL of the paymaster to use for the user operation. If using the CDP Paymaster, use the `useCdpPaymaster` option. */
|
|
3663
|
+
paymasterUrl?: Url;
|
|
3664
|
+
/**
|
|
3665
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3666
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3667
|
+
*/
|
|
3668
|
+
walletSecretId?: string;
|
|
3669
|
+
/**
|
|
3670
|
+
* The EIP-8021 data suffix (hex-encoded) that enables transaction attribution for the user operation.
|
|
3671
|
+
* @pattern ^0x[0-9a-fA-F]+$
|
|
3672
|
+
*/
|
|
3673
|
+
dataSuffix?: string;
|
|
3674
|
+
};
|
|
3675
|
+
export type SignSolanaHashWithEndUserAccountBody = {
|
|
3676
|
+
/** The arbitrary 32 byte hash to sign as base58 encoded string. */
|
|
3677
|
+
hash: string;
|
|
3678
|
+
/**
|
|
3679
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
3680
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
3681
|
+
*/
|
|
3682
|
+
address: string;
|
|
3683
|
+
/**
|
|
3684
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3685
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3686
|
+
*/
|
|
3687
|
+
walletSecretId?: string;
|
|
3688
|
+
};
|
|
3689
|
+
export type SignSolanaHashWithEndUserAccount200 = {
|
|
3690
|
+
/** The signature of the hash, as a base58 encoded string. */
|
|
3691
|
+
signature: string;
|
|
3692
|
+
};
|
|
3693
|
+
export type SignSolanaMessageWithEndUserAccountBody = {
|
|
3694
|
+
/**
|
|
3695
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
3696
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
3697
|
+
*/
|
|
3698
|
+
address: string;
|
|
3699
|
+
/** The base64 encoded arbitrary message to sign. */
|
|
3700
|
+
message: string;
|
|
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 SignSolanaMessageWithEndUserAccount200 = {
|
|
3708
|
+
/** The signature of the message, as a base58 encoded string. */
|
|
3709
|
+
signature: string;
|
|
3710
|
+
};
|
|
3711
|
+
export type SignSolanaTransactionWithEndUserAccountBody = {
|
|
3712
|
+
/**
|
|
3713
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
3714
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
3715
|
+
*/
|
|
3716
|
+
address: string;
|
|
3717
|
+
/** The base64 encoded transaction to sign. */
|
|
3718
|
+
transaction: string;
|
|
3719
|
+
/**
|
|
3720
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3721
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3722
|
+
*/
|
|
3723
|
+
walletSecretId?: string;
|
|
3724
|
+
};
|
|
3725
|
+
export type SignSolanaTransactionWithEndUserAccount200 = {
|
|
3726
|
+
/** The base64 encoded signed transaction. */
|
|
3727
|
+
signedTransaction: string;
|
|
3728
|
+
};
|
|
3729
|
+
/**
|
|
3730
|
+
* The Solana network to send the transaction to.
|
|
3731
|
+
*/
|
|
3732
|
+
export type SendSolanaTransactionWithEndUserAccountBodyNetwork = (typeof SendSolanaTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaTransactionWithEndUserAccountBodyNetwork];
|
|
3733
|
+
export declare const SendSolanaTransactionWithEndUserAccountBodyNetwork: {
|
|
3734
|
+
readonly solana: "solana";
|
|
3735
|
+
readonly "solana-devnet": "solana-devnet";
|
|
3736
|
+
};
|
|
3737
|
+
export type SendSolanaTransactionWithEndUserAccountBody = {
|
|
3738
|
+
/**
|
|
3739
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
3740
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
3741
|
+
*/
|
|
3742
|
+
address: string;
|
|
3743
|
+
/** The Solana network to send the transaction to. */
|
|
3744
|
+
network: SendSolanaTransactionWithEndUserAccountBodyNetwork;
|
|
3745
|
+
/**
|
|
3746
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3747
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3748
|
+
*/
|
|
3749
|
+
walletSecretId?: string;
|
|
3750
|
+
/** The base64 encoded transaction to sign and send. This transaction can contain multiple instructions for native Solana batching. */
|
|
3751
|
+
transaction: string;
|
|
3752
|
+
/** 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. */
|
|
3753
|
+
useCdpSponsor?: boolean;
|
|
3754
|
+
};
|
|
3755
|
+
export type SendSolanaTransactionWithEndUserAccount200 = {
|
|
3756
|
+
/** The base58 encoded transaction signature. */
|
|
3757
|
+
transactionSignature: string;
|
|
3758
|
+
};
|
|
3759
|
+
/**
|
|
3760
|
+
* The Solana network to send USDC on.
|
|
3761
|
+
*/
|
|
3762
|
+
export type SendSolanaAssetWithEndUserAccountBodyNetwork = (typeof SendSolanaAssetWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaAssetWithEndUserAccountBodyNetwork];
|
|
3763
|
+
export declare const SendSolanaAssetWithEndUserAccountBodyNetwork: {
|
|
3764
|
+
readonly solana: "solana";
|
|
3765
|
+
readonly "solana-devnet": "solana-devnet";
|
|
3766
|
+
};
|
|
3767
|
+
export type SendSolanaAssetWithEndUserAccountBody = {
|
|
3768
|
+
/**
|
|
3769
|
+
* The base58 encoded address of the recipient.
|
|
3770
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
3771
|
+
*/
|
|
3772
|
+
to: BlockchainAddress;
|
|
3773
|
+
/**
|
|
3774
|
+
* The amount of USDC to send as a decimal string (e.g., "1.5" or "25.50").
|
|
3775
|
+
* @minLength 1
|
|
3776
|
+
* @maxLength 32
|
|
3777
|
+
*/
|
|
3778
|
+
amount: string;
|
|
3779
|
+
/** The Solana network to send USDC on. */
|
|
3780
|
+
network: SendSolanaAssetWithEndUserAccountBodyNetwork;
|
|
3781
|
+
/** 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. */
|
|
3782
|
+
createRecipientAta?: boolean;
|
|
3783
|
+
/**
|
|
3784
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3785
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3786
|
+
*/
|
|
3787
|
+
walletSecretId?: string;
|
|
3788
|
+
/** 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. */
|
|
3789
|
+
useCdpSponsor?: boolean;
|
|
3790
|
+
};
|
|
3791
|
+
export type SendSolanaAssetWithEndUserAccount200 = {
|
|
3792
|
+
/** The base58 encoded transaction signature. */
|
|
3793
|
+
transactionSignature: string;
|
|
3794
|
+
};
|
|
3430
3795
|
export type ListEvmAccountsParams = {
|
|
3431
3796
|
/**
|
|
3432
3797
|
* The number of resources to return per page.
|
|
@@ -3899,6 +4264,7 @@ export type RequestSolanaFaucetBodyToken = (typeof RequestSolanaFaucetBodyToken)
|
|
|
3899
4264
|
export declare const RequestSolanaFaucetBodyToken: {
|
|
3900
4265
|
readonly sol: "sol";
|
|
3901
4266
|
readonly usdc: "usdc";
|
|
4267
|
+
readonly cbtusd: "cbtusd";
|
|
3902
4268
|
};
|
|
3903
4269
|
export type RequestSolanaFaucetBody = {
|
|
3904
4270
|
/**
|
|
@@ -3946,6 +4312,8 @@ export type ListDataTokenBalances200 = ListDataTokenBalances200AllOf & ListRespo
|
|
|
3946
4312
|
export type ListWebhookSubscriptionsParams = {
|
|
3947
4313
|
/**
|
|
3948
4314
|
* The number of subscriptions to return per page.
|
|
4315
|
+
* @minimum 1
|
|
4316
|
+
* @maximum 100
|
|
3949
4317
|
*/
|
|
3950
4318
|
pageSize?: number;
|
|
3951
4319
|
/**
|