@coinbase/cdp-sdk 1.46.0 → 1.47.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 +12 -0
- package/README.md +50 -0
- package/_cjs/actions/solana/sendTransaction.js +3 -0
- package/_cjs/actions/solana/sendTransaction.js.map +1 -1
- package/_cjs/actions/webhooks/createWebhookSubscription.js +48 -0
- package/_cjs/actions/webhooks/createWebhookSubscription.js.map +1 -0
- package/_cjs/actions/webhooks/index.js +6 -0
- package/_cjs/actions/webhooks/index.js.map +1 -0
- package/_cjs/client/cdp.js +4 -0
- package/_cjs/client/cdp.js.map +1 -1
- package/_cjs/client/solana/solana.js +2 -0
- package/_cjs/client/solana/solana.js.map +1 -1
- package/_cjs/client/webhooks/webhooks.js +58 -0
- package/_cjs/client/webhooks/webhooks.js.map +1 -0
- package/_cjs/index.js.map +1 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +39 -43
- 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 +33 -1
- package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.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/sql-api/sql-api.js +12 -1
- package/_cjs/openapi-client/generated/sql-api/sql-api.js.map +1 -1
- package/_cjs/openapi-client/generated/webhooks/webhooks.js +28 -1
- package/_cjs/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/actions/solana/sendTransaction.js +3 -0
- package/_esm/actions/solana/sendTransaction.js.map +1 -1
- package/_esm/actions/webhooks/createWebhookSubscription.js +45 -0
- package/_esm/actions/webhooks/createWebhookSubscription.js.map +1 -0
- package/_esm/actions/webhooks/index.js +2 -0
- package/_esm/actions/webhooks/index.js.map +1 -0
- package/_esm/client/cdp.js +4 -0
- package/_esm/client/cdp.js.map +1 -1
- package/_esm/client/solana/solana.js +2 -0
- package/_esm/client/solana/solana.js.map +1 -1
- package/_esm/client/webhooks/webhooks.js +54 -0
- package/_esm/client/webhooks/webhooks.js.map +1 -0
- package/_esm/index.js.map +1 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +36 -40
- 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 +32 -0
- package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.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/sql-api/sql-api.js +10 -0
- package/_esm/openapi-client/generated/sql-api/sql-api.js.map +1 -1
- package/_esm/openapi-client/generated/webhooks/webhooks.js +26 -0
- package/_esm/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/actions/solana/sendTransaction.d.ts +2 -0
- package/_types/actions/solana/sendTransaction.d.ts.map +1 -1
- package/_types/actions/webhooks/createWebhookSubscription.d.ts +68 -0
- package/_types/actions/webhooks/createWebhookSubscription.d.ts.map +1 -0
- package/_types/actions/webhooks/index.d.ts +2 -0
- package/_types/actions/webhooks/index.d.ts.map +1 -0
- package/_types/client/cdp.d.ts +3 -0
- package/_types/client/cdp.d.ts.map +1 -1
- package/_types/client/solana/solana.d.ts +2 -0
- package/_types/client/solana/solana.d.ts.map +1 -1
- package/_types/client/solana/solana.types.d.ts +2 -0
- package/_types/client/solana/solana.types.d.ts.map +1 -1
- package/_types/client/webhooks/webhooks.d.ts +41 -0
- package/_types/client/webhooks/webhooks.d.ts.map +1 -0
- package/_types/index.d.ts +1 -0
- package/_types/index.d.ts.map +1 -1
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +255 -452
- 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 +150 -1
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +2 -2
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts +10 -1
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts.map +1 -1
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts +26 -1
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts.map +1 -1
- package/_types/openapi-client/index.d.ts +46 -16
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/actions/solana/sendTransaction.ts +3 -0
- package/actions/webhooks/createWebhookSubscription.ts +104 -0
- package/actions/webhooks/index.ts +6 -0
- package/client/cdp.ts +5 -0
- package/client/solana/solana.ts +2 -0
- package/client/solana/solana.types.ts +2 -0
- package/client/webhooks/webhooks.ts +61 -0
- package/index.ts +6 -0
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +293 -505
- package/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts +154 -26
- package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts +3 -3
- package/openapi-client/generated/sql-api/sql-api.ts +19 -0
- package/openapi-client/generated/webhooks/webhooks.ts +38 -0
- package/package.json +2 -2
- package/version.ts +1 -1
|
@@ -101,10 +101,32 @@ export interface TelegramAuthentication {
|
|
|
101
101
|
/** The Telegram user's username. */
|
|
102
102
|
username?: string;
|
|
103
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* A blockchain address. Format varies by network (e.g., 0x-prefixed for EVM, base58 for Solana).
|
|
106
|
+
* @minLength 1
|
|
107
|
+
* @maxLength 128
|
|
108
|
+
*/
|
|
109
|
+
export type BlockchainAddress = string;
|
|
110
|
+
/**
|
|
111
|
+
* The type of authentication information.
|
|
112
|
+
*/
|
|
113
|
+
export type SiweAuthenticationType = (typeof SiweAuthenticationType)[keyof typeof SiweAuthenticationType];
|
|
114
|
+
export declare const SiweAuthenticationType: {
|
|
115
|
+
readonly siwe: "siwe";
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Information about an end user who authenticates using Sign In With Ethereum (EIP-4361).
|
|
119
|
+
*/
|
|
120
|
+
export interface SiweAuthentication {
|
|
121
|
+
/** The type of authentication information. */
|
|
122
|
+
type: SiweAuthenticationType;
|
|
123
|
+
/** The ERC-55 checksummed Ethereum address of the end user. */
|
|
124
|
+
address: BlockchainAddress;
|
|
125
|
+
}
|
|
104
126
|
/**
|
|
105
127
|
* Information about how the end user is authenticated.
|
|
106
128
|
*/
|
|
107
|
-
export type AuthenticationMethod = EmailAuthentication | SmsAuthentication | DeveloperJWTAuthentication | OAuth2Authentication | TelegramAuthentication;
|
|
129
|
+
export type AuthenticationMethod = EmailAuthentication | SmsAuthentication | DeveloperJWTAuthentication | OAuth2Authentication | TelegramAuthentication | SiweAuthentication;
|
|
108
130
|
/**
|
|
109
131
|
* The list of valid authentication methods linked to the end user.
|
|
110
132
|
*/
|
|
@@ -298,18 +320,26 @@ export interface Error {
|
|
|
298
320
|
/** A link to the corresponding error documentation. */
|
|
299
321
|
errorLink?: Url;
|
|
300
322
|
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
323
|
+
export interface EvmAccount {
|
|
324
|
+
/**
|
|
325
|
+
* The 0x-prefixed, checksum EVM address.
|
|
326
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
327
|
+
*/
|
|
328
|
+
address: string;
|
|
329
|
+
/**
|
|
330
|
+
* An optional name for the account.
|
|
331
|
+
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
332
|
+
Account names are guaranteed to be unique across all EVM accounts in the developer's CDP Project.
|
|
333
|
+
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
334
|
+
*/
|
|
335
|
+
name?: string;
|
|
336
|
+
/** The list of policy IDs that apply to the account. This will include both the project-level policy and the account-level policy, if one exists. */
|
|
337
|
+
policies?: string[];
|
|
338
|
+
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
339
|
+
createdAt?: string;
|
|
340
|
+
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
341
|
+
updatedAt?: string;
|
|
342
|
+
}
|
|
313
343
|
/**
|
|
314
344
|
* The domain of the EIP-712 typed data.
|
|
315
345
|
*/
|
|
@@ -369,6 +399,61 @@ export declare const EvmEip7702DelegationNetwork: {
|
|
|
369
399
|
readonly ethereum: "ethereum";
|
|
370
400
|
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
371
401
|
};
|
|
402
|
+
/**
|
|
403
|
+
* The current status of the delegation operation.
|
|
404
|
+
UNSPECIFIED means the status has not been set. PENDING means the operation has been created but not yet submitted. SUBMITTED means the operation has been submitted to the network. COMPLETED means the operation has completed successfully. FAILED means the operation has failed.
|
|
405
|
+
*/
|
|
406
|
+
export type EvmEip7702DelegationOperationStatus = (typeof EvmEip7702DelegationOperationStatus)[keyof typeof EvmEip7702DelegationOperationStatus];
|
|
407
|
+
export declare const EvmEip7702DelegationOperationStatus: {
|
|
408
|
+
readonly UNSPECIFIED: "UNSPECIFIED";
|
|
409
|
+
readonly PENDING: "PENDING";
|
|
410
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
411
|
+
readonly COMPLETED: "COMPLETED";
|
|
412
|
+
readonly FAILED: "FAILED";
|
|
413
|
+
};
|
|
414
|
+
/**
|
|
415
|
+
* The status of an EIP-7702 delegation operation.
|
|
416
|
+
*/
|
|
417
|
+
export interface EvmEip7702DelegationOperation {
|
|
418
|
+
/** The unique identifier for the delegation operation. */
|
|
419
|
+
delegationOperationId: string;
|
|
420
|
+
/** The current status of the delegation operation.
|
|
421
|
+
UNSPECIFIED means the status has not been set. PENDING means the operation has been created but not yet submitted. SUBMITTED means the operation has been submitted to the network. COMPLETED means the operation has completed successfully. FAILED means the operation has failed. */
|
|
422
|
+
status: EvmEip7702DelegationOperationStatus;
|
|
423
|
+
/**
|
|
424
|
+
* The hash of the delegation transaction, if available. Present once the transaction has been submitted to the network.
|
|
425
|
+
* @pattern ^0x[0-9a-fA-F]{64}$
|
|
426
|
+
*/
|
|
427
|
+
transactionHash?: string;
|
|
428
|
+
network: EvmEip7702DelegationNetwork;
|
|
429
|
+
/**
|
|
430
|
+
* The address the account has delegated to, if any. Only present when the account has an active delegation.
|
|
431
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
432
|
+
*/
|
|
433
|
+
delegateAddress?: string;
|
|
434
|
+
}
|
|
435
|
+
export interface EvmSmartAccount {
|
|
436
|
+
/**
|
|
437
|
+
* The 0x-prefixed, checksum address of the Smart Account.
|
|
438
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
439
|
+
*/
|
|
440
|
+
address: string;
|
|
441
|
+
/** Today, only a single owner can be set for a Smart Account, but this is an array to allow having multiple owners in the future. The address is a 0x-prefixed, checksum address. */
|
|
442
|
+
owners: string[];
|
|
443
|
+
/**
|
|
444
|
+
* An optional name for the account.
|
|
445
|
+
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
446
|
+
Account names are guaranteed to be unique across all Smart Accounts in the developer's CDP Project.
|
|
447
|
+
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
448
|
+
*/
|
|
449
|
+
name?: string;
|
|
450
|
+
/** The list of policy IDs that apply to the smart account. This will include both the project-level policy and the account-level policy, if one exists. */
|
|
451
|
+
policies?: string[];
|
|
452
|
+
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
453
|
+
createdAt?: string;
|
|
454
|
+
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
455
|
+
updatedAt?: string;
|
|
456
|
+
}
|
|
372
457
|
/**
|
|
373
458
|
* The network the user operation is for.
|
|
374
459
|
*/
|
|
@@ -478,98 +563,6 @@ export declare const SpendPermissionNetwork: {
|
|
|
478
563
|
readonly avalanche: "avalanche";
|
|
479
564
|
readonly polygon: "polygon";
|
|
480
565
|
};
|
|
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
|
-
}
|
|
573
566
|
/**
|
|
574
567
|
* Request parameters for creating a Spend Permission.
|
|
575
568
|
*/
|
|
@@ -647,7 +640,7 @@ export interface SpendPermissionResponseObject {
|
|
|
647
640
|
/**
|
|
648
641
|
* Request parameters for revoking a Spend Permission.
|
|
649
642
|
*/
|
|
650
|
-
export interface
|
|
643
|
+
export interface RevokeSpendPermissionRequest {
|
|
651
644
|
network: SpendPermissionNetwork;
|
|
652
645
|
/** The hash of the spend permission to revoke. */
|
|
653
646
|
permissionHash: string;
|
|
@@ -2097,6 +2090,27 @@ export interface SignEndUserEvmTypedDataRule {
|
|
|
2097
2090
|
operation: SignEndUserEvmTypedDataRuleOperation;
|
|
2098
2091
|
criteria: SignEndUserEvmTypedDataCriteria;
|
|
2099
2092
|
}
|
|
2093
|
+
/**
|
|
2094
|
+
* Whether any attempts to sign a hash will be accepted or rejected. This rule does not accept any criteria.
|
|
2095
|
+
*/
|
|
2096
|
+
export type SignEndUserEvmHashRuleAction = (typeof SignEndUserEvmHashRuleAction)[keyof typeof SignEndUserEvmHashRuleAction];
|
|
2097
|
+
export declare const SignEndUserEvmHashRuleAction: {
|
|
2098
|
+
readonly reject: "reject";
|
|
2099
|
+
readonly accept: "accept";
|
|
2100
|
+
};
|
|
2101
|
+
/**
|
|
2102
|
+
* The operation to which the rule applies.
|
|
2103
|
+
*/
|
|
2104
|
+
export type SignEndUserEvmHashRuleOperation = (typeof SignEndUserEvmHashRuleOperation)[keyof typeof SignEndUserEvmHashRuleOperation];
|
|
2105
|
+
export declare const SignEndUserEvmHashRuleOperation: {
|
|
2106
|
+
readonly signEndUserEvmHash: "signEndUserEvmHash";
|
|
2107
|
+
};
|
|
2108
|
+
export interface SignEndUserEvmHashRule {
|
|
2109
|
+
/** Whether any attempts to sign a hash will be accepted or rejected. This rule does not accept any criteria. */
|
|
2110
|
+
action: SignEndUserEvmHashRuleAction;
|
|
2111
|
+
/** The operation to which the rule applies. */
|
|
2112
|
+
operation: SignEndUserEvmHashRuleOperation;
|
|
2113
|
+
}
|
|
2100
2114
|
export type SignEndUserSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion | ProgramIdCriterion;
|
|
2101
2115
|
/**
|
|
2102
2116
|
* A schema for specifying criteria for the signEndUserSolTransaction operation.
|
|
@@ -2180,7 +2194,7 @@ export interface SignEndUserSolMessageRule {
|
|
|
2180
2194
|
/**
|
|
2181
2195
|
* A rule that limits the behavior of an account.
|
|
2182
2196
|
*/
|
|
2183
|
-
export type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SendSolTransactionRule | SignSolMessageRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule | SignEndUserEvmTransactionRule | SendEndUserEvmTransactionRule | SignEndUserEvmMessageRule | SignEndUserEvmTypedDataRule | SignEndUserSolTransactionRule | SendEndUserSolTransactionRule | SignEndUserSolMessageRule;
|
|
2197
|
+
export type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SendSolTransactionRule | SignSolMessageRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule | SignEndUserEvmTransactionRule | SendEndUserEvmTransactionRule | SignEndUserEvmMessageRule | SignEndUserEvmTypedDataRule | SignEndUserEvmHashRule | SignEndUserSolTransactionRule | SendEndUserSolTransactionRule | SignEndUserSolMessageRule;
|
|
2184
2198
|
/**
|
|
2185
2199
|
* The scope of the policy. Only one project-level policy can exist at any time.
|
|
2186
2200
|
*/
|
|
@@ -2377,6 +2391,45 @@ export interface OnchainDataResult {
|
|
|
2377
2391
|
/** Metadata about query execution. */
|
|
2378
2392
|
metadata?: OnchainDataResultMetadata;
|
|
2379
2393
|
}
|
|
2394
|
+
/**
|
|
2395
|
+
* A human-readable description.
|
|
2396
|
+
* @minLength 0
|
|
2397
|
+
* @maxLength 500
|
|
2398
|
+
*/
|
|
2399
|
+
export type Description = string;
|
|
2400
|
+
/**
|
|
2401
|
+
* Schema definition for a table column.
|
|
2402
|
+
*/
|
|
2403
|
+
export interface OnchainDataColumnSchema {
|
|
2404
|
+
/** Column name. */
|
|
2405
|
+
name?: string;
|
|
2406
|
+
/** Column data type. */
|
|
2407
|
+
type?: string;
|
|
2408
|
+
/** Whether this column can contain NULL values. */
|
|
2409
|
+
nullable?: boolean;
|
|
2410
|
+
/** Human-readable description of the column. */
|
|
2411
|
+
description?: Description;
|
|
2412
|
+
/** The order of the column in the index. A lower number means the column is more important for the index and should be first in the query. */
|
|
2413
|
+
indexOrder?: number;
|
|
2414
|
+
}
|
|
2415
|
+
/**
|
|
2416
|
+
* Schema definition for a data table.
|
|
2417
|
+
*/
|
|
2418
|
+
export interface OnchainDataTableSchema {
|
|
2419
|
+
/** The blockchain network database this table belongs to. */
|
|
2420
|
+
database?: string;
|
|
2421
|
+
/** Table name. */
|
|
2422
|
+
table?: string;
|
|
2423
|
+
/** Column definitions for this table. */
|
|
2424
|
+
columns?: OnchainDataColumnSchema[];
|
|
2425
|
+
}
|
|
2426
|
+
/**
|
|
2427
|
+
* Schema information for available blockchain data tables.
|
|
2428
|
+
*/
|
|
2429
|
+
export interface OnchainDataSchemaResponse {
|
|
2430
|
+
/** List of available tables. */
|
|
2431
|
+
tables?: OnchainDataTableSchema[];
|
|
2432
|
+
}
|
|
2380
2433
|
/**
|
|
2381
2434
|
* Response containing token addresses that an account has received.
|
|
2382
2435
|
*/
|
|
@@ -2392,13 +2445,7 @@ export interface AccountTokenAddressesResponse {
|
|
|
2392
2445
|
totalCount?: number;
|
|
2393
2446
|
}
|
|
2394
2447
|
/**
|
|
2395
|
-
*
|
|
2396
|
-
* @minLength 0
|
|
2397
|
-
* @maxLength 500
|
|
2398
|
-
*/
|
|
2399
|
-
export type Description = string;
|
|
2400
|
-
/**
|
|
2401
|
-
* Optional metadata as key-value pairs. Use this to store additional structured information on a resource, such as customer IDs, order references, or any application-specific data. Up to 50 key/value pairs may be provided. Keys and values are both strings. Keys must be ≤ 40 characters; values must be ≤ 500 characters.
|
|
2448
|
+
* Optional metadata as key-value pairs. Use this to store additional structured information on a resource, such as customer IDs, order references, or any application-specific data. Up to 10 key/value pairs may be provided. Keys and values are both strings. Keys must be ≤ 40 characters; values must be ≤ 500 characters.
|
|
2402
2449
|
*/
|
|
2403
2450
|
export interface Metadata {
|
|
2404
2451
|
[key: string]: string;
|
|
@@ -2450,7 +2497,8 @@ export interface WebhookSubscriptionResponse {
|
|
|
2450
2497
|
/** Description of the webhook subscription. */
|
|
2451
2498
|
description?: Description;
|
|
2452
2499
|
/** Types of events to subscribe to. Event types follow a three-part dot-separated format:
|
|
2453
|
-
service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created"
|
|
2500
|
+
service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created",
|
|
2501
|
+
"acceptance.payment_session").
|
|
2454
2502
|
*/
|
|
2455
2503
|
eventTypes: string[];
|
|
2456
2504
|
/** Whether the subscription is enabled. */
|
|
@@ -2496,7 +2544,8 @@ export interface WebhookSubscriptionRequest {
|
|
|
2496
2544
|
/** Description of the webhook subscription. */
|
|
2497
2545
|
description?: Description;
|
|
2498
2546
|
/** Types of events to subscribe to. Event types follow a three-part dot-separated format:
|
|
2499
|
-
service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created"
|
|
2547
|
+
service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created",
|
|
2548
|
+
"acceptance.payment_session").
|
|
2500
2549
|
The subscription will only receive events matching these types AND the label filter(s).
|
|
2501
2550
|
*/
|
|
2502
2551
|
eventTypes: string[];
|
|
@@ -2550,6 +2599,55 @@ export interface WebhookSubscriptionUpdateRequest {
|
|
|
2550
2599
|
*/
|
|
2551
2600
|
labels?: WebhookSubscriptionUpdateRequestLabels;
|
|
2552
2601
|
}
|
|
2602
|
+
/**
|
|
2603
|
+
* Details of the HTTP response received from the webhook target.
|
|
2604
|
+
*/
|
|
2605
|
+
export interface WebhookEventResponseDetail {
|
|
2606
|
+
/** HTTP status code returned by the webhook target. */
|
|
2607
|
+
httpCode?: number;
|
|
2608
|
+
/** Round-trip time of the webhook delivery in milliseconds. */
|
|
2609
|
+
elapsedTimeMs?: number;
|
|
2610
|
+
/** Response body returned by the webhook target. */
|
|
2611
|
+
body?: string;
|
|
2612
|
+
/** Error name if the delivery failed (e.g., timeout, connection_refused). */
|
|
2613
|
+
errorName?: string;
|
|
2614
|
+
}
|
|
2615
|
+
/**
|
|
2616
|
+
* Current delivery status of the event.
|
|
2617
|
+
*/
|
|
2618
|
+
export type WebhookEventResponseStatus = (typeof WebhookEventResponseStatus)[keyof typeof WebhookEventResponseStatus];
|
|
2619
|
+
export declare const WebhookEventResponseStatus: {
|
|
2620
|
+
readonly pending: "pending";
|
|
2621
|
+
readonly processing: "processing";
|
|
2622
|
+
readonly succeeded: "succeeded";
|
|
2623
|
+
readonly failed: "failed";
|
|
2624
|
+
readonly retrying: "retrying";
|
|
2625
|
+
};
|
|
2626
|
+
/**
|
|
2627
|
+
* Details of a webhook event delivery attempt for a subscription.
|
|
2628
|
+
*/
|
|
2629
|
+
export interface WebhookEventResponse {
|
|
2630
|
+
/** Unique identifier for the webhook event. */
|
|
2631
|
+
eventId: string;
|
|
2632
|
+
/** The type of event that was delivered (e.g., "onchain.activity.detected"). */
|
|
2633
|
+
eventTypeName: string;
|
|
2634
|
+
/** Current delivery status of the event. */
|
|
2635
|
+
status: WebhookEventResponseStatus;
|
|
2636
|
+
/** Timestamp when the event delivery attempt was created. */
|
|
2637
|
+
createdAt: string;
|
|
2638
|
+
/** Timestamp when the event was successfully delivered. Only present if status is "succeeded". */
|
|
2639
|
+
succeededAt?: string;
|
|
2640
|
+
/** Number of delivery retry attempts so far. */
|
|
2641
|
+
retryCount: number;
|
|
2642
|
+
response?: WebhookEventResponseDetail;
|
|
2643
|
+
}
|
|
2644
|
+
/**
|
|
2645
|
+
* Response containing a list of webhook event delivery attempts.
|
|
2646
|
+
*/
|
|
2647
|
+
export interface WebhookEventListResponse {
|
|
2648
|
+
/** The list of webhook event delivery attempts. */
|
|
2649
|
+
events: WebhookEventResponse[];
|
|
2650
|
+
}
|
|
2553
2651
|
/**
|
|
2554
2652
|
* The version of the x402 protocol.
|
|
2555
2653
|
*/
|
|
@@ -2671,11 +2769,12 @@ export interface X402ExactSolanaPayload {
|
|
|
2671
2769
|
transaction: string;
|
|
2672
2770
|
}
|
|
2673
2771
|
/**
|
|
2674
|
-
* The scheme of the payment protocol to use.
|
|
2772
|
+
* The scheme of the payment protocol to use. Supported schemes are `exact` and `upto`.
|
|
2675
2773
|
*/
|
|
2676
2774
|
export type X402V2PaymentRequirementsScheme = (typeof X402V2PaymentRequirementsScheme)[keyof typeof X402V2PaymentRequirementsScheme];
|
|
2677
2775
|
export declare const X402V2PaymentRequirementsScheme: {
|
|
2678
2776
|
readonly exact: "exact";
|
|
2777
|
+
readonly upto: "upto";
|
|
2679
2778
|
};
|
|
2680
2779
|
/**
|
|
2681
2780
|
* The optional additional scheme-specific payment info.
|
|
@@ -2687,7 +2786,7 @@ export type X402V2PaymentRequirementsExtra = {
|
|
|
2687
2786
|
* The x402 protocol payment requirements that the resource server expects the client's payment payload to meet.
|
|
2688
2787
|
*/
|
|
2689
2788
|
export interface X402V2PaymentRequirements {
|
|
2690
|
-
/** The scheme of the payment protocol to use.
|
|
2789
|
+
/** The scheme of the payment protocol to use. Supported schemes are `exact` and `upto`. */
|
|
2691
2790
|
scheme: X402V2PaymentRequirementsScheme;
|
|
2692
2791
|
/** The network of the blockchain to send payment on in caip2 format. */
|
|
2693
2792
|
network: string;
|
|
@@ -3019,6 +3118,7 @@ export interface X402SettlePaymentRejection {
|
|
|
3019
3118
|
export type X402SupportedPaymentKindScheme = (typeof X402SupportedPaymentKindScheme)[keyof typeof X402SupportedPaymentKindScheme];
|
|
3020
3119
|
export declare const X402SupportedPaymentKindScheme: {
|
|
3021
3120
|
readonly exact: "exact";
|
|
3121
|
+
readonly upto: "upto";
|
|
3022
3122
|
};
|
|
3023
3123
|
/**
|
|
3024
3124
|
* The network of the blockchain.
|
|
@@ -3311,6 +3411,8 @@ export type X402SettleResponseResponse = {
|
|
|
3311
3411
|
transaction: string;
|
|
3312
3412
|
/** The network where the settlement occurred. */
|
|
3313
3413
|
network: string;
|
|
3414
|
+
/** The amount that was settled, in atomic units. */
|
|
3415
|
+
amount?: string;
|
|
3314
3416
|
};
|
|
3315
3417
|
/**
|
|
3316
3418
|
* Unsuccessful payment settlement on the x402 protocol.
|
|
@@ -3348,20 +3450,6 @@ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/i
|
|
|
3348
3450
|
|
|
3349
3451
|
*/
|
|
3350
3452
|
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;
|
|
3365
3453
|
/**
|
|
3366
3454
|
* The number of resources to return per page.
|
|
3367
3455
|
*/
|
|
@@ -3472,326 +3560,6 @@ export type ImportEndUserBody = {
|
|
|
3472
3560
|
/** The type of key being imported. Determines what type of account will be associated for the end user. */
|
|
3473
3561
|
keyType: ImportEndUserBodyKeyType;
|
|
3474
3562
|
};
|
|
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
|
-
};
|
|
3795
3563
|
export type ListEvmAccountsParams = {
|
|
3796
3564
|
/**
|
|
3797
3565
|
* The number of resources to return per page.
|
|
@@ -4252,6 +4020,8 @@ export type SendSolanaTransactionBody = {
|
|
|
4252
4020
|
network: SendSolanaTransactionBodyNetwork;
|
|
4253
4021
|
/** The base64 encoded transaction to sign and send. This transaction can contain multiple instructions for native Solana batching. */
|
|
4254
4022
|
transaction: string;
|
|
4023
|
+
/** Whether transaction fees should be sponsored by CDP. When true, CDP sponsors the transaction fees on behalf of the server wallet. When false, the server wallet is responsible for paying the transaction fees. */
|
|
4024
|
+
useCdpSponsor?: boolean;
|
|
4255
4025
|
};
|
|
4256
4026
|
export type SendSolanaTransaction200 = {
|
|
4257
4027
|
/** The base58 encoded transaction signature. */
|
|
@@ -4294,6 +4064,21 @@ export type ListSolanaTokenBalances200AllOf = {
|
|
|
4294
4064
|
balances: SolanaTokenBalance[];
|
|
4295
4065
|
};
|
|
4296
4066
|
export type ListSolanaTokenBalances200 = ListSolanaTokenBalances200AllOf & ListResponse;
|
|
4067
|
+
export type GetSQLSchemaParams = {
|
|
4068
|
+
/**
|
|
4069
|
+
* The name of the database to query. Defaults to "base" when not specified.
|
|
4070
|
+
*/
|
|
4071
|
+
database?: GetSQLSchemaDatabase;
|
|
4072
|
+
/**
|
|
4073
|
+
* Get the schema for a specific table.
|
|
4074
|
+
*/
|
|
4075
|
+
table?: string;
|
|
4076
|
+
};
|
|
4077
|
+
export type GetSQLSchemaDatabase = (typeof GetSQLSchemaDatabase)[keyof typeof GetSQLSchemaDatabase];
|
|
4078
|
+
export declare const GetSQLSchemaDatabase: {
|
|
4079
|
+
readonly base: "base";
|
|
4080
|
+
readonly base_sepolia: "base_sepolia";
|
|
4081
|
+
};
|
|
4297
4082
|
export type ListDataTokenBalancesParams = {
|
|
4298
4083
|
/**
|
|
4299
4084
|
* The number of resources to return per page.
|
|
@@ -4321,6 +4106,24 @@ export type ListWebhookSubscriptionsParams = {
|
|
|
4321
4106
|
*/
|
|
4322
4107
|
pageToken?: string;
|
|
4323
4108
|
};
|
|
4109
|
+
export type ListWebhookSubscriptionEventsParams = {
|
|
4110
|
+
/**
|
|
4111
|
+
* Filter by a specific event ID.
|
|
4112
|
+
*/
|
|
4113
|
+
eventId?: string;
|
|
4114
|
+
/**
|
|
4115
|
+
* Filter events created at or after this timestamp (RFC 3339 format).
|
|
4116
|
+
*/
|
|
4117
|
+
minCreatedAt?: string;
|
|
4118
|
+
/**
|
|
4119
|
+
* Filter events created at or before this timestamp (RFC 3339 format).
|
|
4120
|
+
*/
|
|
4121
|
+
maxCreatedAt?: string;
|
|
4122
|
+
/**
|
|
4123
|
+
* Filter by event type names (comma-separated).
|
|
4124
|
+
*/
|
|
4125
|
+
eventTypeNames?: string;
|
|
4126
|
+
};
|
|
4324
4127
|
export type VerifyX402PaymentBody = {
|
|
4325
4128
|
x402Version: X402Version;
|
|
4326
4129
|
paymentPayload: X402PaymentPayload;
|