@coinbase/cdp-sdk 1.47.0 → 1.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +282 -0
- package/_cjs/client/cdp.js +1 -4
- package/_cjs/client/cdp.js.map +1 -1
- package/_cjs/client/end-user/endUser.js +19 -89
- package/_cjs/client/end-user/endUser.js.map +1 -1
- package/_cjs/client/end-user/toEndUserAccount.js +13 -43
- package/_cjs/client/end-user/toEndUserAccount.js.map +1 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/openapi-client/cdpApiClient.js +0 -32
- package/_cjs/openapi-client/cdpApiClient.js.map +1 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +54 -10
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_cjs/openapi-client/generated/{embedded-wallets-core-functionality/embedded-wallets-core-functionality.js → embedded-wallets/embedded-wallets.js} +37 -97
- package/_cjs/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +1 -0
- package/_cjs/openapi-client/generated/webhooks/webhooks.js +6 -6
- package/_cjs/openapi-client/index.js +2 -2
- package/_cjs/openapi-client/index.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/client/cdp.js +2 -5
- package/_esm/client/cdp.js.map +1 -1
- package/_esm/client/end-user/endUser.js +17 -87
- package/_esm/client/end-user/endUser.js.map +1 -1
- package/_esm/client/end-user/toEndUserAccount.js +13 -43
- package/_esm/client/end-user/toEndUserAccount.js.map +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/openapi-client/cdpApiClient.js +0 -32
- package/_esm/openapi-client/cdpApiClient.js.map +1 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +52 -8
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_esm/openapi-client/generated/{embedded-wallets-core-functionality/embedded-wallets-core-functionality.js → embedded-wallets/embedded-wallets.js} +36 -93
- package/_esm/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +1 -0
- package/_esm/openapi-client/generated/webhooks/webhooks.js +6 -6
- package/_esm/openapi-client/index.js +2 -2
- package/_esm/openapi-client/index.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/client/cdp.d.ts +2 -6
- package/_types/client/cdp.d.ts.map +1 -1
- package/_types/client/end-user/endUser.d.ts +2 -52
- package/_types/client/end-user/endUser.d.ts.map +1 -1
- package/_types/client/end-user/endUser.types.d.ts +1 -63
- package/_types/client/end-user/endUser.types.d.ts.map +1 -1
- package/_types/client/end-user/toEndUserAccount.d.ts +0 -2
- package/_types/client/end-user/toEndUserAccount.d.ts.map +1 -1
- package/_types/index.d.ts +1 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/openapi-client/cdpApiClient.d.ts.map +1 -1
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +476 -79
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts +145 -0
- package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts.map +1 -0
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts +6 -6
- package/_types/openapi-client/index.d.ts +13 -45
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/client/cdp.ts +3 -8
- package/client/end-user/endUser.ts +55 -187
- package/client/end-user/endUser.types.ts +0 -72
- package/client/end-user/toEndUserAccount.ts +57 -152
- package/index.ts +0 -4
- package/openapi-client/cdpApiClient.ts +0 -34
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +535 -85
- package/openapi-client/generated/{embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts → embedded-wallets/embedded-wallets.ts} +67 -249
- package/openapi-client/generated/webhooks/webhooks.ts +6 -6
- package/openapi-client/index.ts +2 -2
- package/package.json +1 -1
- package/version.ts +1 -1
- package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +0 -1
- package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +0 -1
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts +0 -312
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts.map +0 -1
|
@@ -7,188 +7,46 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type {
|
|
9
9
|
BlockchainAddress,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
CreateEvmEip7702DelegationWithEndUserAccount201,
|
|
11
|
+
CreateEvmEip7702DelegationWithEndUserAccountBody,
|
|
12
|
+
CreateEvmEip7702DelegationWithEndUserAccountParams,
|
|
13
13
|
EvmUserOperation,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
RevokeDelegationForEndUserBody,
|
|
15
|
+
SendEvmAssetWithEndUserAccount200,
|
|
16
|
+
SendEvmAssetWithEndUserAccountBody,
|
|
17
|
+
SendEvmAssetWithEndUserAccountParams,
|
|
18
|
+
SendEvmTransactionWithEndUserAccount200,
|
|
19
|
+
SendEvmTransactionWithEndUserAccountBody,
|
|
20
|
+
SendEvmTransactionWithEndUserAccountParams,
|
|
21
|
+
SendSolanaAssetWithEndUserAccount200,
|
|
22
|
+
SendSolanaAssetWithEndUserAccountBody,
|
|
23
|
+
SendSolanaAssetWithEndUserAccountParams,
|
|
24
|
+
SendSolanaTransactionWithEndUserAccount200,
|
|
25
|
+
SendSolanaTransactionWithEndUserAccountBody,
|
|
26
|
+
SendSolanaTransactionWithEndUserAccountParams,
|
|
27
|
+
SendUserOperationWithEndUserAccountBody,
|
|
28
|
+
SendUserOperationWithEndUserAccountParams,
|
|
29
|
+
SignEvmMessageWithEndUserAccount200,
|
|
30
|
+
SignEvmMessageWithEndUserAccountBody,
|
|
31
|
+
SignEvmMessageWithEndUserAccountParams,
|
|
32
|
+
SignEvmTransactionWithEndUserAccount200,
|
|
33
|
+
SignEvmTransactionWithEndUserAccountBody,
|
|
34
|
+
SignEvmTransactionWithEndUserAccountParams,
|
|
35
|
+
SignEvmTypedDataWithEndUserAccount200,
|
|
36
|
+
SignEvmTypedDataWithEndUserAccountBody,
|
|
37
|
+
SignEvmTypedDataWithEndUserAccountParams,
|
|
38
|
+
SignSolanaMessageWithEndUserAccount200,
|
|
39
|
+
SignSolanaMessageWithEndUserAccountBody,
|
|
40
|
+
SignSolanaMessageWithEndUserAccountParams,
|
|
41
|
+
SignSolanaTransactionWithEndUserAccount200,
|
|
42
|
+
SignSolanaTransactionWithEndUserAccountBody,
|
|
43
|
+
SignSolanaTransactionWithEndUserAccountParams,
|
|
16
44
|
} from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
17
45
|
|
|
18
|
-
// These types were removed from the shared schemas when the embedded-wallet-api
|
|
19
|
-
// paths were temporarily pulled from the public spec. Defined inline until restored.
|
|
20
|
-
type Url = string;
|
|
21
|
-
|
|
22
|
-
export type SignEvmHashWithEndUserAccountBody = {
|
|
23
|
-
hash: string;
|
|
24
|
-
address: string;
|
|
25
|
-
walletSecretId?: string;
|
|
26
|
-
};
|
|
27
|
-
export type SignEvmHashWithEndUserAccount200 = { signature: string };
|
|
28
|
-
|
|
29
|
-
export type SignEvmTransactionWithEndUserAccountBody = {
|
|
30
|
-
address: string;
|
|
31
|
-
transaction: string;
|
|
32
|
-
walletSecretId?: string;
|
|
33
|
-
};
|
|
34
|
-
export type SignEvmTransactionWithEndUserAccount200 = { signedTransaction: string };
|
|
35
|
-
|
|
36
|
-
export type SendEvmTransactionWithEndUserAccountBodyNetwork =
|
|
37
|
-
(typeof SendEvmTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendEvmTransactionWithEndUserAccountBodyNetwork];
|
|
38
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
39
|
-
export const SendEvmTransactionWithEndUserAccountBodyNetwork = {
|
|
40
|
-
base: "base",
|
|
41
|
-
"base-sepolia": "base-sepolia",
|
|
42
|
-
ethereum: "ethereum",
|
|
43
|
-
"ethereum-sepolia": "ethereum-sepolia",
|
|
44
|
-
avalanche: "avalanche",
|
|
45
|
-
polygon: "polygon",
|
|
46
|
-
optimism: "optimism",
|
|
47
|
-
arbitrum: "arbitrum",
|
|
48
|
-
} as const;
|
|
49
|
-
export type SendEvmTransactionWithEndUserAccountBody = {
|
|
50
|
-
address: string;
|
|
51
|
-
network: SendEvmTransactionWithEndUserAccountBodyNetwork;
|
|
52
|
-
transaction: string;
|
|
53
|
-
walletSecretId?: string;
|
|
54
|
-
};
|
|
55
|
-
export type SendEvmTransactionWithEndUserAccount200 = { transactionHash: string };
|
|
56
|
-
|
|
57
|
-
export type SendEvmAssetWithEndUserAccountBodyNetwork =
|
|
58
|
-
(typeof SendEvmAssetWithEndUserAccountBodyNetwork)[keyof typeof SendEvmAssetWithEndUserAccountBodyNetwork];
|
|
59
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
60
|
-
export const SendEvmAssetWithEndUserAccountBodyNetwork = {
|
|
61
|
-
base: "base",
|
|
62
|
-
"base-sepolia": "base-sepolia",
|
|
63
|
-
ethereum: "ethereum",
|
|
64
|
-
"ethereum-sepolia": "ethereum-sepolia",
|
|
65
|
-
avalanche: "avalanche",
|
|
66
|
-
polygon: "polygon",
|
|
67
|
-
optimism: "optimism",
|
|
68
|
-
arbitrum: "arbitrum",
|
|
69
|
-
} as const;
|
|
70
|
-
export type SendEvmAssetWithEndUserAccountBody = {
|
|
71
|
-
to: BlockchainAddress;
|
|
72
|
-
amount: string;
|
|
73
|
-
network: SendEvmAssetWithEndUserAccountBodyNetwork;
|
|
74
|
-
useCdpPaymaster?: boolean;
|
|
75
|
-
paymasterUrl?: Url;
|
|
76
|
-
walletSecretId?: string;
|
|
77
|
-
};
|
|
78
|
-
export type SendEvmAssetWithEndUserAccount200 = {
|
|
79
|
-
transactionHash?: string | null;
|
|
80
|
-
userOpHash?: string | null;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
export type SignEvmMessageWithEndUserAccountBody = {
|
|
84
|
-
address: string;
|
|
85
|
-
message: string;
|
|
86
|
-
walletSecretId?: string;
|
|
87
|
-
};
|
|
88
|
-
export type SignEvmMessageWithEndUserAccount200 = { signature: string };
|
|
89
|
-
|
|
90
|
-
export type SignEvmTypedDataWithEndUserAccountBody = {
|
|
91
|
-
address: string;
|
|
92
|
-
typedData: EIP712Message;
|
|
93
|
-
walletSecretId?: string;
|
|
94
|
-
};
|
|
95
|
-
export type SignEvmTypedDataWithEndUserAccount200 = { signature: string };
|
|
96
|
-
|
|
97
|
-
export type RevokeDelegationForEndUserBody = { walletSecretId?: string };
|
|
98
|
-
|
|
99
|
-
export type CreateEvmEip7702DelegationWithEndUserAccountBody = {
|
|
100
|
-
address: string;
|
|
101
|
-
network: EvmEip7702DelegationNetwork;
|
|
102
|
-
enableSpendPermissions?: boolean;
|
|
103
|
-
walletSecretId?: string;
|
|
104
|
-
};
|
|
105
|
-
export type CreateEvmEip7702DelegationWithEndUserAccount201 = { delegationOperationId: string };
|
|
106
|
-
|
|
107
|
-
export type SendUserOperationWithEndUserAccountBody = {
|
|
108
|
-
network: EvmUserOperationNetwork;
|
|
109
|
-
calls: EvmCall[];
|
|
110
|
-
useCdpPaymaster: boolean;
|
|
111
|
-
paymasterUrl?: Url;
|
|
112
|
-
walletSecretId?: string;
|
|
113
|
-
dataSuffix?: string;
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export type SignSolanaHashWithEndUserAccountBody = {
|
|
117
|
-
hash: string;
|
|
118
|
-
address: string;
|
|
119
|
-
walletSecretId?: string;
|
|
120
|
-
};
|
|
121
|
-
export type SignSolanaHashWithEndUserAccount200 = { signature: string };
|
|
122
|
-
|
|
123
|
-
export type SignSolanaMessageWithEndUserAccountBody = {
|
|
124
|
-
address: string;
|
|
125
|
-
message: string;
|
|
126
|
-
walletSecretId?: string;
|
|
127
|
-
};
|
|
128
|
-
export type SignSolanaMessageWithEndUserAccount200 = { signature: string };
|
|
129
|
-
|
|
130
|
-
export type SignSolanaTransactionWithEndUserAccountBody = {
|
|
131
|
-
address: string;
|
|
132
|
-
transaction: string;
|
|
133
|
-
walletSecretId?: string;
|
|
134
|
-
};
|
|
135
|
-
export type SignSolanaTransactionWithEndUserAccount200 = { signedTransaction: string };
|
|
136
|
-
|
|
137
|
-
export type SendSolanaTransactionWithEndUserAccountBodyNetwork =
|
|
138
|
-
(typeof SendSolanaTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaTransactionWithEndUserAccountBodyNetwork];
|
|
139
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
140
|
-
export const SendSolanaTransactionWithEndUserAccountBodyNetwork = {
|
|
141
|
-
solana: "solana",
|
|
142
|
-
"solana-devnet": "solana-devnet",
|
|
143
|
-
} as const;
|
|
144
|
-
export type SendSolanaTransactionWithEndUserAccountBody = {
|
|
145
|
-
address: string;
|
|
146
|
-
network: SendSolanaTransactionWithEndUserAccountBodyNetwork;
|
|
147
|
-
transaction: string;
|
|
148
|
-
walletSecretId?: string;
|
|
149
|
-
};
|
|
150
|
-
export type SendSolanaTransactionWithEndUserAccount200 = { transactionSignature: string };
|
|
151
|
-
|
|
152
|
-
export type SendSolanaAssetWithEndUserAccountBodyNetwork =
|
|
153
|
-
(typeof SendSolanaAssetWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaAssetWithEndUserAccountBodyNetwork];
|
|
154
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
155
|
-
export const SendSolanaAssetWithEndUserAccountBodyNetwork = {
|
|
156
|
-
solana: "solana",
|
|
157
|
-
"solana-devnet": "solana-devnet",
|
|
158
|
-
} as const;
|
|
159
|
-
export type SendSolanaAssetWithEndUserAccountBody = {
|
|
160
|
-
to: BlockchainAddress;
|
|
161
|
-
amount: string;
|
|
162
|
-
network: SendSolanaAssetWithEndUserAccountBodyNetwork;
|
|
163
|
-
createRecipientAta?: boolean;
|
|
164
|
-
walletSecretId?: string;
|
|
165
|
-
};
|
|
166
|
-
export type SendSolanaAssetWithEndUserAccount200 = { transactionSignature: string };
|
|
167
|
-
|
|
168
46
|
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
169
47
|
|
|
170
48
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
171
49
|
|
|
172
|
-
/**
|
|
173
|
-
* Signs an arbitrary 32 byte hash with the end user's given EVM account.
|
|
174
|
-
* @summary Sign a hash with end user EVM account
|
|
175
|
-
*/
|
|
176
|
-
export const signEvmHashWithEndUserAccount = (
|
|
177
|
-
projectId: string,
|
|
178
|
-
userId: string,
|
|
179
|
-
signEvmHashWithEndUserAccountBody: SignEvmHashWithEndUserAccountBody,
|
|
180
|
-
options?: SecondParameter<typeof cdpApiClient<SignEvmHashWithEndUserAccount200>>,
|
|
181
|
-
) => {
|
|
182
|
-
return cdpApiClient<SignEvmHashWithEndUserAccount200>(
|
|
183
|
-
{
|
|
184
|
-
url: `/v2/embedded-wallet-api/projects/${projectId}/end-users/${userId}/evm/sign`,
|
|
185
|
-
method: "POST",
|
|
186
|
-
headers: { "Content-Type": "application/json" },
|
|
187
|
-
data: signEvmHashWithEndUserAccountBody,
|
|
188
|
-
},
|
|
189
|
-
options,
|
|
190
|
-
);
|
|
191
|
-
};
|
|
192
50
|
/**
|
|
193
51
|
* Signs a transaction with the given end user EVM account.
|
|
194
52
|
The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
@@ -197,17 +55,18 @@ The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com
|
|
|
197
55
|
* @summary Sign a transaction with end user EVM account
|
|
198
56
|
*/
|
|
199
57
|
export const signEvmTransactionWithEndUserAccount = (
|
|
200
|
-
projectId: string,
|
|
201
58
|
userId: string,
|
|
202
59
|
signEvmTransactionWithEndUserAccountBody: SignEvmTransactionWithEndUserAccountBody,
|
|
60
|
+
params?: SignEvmTransactionWithEndUserAccountParams,
|
|
203
61
|
options?: SecondParameter<typeof cdpApiClient<SignEvmTransactionWithEndUserAccount200>>,
|
|
204
62
|
) => {
|
|
205
63
|
return cdpApiClient<SignEvmTransactionWithEndUserAccount200>(
|
|
206
64
|
{
|
|
207
|
-
url: `/v2/embedded-wallet-api/
|
|
65
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/transaction`,
|
|
208
66
|
method: "POST",
|
|
209
67
|
headers: { "Content-Type": "application/json" },
|
|
210
68
|
data: signEvmTransactionWithEndUserAccountBody,
|
|
69
|
+
params,
|
|
211
70
|
},
|
|
212
71
|
options,
|
|
213
72
|
);
|
|
@@ -242,17 +101,18 @@ The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com
|
|
|
242
101
|
* @summary Send a transaction with end user EVM account
|
|
243
102
|
*/
|
|
244
103
|
export const sendEvmTransactionWithEndUserAccount = (
|
|
245
|
-
projectId: string,
|
|
246
104
|
userId: string,
|
|
247
105
|
sendEvmTransactionWithEndUserAccountBody: SendEvmTransactionWithEndUserAccountBody,
|
|
106
|
+
params?: SendEvmTransactionWithEndUserAccountParams,
|
|
248
107
|
options?: SecondParameter<typeof cdpApiClient<SendEvmTransactionWithEndUserAccount200>>,
|
|
249
108
|
) => {
|
|
250
109
|
return cdpApiClient<SendEvmTransactionWithEndUserAccount200>(
|
|
251
110
|
{
|
|
252
|
-
url: `/v2/embedded-wallet-api/
|
|
111
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/send/transaction`,
|
|
253
112
|
method: "POST",
|
|
254
113
|
headers: { "Content-Type": "application/json" },
|
|
255
114
|
data: sendEvmTransactionWithEndUserAccountBody,
|
|
115
|
+
params,
|
|
256
116
|
},
|
|
257
117
|
options,
|
|
258
118
|
);
|
|
@@ -263,19 +123,20 @@ The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5
|
|
|
263
123
|
* @summary Send USDC on EVM
|
|
264
124
|
*/
|
|
265
125
|
export const sendEvmAssetWithEndUserAccount = (
|
|
266
|
-
projectId: string,
|
|
267
126
|
userId: string,
|
|
268
127
|
address: BlockchainAddress,
|
|
269
128
|
asset: "usdc",
|
|
270
129
|
sendEvmAssetWithEndUserAccountBody: SendEvmAssetWithEndUserAccountBody,
|
|
130
|
+
params?: SendEvmAssetWithEndUserAccountParams,
|
|
271
131
|
options?: SecondParameter<typeof cdpApiClient<SendEvmAssetWithEndUserAccount200>>,
|
|
272
132
|
) => {
|
|
273
133
|
return cdpApiClient<SendEvmAssetWithEndUserAccount200>(
|
|
274
134
|
{
|
|
275
|
-
url: `/v2/embedded-wallet-api/
|
|
135
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/${address}/send/${asset}`,
|
|
276
136
|
method: "POST",
|
|
277
137
|
headers: { "Content-Type": "application/json" },
|
|
278
138
|
data: sendEvmAssetWithEndUserAccountBody,
|
|
139
|
+
params,
|
|
279
140
|
},
|
|
280
141
|
options,
|
|
281
142
|
);
|
|
@@ -287,17 +148,18 @@ Per the specification, the message in the request body is prepended with `0x19 <
|
|
|
287
148
|
* @summary Sign an EIP-191 message with end user EVM account
|
|
288
149
|
*/
|
|
289
150
|
export const signEvmMessageWithEndUserAccount = (
|
|
290
|
-
projectId: string,
|
|
291
151
|
userId: string,
|
|
292
152
|
signEvmMessageWithEndUserAccountBody: SignEvmMessageWithEndUserAccountBody,
|
|
153
|
+
params?: SignEvmMessageWithEndUserAccountParams,
|
|
293
154
|
options?: SecondParameter<typeof cdpApiClient<SignEvmMessageWithEndUserAccount200>>,
|
|
294
155
|
) => {
|
|
295
156
|
return cdpApiClient<SignEvmMessageWithEndUserAccount200>(
|
|
296
157
|
{
|
|
297
|
-
url: `/v2/embedded-wallet-api/
|
|
158
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/message`,
|
|
298
159
|
method: "POST",
|
|
299
160
|
headers: { "Content-Type": "application/json" },
|
|
300
161
|
data: signEvmMessageWithEndUserAccountBody,
|
|
162
|
+
params,
|
|
301
163
|
},
|
|
302
164
|
options,
|
|
303
165
|
);
|
|
@@ -307,17 +169,18 @@ export const signEvmMessageWithEndUserAccount = (
|
|
|
307
169
|
* @summary Sign EIP-712 typed data with end user EVM account
|
|
308
170
|
*/
|
|
309
171
|
export const signEvmTypedDataWithEndUserAccount = (
|
|
310
|
-
projectId: string,
|
|
311
172
|
userId: string,
|
|
312
173
|
signEvmTypedDataWithEndUserAccountBody: SignEvmTypedDataWithEndUserAccountBody,
|
|
174
|
+
params?: SignEvmTypedDataWithEndUserAccountParams,
|
|
313
175
|
options?: SecondParameter<typeof cdpApiClient<SignEvmTypedDataWithEndUserAccount200>>,
|
|
314
176
|
) => {
|
|
315
177
|
return cdpApiClient<SignEvmTypedDataWithEndUserAccount200>(
|
|
316
178
|
{
|
|
317
|
-
url: `/v2/embedded-wallet-api/
|
|
179
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/typed-data`,
|
|
318
180
|
method: "POST",
|
|
319
181
|
headers: { "Content-Type": "application/json" },
|
|
320
182
|
data: signEvmTypedDataWithEndUserAccountBody,
|
|
183
|
+
params,
|
|
321
184
|
},
|
|
322
185
|
options,
|
|
323
186
|
);
|
|
@@ -327,14 +190,13 @@ export const signEvmTypedDataWithEndUserAccount = (
|
|
|
327
190
|
* @summary Revoke delegation for end user
|
|
328
191
|
*/
|
|
329
192
|
export const revokeDelegationForEndUser = (
|
|
330
|
-
projectId: string,
|
|
331
193
|
userId: string,
|
|
332
194
|
revokeDelegationForEndUserBody: RevokeDelegationForEndUserBody,
|
|
333
195
|
options?: SecondParameter<typeof cdpApiClient<void>>,
|
|
334
196
|
) => {
|
|
335
197
|
return cdpApiClient<void>(
|
|
336
198
|
{
|
|
337
|
-
url: `/v2/embedded-wallet-api/
|
|
199
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/delegation`,
|
|
338
200
|
method: "DELETE",
|
|
339
201
|
headers: { "Content-Type": "application/json" },
|
|
340
202
|
data: revokeDelegationForEndUserBody,
|
|
@@ -355,17 +217,18 @@ The delegation allows the EVM EOA to be used as a smart account, which enables b
|
|
|
355
217
|
* @summary Create EIP-7702 delegation for end user EVM account
|
|
356
218
|
*/
|
|
357
219
|
export const createEvmEip7702DelegationWithEndUserAccount = (
|
|
358
|
-
projectId: string,
|
|
359
220
|
userId: string,
|
|
360
221
|
createEvmEip7702DelegationWithEndUserAccountBody: CreateEvmEip7702DelegationWithEndUserAccountBody,
|
|
222
|
+
params?: CreateEvmEip7702DelegationWithEndUserAccountParams,
|
|
361
223
|
options?: SecondParameter<typeof cdpApiClient<CreateEvmEip7702DelegationWithEndUserAccount201>>,
|
|
362
224
|
) => {
|
|
363
225
|
return cdpApiClient<CreateEvmEip7702DelegationWithEndUserAccount201>(
|
|
364
226
|
{
|
|
365
|
-
url: `/v2/embedded-wallet-api/
|
|
227
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/eip7702/delegation`,
|
|
366
228
|
method: "POST",
|
|
367
229
|
headers: { "Content-Type": "application/json" },
|
|
368
230
|
data: createEvmEip7702DelegationWithEndUserAccountBody,
|
|
231
|
+
params,
|
|
369
232
|
},
|
|
370
233
|
options,
|
|
371
234
|
);
|
|
@@ -375,59 +238,19 @@ export const createEvmEip7702DelegationWithEndUserAccount = (
|
|
|
375
238
|
* @summary Send a user operation for end user Smart Account
|
|
376
239
|
*/
|
|
377
240
|
export const sendUserOperationWithEndUserAccount = (
|
|
378
|
-
projectId: string,
|
|
379
241
|
userId: string,
|
|
380
242
|
address: string,
|
|
381
243
|
sendUserOperationWithEndUserAccountBody: SendUserOperationWithEndUserAccountBody,
|
|
244
|
+
params?: SendUserOperationWithEndUserAccountParams,
|
|
382
245
|
options?: SecondParameter<typeof cdpApiClient<EvmUserOperation>>,
|
|
383
246
|
) => {
|
|
384
247
|
return cdpApiClient<EvmUserOperation>(
|
|
385
248
|
{
|
|
386
|
-
url: `/v2/embedded-wallet-api/
|
|
249
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/smart-accounts/${address}/send`,
|
|
387
250
|
method: "POST",
|
|
388
251
|
headers: { "Content-Type": "application/json" },
|
|
389
252
|
data: sendUserOperationWithEndUserAccountBody,
|
|
390
|
-
|
|
391
|
-
options,
|
|
392
|
-
);
|
|
393
|
-
};
|
|
394
|
-
/**
|
|
395
|
-
* Revokes an existing spend permission.
|
|
396
|
-
* @summary Revoke a spend permission
|
|
397
|
-
*/
|
|
398
|
-
export const revokeSpendPermissionWithEndUserAccount = (
|
|
399
|
-
projectId: string,
|
|
400
|
-
userId: string,
|
|
401
|
-
address: string,
|
|
402
|
-
revokeSpendPermissionRequest: RevokeSpendPermissionRequest,
|
|
403
|
-
options?: SecondParameter<typeof cdpApiClient<EvmUserOperation>>,
|
|
404
|
-
) => {
|
|
405
|
-
return cdpApiClient<EvmUserOperation>(
|
|
406
|
-
{
|
|
407
|
-
url: `/v2/embedded-wallet-api/projects/${projectId}/end-users/${userId}/evm/smart-accounts/${address}/spend-permissions/revoke`,
|
|
408
|
-
method: "POST",
|
|
409
|
-
headers: { "Content-Type": "application/json" },
|
|
410
|
-
data: revokeSpendPermissionRequest,
|
|
411
|
-
},
|
|
412
|
-
options,
|
|
413
|
-
);
|
|
414
|
-
};
|
|
415
|
-
/**
|
|
416
|
-
* Signs an arbitrary 32 byte hash with the end user's given Solana account.
|
|
417
|
-
* @summary Sign a hash with end user Solana account
|
|
418
|
-
*/
|
|
419
|
-
export const signSolanaHashWithEndUserAccount = (
|
|
420
|
-
projectId: string,
|
|
421
|
-
userId: string,
|
|
422
|
-
signSolanaHashWithEndUserAccountBody: SignSolanaHashWithEndUserAccountBody,
|
|
423
|
-
options?: SecondParameter<typeof cdpApiClient<SignSolanaHashWithEndUserAccount200>>,
|
|
424
|
-
) => {
|
|
425
|
-
return cdpApiClient<SignSolanaHashWithEndUserAccount200>(
|
|
426
|
-
{
|
|
427
|
-
url: `/v2/embedded-wallet-api/projects/${projectId}/end-users/${userId}/solana/sign`,
|
|
428
|
-
method: "POST",
|
|
429
|
-
headers: { "Content-Type": "application/json" },
|
|
430
|
-
data: signSolanaHashWithEndUserAccountBody,
|
|
253
|
+
params,
|
|
431
254
|
},
|
|
432
255
|
options,
|
|
433
256
|
);
|
|
@@ -438,17 +261,18 @@ export const signSolanaHashWithEndUserAccount = (
|
|
|
438
261
|
* @summary Sign a Base64 encoded message
|
|
439
262
|
*/
|
|
440
263
|
export const signSolanaMessageWithEndUserAccount = (
|
|
441
|
-
projectId: string,
|
|
442
264
|
userId: string,
|
|
443
265
|
signSolanaMessageWithEndUserAccountBody: SignSolanaMessageWithEndUserAccountBody,
|
|
266
|
+
params?: SignSolanaMessageWithEndUserAccountParams,
|
|
444
267
|
options?: SecondParameter<typeof cdpApiClient<SignSolanaMessageWithEndUserAccount200>>,
|
|
445
268
|
) => {
|
|
446
269
|
return cdpApiClient<SignSolanaMessageWithEndUserAccount200>(
|
|
447
270
|
{
|
|
448
|
-
url: `/v2/embedded-wallet-api/
|
|
271
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/message`,
|
|
449
272
|
method: "POST",
|
|
450
273
|
headers: { "Content-Type": "application/json" },
|
|
451
274
|
data: signSolanaMessageWithEndUserAccountBody,
|
|
275
|
+
params,
|
|
452
276
|
},
|
|
453
277
|
options,
|
|
454
278
|
);
|
|
@@ -464,17 +288,18 @@ The developer is responsible for ensuring that the unsigned transaction is valid
|
|
|
464
288
|
* @summary Sign a transaction with end user Solana account
|
|
465
289
|
*/
|
|
466
290
|
export const signSolanaTransactionWithEndUserAccount = (
|
|
467
|
-
projectId: string,
|
|
468
291
|
userId: string,
|
|
469
292
|
signSolanaTransactionWithEndUserAccountBody: SignSolanaTransactionWithEndUserAccountBody,
|
|
293
|
+
params?: SignSolanaTransactionWithEndUserAccountParams,
|
|
470
294
|
options?: SecondParameter<typeof cdpApiClient<SignSolanaTransactionWithEndUserAccount200>>,
|
|
471
295
|
) => {
|
|
472
296
|
return cdpApiClient<SignSolanaTransactionWithEndUserAccount200>(
|
|
473
297
|
{
|
|
474
|
-
url: `/v2/embedded-wallet-api/
|
|
298
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/transaction`,
|
|
475
299
|
method: "POST",
|
|
476
300
|
headers: { "Content-Type": "application/json" },
|
|
477
301
|
data: signSolanaTransactionWithEndUserAccountBody,
|
|
302
|
+
params,
|
|
478
303
|
},
|
|
479
304
|
options,
|
|
480
305
|
);
|
|
@@ -497,17 +322,18 @@ The developer is responsible for ensuring that the unsigned transaction is valid
|
|
|
497
322
|
* @summary Send a transaction with end user Solana account
|
|
498
323
|
*/
|
|
499
324
|
export const sendSolanaTransactionWithEndUserAccount = (
|
|
500
|
-
projectId: string,
|
|
501
325
|
userId: string,
|
|
502
326
|
sendSolanaTransactionWithEndUserAccountBody: SendSolanaTransactionWithEndUserAccountBody,
|
|
327
|
+
params?: SendSolanaTransactionWithEndUserAccountParams,
|
|
503
328
|
options?: SecondParameter<typeof cdpApiClient<SendSolanaTransactionWithEndUserAccount200>>,
|
|
504
329
|
) => {
|
|
505
330
|
return cdpApiClient<SendSolanaTransactionWithEndUserAccount200>(
|
|
506
331
|
{
|
|
507
|
-
url: `/v2/embedded-wallet-api/
|
|
332
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/send/transaction`,
|
|
508
333
|
method: "POST",
|
|
509
334
|
headers: { "Content-Type": "application/json" },
|
|
510
335
|
data: sendSolanaTransactionWithEndUserAccountBody,
|
|
336
|
+
params,
|
|
511
337
|
},
|
|
512
338
|
options,
|
|
513
339
|
);
|
|
@@ -519,26 +345,24 @@ Use the optional `createRecipientAta` parameter to control whether the sender pa
|
|
|
519
345
|
* @summary Send USDC on Solana
|
|
520
346
|
*/
|
|
521
347
|
export const sendSolanaAssetWithEndUserAccount = (
|
|
522
|
-
projectId: string,
|
|
523
348
|
userId: string,
|
|
524
349
|
address: BlockchainAddress,
|
|
525
350
|
asset: "usdc",
|
|
526
351
|
sendSolanaAssetWithEndUserAccountBody: SendSolanaAssetWithEndUserAccountBody,
|
|
352
|
+
params?: SendSolanaAssetWithEndUserAccountParams,
|
|
527
353
|
options?: SecondParameter<typeof cdpApiClient<SendSolanaAssetWithEndUserAccount200>>,
|
|
528
354
|
) => {
|
|
529
355
|
return cdpApiClient<SendSolanaAssetWithEndUserAccount200>(
|
|
530
356
|
{
|
|
531
|
-
url: `/v2/embedded-wallet-api/
|
|
357
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/${address}/send/${asset}`,
|
|
532
358
|
method: "POST",
|
|
533
359
|
headers: { "Content-Type": "application/json" },
|
|
534
360
|
data: sendSolanaAssetWithEndUserAccountBody,
|
|
361
|
+
params,
|
|
535
362
|
},
|
|
536
363
|
options,
|
|
537
364
|
);
|
|
538
365
|
};
|
|
539
|
-
export type SignEvmHashWithEndUserAccountResult = NonNullable<
|
|
540
|
-
Awaited<ReturnType<typeof signEvmHashWithEndUserAccount>>
|
|
541
|
-
>;
|
|
542
366
|
export type SignEvmTransactionWithEndUserAccountResult = NonNullable<
|
|
543
367
|
Awaited<ReturnType<typeof signEvmTransactionWithEndUserAccount>>
|
|
544
368
|
>;
|
|
@@ -563,12 +387,6 @@ export type CreateEvmEip7702DelegationWithEndUserAccountResult = NonNullable<
|
|
|
563
387
|
export type SendUserOperationWithEndUserAccountResult = NonNullable<
|
|
564
388
|
Awaited<ReturnType<typeof sendUserOperationWithEndUserAccount>>
|
|
565
389
|
>;
|
|
566
|
-
export type RevokeSpendPermissionWithEndUserAccountResult = NonNullable<
|
|
567
|
-
Awaited<ReturnType<typeof revokeSpendPermissionWithEndUserAccount>>
|
|
568
|
-
>;
|
|
569
|
-
export type SignSolanaHashWithEndUserAccountResult = NonNullable<
|
|
570
|
-
Awaited<ReturnType<typeof signSolanaHashWithEndUserAccount>>
|
|
571
|
-
>;
|
|
572
390
|
export type SignSolanaMessageWithEndUserAccountResult = NonNullable<
|
|
573
391
|
Awaited<ReturnType<typeof signSolanaMessageWithEndUserAccount>>
|
|
574
392
|
>;
|
|
@@ -57,12 +57,12 @@ export const listWebhookSubscriptions = (
|
|
|
57
57
|
- **No labels required** - maximum simplicity for transaction monitoring
|
|
58
58
|
|
|
59
59
|
**Payments Transfers Events** - Transfer lifecycle notifications:
|
|
60
|
-
- `payments.transfers.quoted`
|
|
61
|
-
- `payments.transfers.processing`
|
|
62
|
-
- `payments.transfers.completed`
|
|
63
|
-
- `payments.transfers.failed`
|
|
64
|
-
- `payments.transfers.travel_rule_incomplete`
|
|
65
|
-
- `payments.transfers.travel_rule_completed`
|
|
60
|
+
- `payments.transfers.quoted` - Transfer created and awaiting execution
|
|
61
|
+
- `payments.transfers.processing` - Transfer execution in progress
|
|
62
|
+
- `payments.transfers.completed` - Transfer completed successfully
|
|
63
|
+
- `payments.transfers.failed` - Transfer failed
|
|
64
|
+
- `payments.transfers.travel_rule_incomplete` - Travel rule information is missing
|
|
65
|
+
- `payments.transfers.travel_rule_completed` - Travel rule information has been provided and the transfer will proceed
|
|
66
66
|
- **No labels required** - enable the transfers webhook to monitor status transitions
|
|
67
67
|
|
|
68
68
|
**Wallet Events** - Wallet activity notifications:
|
package/openapi-client/index.ts
CHANGED
|
@@ -10,11 +10,11 @@ export * from "./generated/policy-engine/policy-engine.js";
|
|
|
10
10
|
export * from "./generated/onramp/onramp.js";
|
|
11
11
|
export * from "./generated/onchain-data/onchain-data.js";
|
|
12
12
|
export * from "./generated/end-user-accounts/end-user-accounts.js";
|
|
13
|
-
export * from "./generated/embedded-wallets
|
|
13
|
+
export * from "./generated/embedded-wallets/embedded-wallets.js";
|
|
14
14
|
export * from "./generated/x402-facilitator/x402-facilitator.js";
|
|
15
15
|
|
|
16
16
|
import { configure } from "./cdpApiClient.js";
|
|
17
|
-
import * as embeddedWallets from "./generated/embedded-wallets
|
|
17
|
+
import * as embeddedWallets from "./generated/embedded-wallets/embedded-wallets.js";
|
|
18
18
|
import * as endUserAccounts from "./generated/end-user-accounts/end-user-accounts.js";
|
|
19
19
|
import * as evm from "./generated/evm-accounts/evm-accounts.js";
|
|
20
20
|
import * as evmSmartAccounts from "./generated/evm-smart-accounts/evm-smart-accounts.js";
|
package/package.json
CHANGED
package/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "1.
|
|
1
|
+
export const version = "1.48.0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"embedded-wallets-core-functionality.js","sourceRoot":"","sources":["../../../../openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts"],"names":[],"mappings":";;;AAqCA,2DAA2D;AAC9C,QAAA,+CAA+C,GAAG;IAC7D,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,cAAc;IAC9B,QAAQ,EAAE,UAAU;IACpB,kBAAkB,EAAE,kBAAkB;IACtC,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAWX,2DAA2D;AAC9C,QAAA,yCAAyC,GAAG;IACvD,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,cAAc;IAC9B,QAAQ,EAAE,UAAU;IACpB,kBAAkB,EAAE,kBAAkB;IACtC,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAsEX,2DAA2D;AAC9C,QAAA,kDAAkD,GAAG;IAChE,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,eAAe;CACxB,CAAC;AAWX,2DAA2D;AAC9C,QAAA,4CAA4C,GAAG;IAC1D,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,eAAe;CACxB,CAAC;AAUX,2DAAqD;AAIrD;;;GAGG;AACI,MAAM,6BAA6B,GAAG,CAC3C,SAAiB,EACjB,MAAc,EACd,iCAAoE,EACpE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,GAAG,EAAE,oCAAoC,SAAS,cAAc,MAAM,0BAA0B;QAChG,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,2CAA2C;KAClD,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,uCAAuC,2CAelD;AACF;;;;;GAKG;AACI,MAAM,iCAAiC,GAAG,CAC/C,SAAiB,EACjB,MAAc,EACd,OAA0B,EAC1B,KAAa,EACb,qCAA4E,EAC5E,OAAoF,EACpF,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,oCAAoC,SAAS,cAAc,MAAM,WAAW,OAAO,SAAS,KAAK,EAAE;QACxG,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,qCAAqC;KAC5C,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAjBW,QAAA,iCAAiC,qCAiB5C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"embedded-wallets-core-functionality.js","sourceRoot":"","sources":["../../../../openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts"],"names":[],"mappings":"AAqCA,2DAA2D;AAC3D,MAAM,CAAC,MAAM,+CAA+C,GAAG;IAC7D,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,cAAc;IAC9B,QAAQ,EAAE,UAAU;IACpB,kBAAkB,EAAE,kBAAkB;IACtC,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAWX,2DAA2D;AAC3D,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACvD,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,cAAc;IAC9B,QAAQ,EAAE,UAAU;IACpB,kBAAkB,EAAE,kBAAkB;IACtC,SAAS,E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