@coinbase/cdp-sdk 1.47.0 → 1.48.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +287 -0
- package/_cjs/actions/webhooks/createWebhookSubscription.js.map +1 -1
- package/_cjs/client/cdp.js +1 -4
- package/_cjs/client/cdp.js.map +1 -1
- package/_cjs/client/end-user/endUser.js +42 -89
- package/_cjs/client/end-user/endUser.js.map +1 -1
- package/_cjs/client/end-user/toEndUserAccount.js +17 -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 +57 -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} +45 -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/actions/webhooks/createWebhookSubscription.js.map +1 -1
- package/_esm/client/cdp.js +2 -5
- package/_esm/client/cdp.js.map +1 -1
- package/_esm/client/end-user/endUser.js +40 -87
- package/_esm/client/end-user/endUser.js.map +1 -1
- package/_esm/client/end-user/toEndUserAccount.js +17 -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 +55 -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} +43 -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/actions/webhooks/createWebhookSubscription.d.ts +1 -1
- package/_types/actions/webhooks/createWebhookSubscription.d.ts.map +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 +19 -52
- package/_types/client/end-user/endUser.d.ts.map +1 -1
- package/_types/client/end-user/endUser.types.d.ts +26 -61
- 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 +490 -79
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts +151 -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 +14 -45
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/actions/webhooks/createWebhookSubscription.ts +6 -1
- package/client/cdp.ts +3 -8
- package/client/end-user/endUser.ts +85 -187
- package/client/end-user/endUser.types.ts +28 -69
- package/client/end-user/toEndUserAccount.ts +63 -152
- package/index.ts +0 -4
- package/openapi-client/cdpApiClient.ts +0 -34
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +551 -85
- package/openapi-client/generated/{embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts → embedded-wallets/embedded-wallets.ts} +86 -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
|
@@ -1,52 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sendSolanaAssetWithEndUserAccount = exports.sendSolanaTransactionWithEndUserAccount = exports.signSolanaTransactionWithEndUserAccount = exports.signSolanaMessageWithEndUserAccount = exports.
|
|
4
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
5
|
-
exports.SendEvmTransactionWithEndUserAccountBodyNetwork = {
|
|
6
|
-
base: "base",
|
|
7
|
-
"base-sepolia": "base-sepolia",
|
|
8
|
-
ethereum: "ethereum",
|
|
9
|
-
"ethereum-sepolia": "ethereum-sepolia",
|
|
10
|
-
avalanche: "avalanche",
|
|
11
|
-
polygon: "polygon",
|
|
12
|
-
optimism: "optimism",
|
|
13
|
-
arbitrum: "arbitrum",
|
|
14
|
-
};
|
|
15
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
16
|
-
exports.SendEvmAssetWithEndUserAccountBodyNetwork = {
|
|
17
|
-
base: "base",
|
|
18
|
-
"base-sepolia": "base-sepolia",
|
|
19
|
-
ethereum: "ethereum",
|
|
20
|
-
"ethereum-sepolia": "ethereum-sepolia",
|
|
21
|
-
avalanche: "avalanche",
|
|
22
|
-
polygon: "polygon",
|
|
23
|
-
optimism: "optimism",
|
|
24
|
-
arbitrum: "arbitrum",
|
|
25
|
-
};
|
|
26
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
27
|
-
exports.SendSolanaTransactionWithEndUserAccountBodyNetwork = {
|
|
28
|
-
solana: "solana",
|
|
29
|
-
"solana-devnet": "solana-devnet",
|
|
30
|
-
};
|
|
31
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
32
|
-
exports.SendSolanaAssetWithEndUserAccountBodyNetwork = {
|
|
33
|
-
solana: "solana",
|
|
34
|
-
"solana-devnet": "solana-devnet",
|
|
35
|
-
};
|
|
3
|
+
exports.sendSolanaAssetWithEndUserAccount = exports.sendSolanaTransactionWithEndUserAccount = exports.signSolanaTransactionWithEndUserAccount = exports.signSolanaMessageWithEndUserAccount = exports.sendUserOperationWithEndUserAccount = exports.createEvmEip7702DelegationWithEndUserAccount = exports.revokeDelegationForEndUser = exports.getDelegationForEndUser = exports.signEvmTypedDataWithEndUserAccount = exports.signEvmMessageWithEndUserAccount = exports.sendEvmAssetWithEndUserAccount = exports.sendEvmTransactionWithEndUserAccount = exports.signEvmTransactionWithEndUserAccount = void 0;
|
|
36
4
|
const cdpApiClient_js_1 = require("../../cdpApiClient.js");
|
|
37
|
-
/**
|
|
38
|
-
* Signs an arbitrary 32 byte hash with the end user's given EVM account.
|
|
39
|
-
* @summary Sign a hash with end user EVM account
|
|
40
|
-
*/
|
|
41
|
-
const signEvmHashWithEndUserAccount = (projectId, userId, signEvmHashWithEndUserAccountBody, options) => {
|
|
42
|
-
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
43
|
-
url: `/v2/embedded-wallet-api/projects/${projectId}/end-users/${userId}/evm/sign`,
|
|
44
|
-
method: "POST",
|
|
45
|
-
headers: { "Content-Type": "application/json" },
|
|
46
|
-
data: signEvmHashWithEndUserAccountBody,
|
|
47
|
-
}, options);
|
|
48
|
-
};
|
|
49
|
-
exports.signEvmHashWithEndUserAccount = signEvmHashWithEndUserAccount;
|
|
50
5
|
/**
|
|
51
6
|
* Signs a transaction with the given end user EVM account.
|
|
52
7
|
The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
@@ -54,12 +9,13 @@ The transaction should be serialized as a hex string using [RLP](https://ethereu
|
|
|
54
9
|
The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md). The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
55
10
|
* @summary Sign a transaction with end user EVM account
|
|
56
11
|
*/
|
|
57
|
-
const signEvmTransactionWithEndUserAccount = (
|
|
12
|
+
const signEvmTransactionWithEndUserAccount = (userId, signEvmTransactionWithEndUserAccountBody, params, options) => {
|
|
58
13
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
59
|
-
url: `/v2/embedded-wallet-api/
|
|
14
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/transaction`,
|
|
60
15
|
method: "POST",
|
|
61
16
|
headers: { "Content-Type": "application/json" },
|
|
62
17
|
data: signEvmTransactionWithEndUserAccountBody,
|
|
18
|
+
params,
|
|
63
19
|
}, options);
|
|
64
20
|
};
|
|
65
21
|
exports.signEvmTransactionWithEndUserAccount = signEvmTransactionWithEndUserAccount;
|
|
@@ -92,12 +48,13 @@ The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com
|
|
|
92
48
|
- `accessList` *(Optional)*: The access list to use for the transaction.
|
|
93
49
|
* @summary Send a transaction with end user EVM account
|
|
94
50
|
*/
|
|
95
|
-
const sendEvmTransactionWithEndUserAccount = (
|
|
51
|
+
const sendEvmTransactionWithEndUserAccount = (userId, sendEvmTransactionWithEndUserAccountBody, params, options) => {
|
|
96
52
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
97
|
-
url: `/v2/embedded-wallet-api/
|
|
53
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/send/transaction`,
|
|
98
54
|
method: "POST",
|
|
99
55
|
headers: { "Content-Type": "application/json" },
|
|
100
56
|
data: sendEvmTransactionWithEndUserAccountBody,
|
|
57
|
+
params,
|
|
101
58
|
}, options);
|
|
102
59
|
};
|
|
103
60
|
exports.sendEvmTransactionWithEndUserAccount = sendEvmTransactionWithEndUserAccount;
|
|
@@ -106,12 +63,13 @@ exports.sendEvmTransactionWithEndUserAccount = sendEvmTransactionWithEndUserAcco
|
|
|
106
63
|
The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50").
|
|
107
64
|
* @summary Send USDC on EVM
|
|
108
65
|
*/
|
|
109
|
-
const sendEvmAssetWithEndUserAccount = (
|
|
66
|
+
const sendEvmAssetWithEndUserAccount = (userId, address, asset, sendEvmAssetWithEndUserAccountBody, params, options) => {
|
|
110
67
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
111
|
-
url: `/v2/embedded-wallet-api/
|
|
68
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/${address}/send/${asset}`,
|
|
112
69
|
method: "POST",
|
|
113
70
|
headers: { "Content-Type": "application/json" },
|
|
114
71
|
data: sendEvmAssetWithEndUserAccountBody,
|
|
72
|
+
params,
|
|
115
73
|
}, options);
|
|
116
74
|
};
|
|
117
75
|
exports.sendEvmAssetWithEndUserAccount = sendEvmAssetWithEndUserAccount;
|
|
@@ -121,12 +79,13 @@ exports.sendEvmAssetWithEndUserAccount = sendEvmAssetWithEndUserAccount;
|
|
|
121
79
|
Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)>` before being signed.
|
|
122
80
|
* @summary Sign an EIP-191 message with end user EVM account
|
|
123
81
|
*/
|
|
124
|
-
const signEvmMessageWithEndUserAccount = (
|
|
82
|
+
const signEvmMessageWithEndUserAccount = (userId, signEvmMessageWithEndUserAccountBody, params, options) => {
|
|
125
83
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
126
|
-
url: `/v2/embedded-wallet-api/
|
|
84
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/message`,
|
|
127
85
|
method: "POST",
|
|
128
86
|
headers: { "Content-Type": "application/json" },
|
|
129
87
|
data: signEvmMessageWithEndUserAccountBody,
|
|
88
|
+
params,
|
|
130
89
|
}, options);
|
|
131
90
|
};
|
|
132
91
|
exports.signEvmMessageWithEndUserAccount = signEvmMessageWithEndUserAccount;
|
|
@@ -134,22 +93,31 @@ exports.signEvmMessageWithEndUserAccount = signEvmMessageWithEndUserAccount;
|
|
|
134
93
|
* Signs [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data with the given end user EVM account.
|
|
135
94
|
* @summary Sign EIP-712 typed data with end user EVM account
|
|
136
95
|
*/
|
|
137
|
-
const signEvmTypedDataWithEndUserAccount = (
|
|
96
|
+
const signEvmTypedDataWithEndUserAccount = (userId, signEvmTypedDataWithEndUserAccountBody, params, options) => {
|
|
138
97
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
139
|
-
url: `/v2/embedded-wallet-api/
|
|
98
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/typed-data`,
|
|
140
99
|
method: "POST",
|
|
141
100
|
headers: { "Content-Type": "application/json" },
|
|
142
101
|
data: signEvmTypedDataWithEndUserAccountBody,
|
|
102
|
+
params,
|
|
143
103
|
}, options);
|
|
144
104
|
};
|
|
145
105
|
exports.signEvmTypedDataWithEndUserAccount = signEvmTypedDataWithEndUserAccount;
|
|
106
|
+
/**
|
|
107
|
+
* Returns the active delegation for the specified end user, if one exists. This operation can be performed by the end user themselves or by a developer using their API key.
|
|
108
|
+
* @summary Get delegation for end user
|
|
109
|
+
*/
|
|
110
|
+
const getDelegationForEndUser = (userId, params, options) => {
|
|
111
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/embedded-wallet-api/end-users/${userId}/delegation`, method: "GET", params }, options);
|
|
112
|
+
};
|
|
113
|
+
exports.getDelegationForEndUser = getDelegationForEndUser;
|
|
146
114
|
/**
|
|
147
115
|
* Revokes all active delegations for the specified end user. This operation can be performed by the end user themselves or by a developer using their API key.
|
|
148
116
|
* @summary Revoke delegation for end user
|
|
149
117
|
*/
|
|
150
|
-
const revokeDelegationForEndUser = (
|
|
118
|
+
const revokeDelegationForEndUser = (userId, revokeDelegationForEndUserBody, options) => {
|
|
151
119
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
152
|
-
url: `/v2/embedded-wallet-api/
|
|
120
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/delegation`,
|
|
153
121
|
method: "DELETE",
|
|
154
122
|
headers: { "Content-Type": "application/json" },
|
|
155
123
|
data: revokeDelegationForEndUserBody,
|
|
@@ -168,12 +136,13 @@ This endpoint:
|
|
|
168
136
|
The delegation allows the EVM EOA to be used as a smart account, which enables batched transactions and gas sponsorship via paymaster.
|
|
169
137
|
* @summary Create EIP-7702 delegation for end user EVM account
|
|
170
138
|
*/
|
|
171
|
-
const createEvmEip7702DelegationWithEndUserAccount = (
|
|
139
|
+
const createEvmEip7702DelegationWithEndUserAccount = (userId, createEvmEip7702DelegationWithEndUserAccountBody, params, options) => {
|
|
172
140
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
173
|
-
url: `/v2/embedded-wallet-api/
|
|
141
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/eip7702/delegation`,
|
|
174
142
|
method: "POST",
|
|
175
143
|
headers: { "Content-Type": "application/json" },
|
|
176
144
|
data: createEvmEip7702DelegationWithEndUserAccountBody,
|
|
145
|
+
params,
|
|
177
146
|
}, options);
|
|
178
147
|
};
|
|
179
148
|
exports.createEvmEip7702DelegationWithEndUserAccount = createEvmEip7702DelegationWithEndUserAccount;
|
|
@@ -181,52 +150,28 @@ exports.createEvmEip7702DelegationWithEndUserAccount = createEvmEip7702Delegatio
|
|
|
181
150
|
* Prepares, signs, and sends a user operation for an end user's Smart Account.
|
|
182
151
|
* @summary Send a user operation for end user Smart Account
|
|
183
152
|
*/
|
|
184
|
-
const sendUserOperationWithEndUserAccount = (
|
|
153
|
+
const sendUserOperationWithEndUserAccount = (userId, address, sendUserOperationWithEndUserAccountBody, params, options) => {
|
|
185
154
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
186
|
-
url: `/v2/embedded-wallet-api/
|
|
155
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/smart-accounts/${address}/send`,
|
|
187
156
|
method: "POST",
|
|
188
157
|
headers: { "Content-Type": "application/json" },
|
|
189
158
|
data: sendUserOperationWithEndUserAccountBody,
|
|
159
|
+
params,
|
|
190
160
|
}, options);
|
|
191
161
|
};
|
|
192
162
|
exports.sendUserOperationWithEndUserAccount = sendUserOperationWithEndUserAccount;
|
|
193
|
-
/**
|
|
194
|
-
* Revokes an existing spend permission.
|
|
195
|
-
* @summary Revoke a spend permission
|
|
196
|
-
*/
|
|
197
|
-
const revokeSpendPermissionWithEndUserAccount = (projectId, userId, address, revokeSpendPermissionRequest, options) => {
|
|
198
|
-
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
199
|
-
url: `/v2/embedded-wallet-api/projects/${projectId}/end-users/${userId}/evm/smart-accounts/${address}/spend-permissions/revoke`,
|
|
200
|
-
method: "POST",
|
|
201
|
-
headers: { "Content-Type": "application/json" },
|
|
202
|
-
data: revokeSpendPermissionRequest,
|
|
203
|
-
}, options);
|
|
204
|
-
};
|
|
205
|
-
exports.revokeSpendPermissionWithEndUserAccount = revokeSpendPermissionWithEndUserAccount;
|
|
206
|
-
/**
|
|
207
|
-
* Signs an arbitrary 32 byte hash with the end user's given Solana account.
|
|
208
|
-
* @summary Sign a hash with end user Solana account
|
|
209
|
-
*/
|
|
210
|
-
const signSolanaHashWithEndUserAccount = (projectId, userId, signSolanaHashWithEndUserAccountBody, options) => {
|
|
211
|
-
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
212
|
-
url: `/v2/embedded-wallet-api/projects/${projectId}/end-users/${userId}/solana/sign`,
|
|
213
|
-
method: "POST",
|
|
214
|
-
headers: { "Content-Type": "application/json" },
|
|
215
|
-
data: signSolanaHashWithEndUserAccountBody,
|
|
216
|
-
}, options);
|
|
217
|
-
};
|
|
218
|
-
exports.signSolanaHashWithEndUserAccount = signSolanaHashWithEndUserAccount;
|
|
219
163
|
/**
|
|
220
164
|
* Signs an arbitrary Base64 encoded message with the given Solana account.
|
|
221
165
|
**WARNING:** Never sign a message that you didn't generate as it may put your funds at risk.
|
|
222
166
|
* @summary Sign a Base64 encoded message
|
|
223
167
|
*/
|
|
224
|
-
const signSolanaMessageWithEndUserAccount = (
|
|
168
|
+
const signSolanaMessageWithEndUserAccount = (userId, signSolanaMessageWithEndUserAccountBody, params, options) => {
|
|
225
169
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
226
|
-
url: `/v2/embedded-wallet-api/
|
|
170
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/message`,
|
|
227
171
|
method: "POST",
|
|
228
172
|
headers: { "Content-Type": "application/json" },
|
|
229
173
|
data: signSolanaMessageWithEndUserAccountBody,
|
|
174
|
+
params,
|
|
230
175
|
}, options);
|
|
231
176
|
};
|
|
232
177
|
exports.signSolanaMessageWithEndUserAccount = signSolanaMessageWithEndUserAccount;
|
|
@@ -240,12 +185,13 @@ The following transaction types are supported:
|
|
|
240
185
|
The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
241
186
|
* @summary Sign a transaction with end user Solana account
|
|
242
187
|
*/
|
|
243
|
-
const signSolanaTransactionWithEndUserAccount = (
|
|
188
|
+
const signSolanaTransactionWithEndUserAccount = (userId, signSolanaTransactionWithEndUserAccountBody, params, options) => {
|
|
244
189
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
245
|
-
url: `/v2/embedded-wallet-api/
|
|
190
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/transaction`,
|
|
246
191
|
method: "POST",
|
|
247
192
|
headers: { "Content-Type": "application/json" },
|
|
248
193
|
data: signSolanaTransactionWithEndUserAccountBody,
|
|
194
|
+
params,
|
|
249
195
|
}, options);
|
|
250
196
|
};
|
|
251
197
|
exports.signSolanaTransactionWithEndUserAccount = signSolanaTransactionWithEndUserAccount;
|
|
@@ -266,12 +212,13 @@ The following Solana networks are supported:
|
|
|
266
212
|
The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
267
213
|
* @summary Send a transaction with end user Solana account
|
|
268
214
|
*/
|
|
269
|
-
const sendSolanaTransactionWithEndUserAccount = (
|
|
215
|
+
const sendSolanaTransactionWithEndUserAccount = (userId, sendSolanaTransactionWithEndUserAccountBody, params, options) => {
|
|
270
216
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
271
|
-
url: `/v2/embedded-wallet-api/
|
|
217
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/send/transaction`,
|
|
272
218
|
method: "POST",
|
|
273
219
|
headers: { "Content-Type": "application/json" },
|
|
274
220
|
data: sendSolanaTransactionWithEndUserAccountBody,
|
|
221
|
+
params,
|
|
275
222
|
}, options);
|
|
276
223
|
};
|
|
277
224
|
exports.sendSolanaTransactionWithEndUserAccount = sendSolanaTransactionWithEndUserAccount;
|
|
@@ -281,13 +228,14 @@ The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5
|
|
|
281
228
|
Use the optional `createRecipientAta` parameter to control whether the sender pays for creating the recipient's Associated Token Account if it doesn't exist.
|
|
282
229
|
* @summary Send USDC on Solana
|
|
283
230
|
*/
|
|
284
|
-
const sendSolanaAssetWithEndUserAccount = (
|
|
231
|
+
const sendSolanaAssetWithEndUserAccount = (userId, address, asset, sendSolanaAssetWithEndUserAccountBody, params, options) => {
|
|
285
232
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
286
|
-
url: `/v2/embedded-wallet-api/
|
|
233
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/${address}/send/${asset}`,
|
|
287
234
|
method: "POST",
|
|
288
235
|
headers: { "Content-Type": "application/json" },
|
|
289
236
|
data: sendSolanaAssetWithEndUserAccountBody,
|
|
237
|
+
params,
|
|
290
238
|
}, options);
|
|
291
239
|
};
|
|
292
240
|
exports.sendSolanaAssetWithEndUserAccount = sendSolanaAssetWithEndUserAccount;
|
|
293
|
-
//# sourceMappingURL=embedded-wallets
|
|
241
|
+
//# sourceMappingURL=embedded-wallets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedded-wallets.js","sourceRoot":"","sources":["../../../../openapi-client/generated/embedded-wallets/embedded-wallets.ts"],"names":[],"mappings":";;;AA+CA,2DAAqD;AAIrD;;;;;;GAMG;AACI,MAAM,oCAAoC,GAAG,CAClD,MAAc,EACd,wCAAkF,EAClF,MAAmD,EACnD,OAAuF,EACvF,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,qCAAqC,MAAM,uBAAuB;QACvE,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,wCAAwC;QAC9C,MAAM;KACP,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,oCAAoC,wCAgB/C;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACI,MAAM,oCAAoC,GAAG,CAClD,MAAc,EACd,wCAAkF,EAClF,MAAmD,EACnD,OAAuF,EACvF,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,qCAAqC,MAAM,uBAAuB;QACvE,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,wCAAwC;QAC9C,MAAM;KACP,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,oCAAoC,wCAgB/C;AACF;;;;GA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CAA4E,EAC5E,MAAgD,EAChD,OAAoF,EACpF,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,qCAAqC,MAAM,WAAW,OAAO,SAAS,KAAK,EAAE;QAClF,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,qCAAqC;QAC3C,MAAM;KACP,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,iCAAiC,qCAkB5C"}
|
|
@@ -35,12 +35,12 @@ exports.listWebhookSubscriptions = listWebhookSubscriptions;
|
|
|
35
35
|
- **No labels required** - maximum simplicity for transaction monitoring
|
|
36
36
|
|
|
37
37
|
**Payments Transfers Events** - Transfer lifecycle notifications:
|
|
38
|
-
- `payments.transfers.quoted`
|
|
39
|
-
- `payments.transfers.processing`
|
|
40
|
-
- `payments.transfers.completed`
|
|
41
|
-
- `payments.transfers.failed`
|
|
42
|
-
- `payments.transfers.travel_rule_incomplete`
|
|
43
|
-
- `payments.transfers.travel_rule_completed`
|
|
38
|
+
- `payments.transfers.quoted` - Transfer created and awaiting execution
|
|
39
|
+
- `payments.transfers.processing` - Transfer execution in progress
|
|
40
|
+
- `payments.transfers.completed` - Transfer completed successfully
|
|
41
|
+
- `payments.transfers.failed` - Transfer failed
|
|
42
|
+
- `payments.transfers.travel_rule_incomplete` - Travel rule information is missing
|
|
43
|
+
- `payments.transfers.travel_rule_completed` - Travel rule information has been provided and the transfer will proceed
|
|
44
44
|
- **No labels required** - enable the transfers webhook to monitor status transitions
|
|
45
45
|
|
|
46
46
|
**Wallet Events** - Wallet activity notifications:
|
|
@@ -49,10 +49,10 @@ __exportStar(require("./generated/policy-engine/policy-engine.js"), exports);
|
|
|
49
49
|
__exportStar(require("./generated/onramp/onramp.js"), exports);
|
|
50
50
|
__exportStar(require("./generated/onchain-data/onchain-data.js"), exports);
|
|
51
51
|
__exportStar(require("./generated/end-user-accounts/end-user-accounts.js"), exports);
|
|
52
|
-
__exportStar(require("./generated/embedded-wallets
|
|
52
|
+
__exportStar(require("./generated/embedded-wallets/embedded-wallets.js"), exports);
|
|
53
53
|
__exportStar(require("./generated/x402-facilitator/x402-facilitator.js"), exports);
|
|
54
54
|
const cdpApiClient_js_1 = require("./cdpApiClient.js");
|
|
55
|
-
const embeddedWallets = __importStar(require("./generated/embedded-wallets
|
|
55
|
+
const embeddedWallets = __importStar(require("./generated/embedded-wallets/embedded-wallets.js"));
|
|
56
56
|
const endUserAccounts = __importStar(require("./generated/end-user-accounts/end-user-accounts.js"));
|
|
57
57
|
const evm = __importStar(require("./generated/evm-accounts/evm-accounts.js"));
|
|
58
58
|
const evmSmartAccounts = __importStar(require("./generated/evm-smart-accounts/evm-smart-accounts.js"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../openapi-client/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uFAAqE;AACrE,2EAAyD;AACzD,uFAAqE;AACrE,qEAAmD;AACnD,uFAAqE;AACrE,iFAA+D;AAC/D,6FAA2E;AAC3E,iEAA+C;AAC/C,6EAA2D;AAC3D,+DAA6C;AAC7C,2EAAyD;AACzD,qFAAmE;AACnE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../openapi-client/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uFAAqE;AACrE,2EAAyD;AACzD,uFAAqE;AACrE,qEAAmD;AACnD,uFAAqE;AACrE,iFAA+D;AAC/D,6FAA2E;AAC3E,iEAA+C;AAC/C,6EAA2D;AAC3D,+DAA6C;AAC7C,2EAAyD;AACzD,qFAAmE;AACnE,mFAAiE;AACjE,mFAAiE;AAEjE,uDAA8C;AAC9C,kGAAoF;AACpF,oGAAsF;AACtF,8EAAgE;AAChE,uGAAyF;AACzF,6EAA+D;AAC/D,uGAAyF;AACzF,wEAA0D;AAC1D,sFAAwE;AACxE,qFAAuE;AACvE,uFAAyE;AACzE,gHAAkG;AAClG,2EAA6D;AAEhD,QAAA,gBAAgB,GAAG;IAC9B,GAAG,GAAG;IACN,GAAG,gBAAgB;IACnB,GAAG,QAAQ;IACX,GAAG,gBAAgB;IACnB,GAAG,QAAQ;IACX,GAAG,MAAM;IACT,GAAG,mBAAmB;IACtB,GAAG,OAAO;IACV,GAAG,WAAW;IACd,GAAG,QAAQ;IACX,GAAG,eAAe;IAClB,GAAG,eAAe;IAClB,SAAS,EAAT,2BAAS;CACV,CAAC;AAEW,QAAA,iBAAiB,GAAG;IAC/B,GAAG,GAAG;IACN,GAAG,gBAAgB;IACnB,GAAG,QAAQ;IACX,GAAG,gBAAgB;IACnB,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;CAC3C,CAAC;AAEW,QAAA,oBAAoB,GAAG;IAClC,GAAG,MAAM;IACT,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;CACjD,CAAC;AAEW,QAAA,sBAAsB,GAAG;IACpC,GAAG,QAAQ;CACZ,CAAC;AAGF,iEAA+C"}
|
package/_cjs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createWebhookSubscription.js","sourceRoot":"","sources":["../../../actions/webhooks/createWebhookSubscription.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createWebhookSubscription.js","sourceRoot":"","sources":["../../../actions/webhooks/createWebhookSubscription.ts"],"names":[],"mappings":"AA6DA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,MAA4B,EAC5B,OAAyC;IAEzC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC;QACtD,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,MAAM,EAAE;YACN,GAAG,EAAE,OAAO,CAAC,SAAS;YACtB,OAAO,EAAE,OAAO,CAAC,aAAa;SAC/B;QACD,SAAS,EAAE,OAAO,CAAC,SAAS,IAAI,IAAI;QACpC,QAAQ,EAAE,OAAO,CAAC,QAAQ;KAC3B,CAAC,CAAC;IAEH,OAAO;QACL,cAAc,EAAE,QAAQ,CAAC,cAAc;QACvC,WAAW,EAAE,QAAQ,CAAC,WAAW;QACjC,UAAU,EAAE,QAAQ,CAAC,UAAU;QAC/B,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG;QAC9B,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO;QACtC,SAAS,EAAE,QAAQ,CAAC,SAAS;QAC7B,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,SAAS,EAAE,QAAQ,CAAC,SAAS;QAC7B,SAAS,EAAE,QAAQ,CAAC,SAAS;KAC9B,CAAC;AACJ,CAAC"}
|
package/_esm/client/cdp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Analytics } from "../analytics.js";
|
|
2
2
|
import { CdpOpenApiClient } from "../openapi-client/index.js";
|
|
3
3
|
import { version } from "../version.js";
|
|
4
|
-
import {
|
|
4
|
+
import { EndUserClient } from "./end-user/endUser.js";
|
|
5
5
|
import { EvmClient } from "./evm/evm.js";
|
|
6
6
|
import { PoliciesClient } from "./policies/policies.js";
|
|
7
7
|
import { SolanaClient } from "./solana/solana.js";
|
|
@@ -35,7 +35,6 @@ export class CdpClient {
|
|
|
35
35
|
* CDP_API_KEY_ID=your-api-key-id
|
|
36
36
|
* CDP_API_KEY_SECRET=your-api-key-secret
|
|
37
37
|
* CDP_WALLET_SECRET=your-wallet-secret
|
|
38
|
-
* CDP_PROJECT_ID=your-project-id
|
|
39
38
|
* ```
|
|
40
39
|
*
|
|
41
40
|
* Or passed as options to the constructor:
|
|
@@ -45,7 +44,6 @@ export class CdpClient {
|
|
|
45
44
|
* apiKeyId: "your-api-key-id",
|
|
46
45
|
* apiKeySecret: "your-api-key-secret",
|
|
47
46
|
* walletSecret: "your-wallet-secret",
|
|
48
|
-
* projectId: "your-project-id",
|
|
49
47
|
* });
|
|
50
48
|
* ```
|
|
51
49
|
*
|
|
@@ -67,7 +65,6 @@ We recommend using https://github.com/Schniz/fnm for managing your Node.js versi
|
|
|
67
65
|
const apiKeyId = options.apiKeyId ?? process.env.CDP_API_KEY_ID ?? process.env.CDP_API_KEY_NAME;
|
|
68
66
|
const apiKeySecret = options.apiKeySecret ?? process.env.CDP_API_KEY_SECRET;
|
|
69
67
|
const walletSecret = options.walletSecret ?? process.env.CDP_WALLET_SECRET;
|
|
70
|
-
const projectId = options.projectId ?? process.env.CDP_PROJECT_ID;
|
|
71
68
|
if (!apiKeyId || !apiKeySecret) {
|
|
72
69
|
throw new Error(`
|
|
73
70
|
\nMissing required CDP Secret API Key configuration parameters.
|
|
@@ -114,7 +111,7 @@ For more information, see: https://github.com/coinbase/cdp-sdk/blob/main/typescr
|
|
|
114
111
|
this.evm = new EvmClient();
|
|
115
112
|
this.solana = new SolanaClient();
|
|
116
113
|
this.policies = new PoliciesClient();
|
|
117
|
-
this.endUser = new
|
|
114
|
+
this.endUser = new EndUserClient();
|
|
118
115
|
this.webhooks = new WebhooksClient();
|
|
119
116
|
}
|
|
120
117
|
}
|
package/_esm/client/cdp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdp.js","sourceRoot":"","sources":["../../client/cdp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"cdp.js","sourceRoot":"","sources":["../../client/cdp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,E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