@coinbase/cdp-sdk 1.44.1 → 1.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/CHANGELOG.md +28 -2
  2. package/README.md +164 -43
  3. package/_cjs/accounts/evm/eip6492.js +49 -0
  4. package/_cjs/accounts/evm/eip6492.js.map +1 -0
  5. package/_cjs/accounts/evm/toEvmDelegatedAccount.js +27 -0
  6. package/_cjs/accounts/evm/toEvmDelegatedAccount.js.map +1 -0
  7. package/_cjs/accounts/evm/toEvmServerAccount.js +127 -55
  8. package/_cjs/accounts/evm/toEvmServerAccount.js.map +1 -1
  9. package/_cjs/accounts/evm/toEvmSmartAccount.js +115 -45
  10. package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -1
  11. package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js +31 -0
  12. package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
  13. package/_cjs/accounts/solana/toSolanaAccount.js +49 -19
  14. package/_cjs/accounts/solana/toSolanaAccount.js.map +1 -1
  15. package/_cjs/actions/evm/waitForEvmEip7702DelegationStatus.js +37 -0
  16. package/_cjs/actions/evm/waitForEvmEip7702DelegationStatus.js.map +1 -0
  17. package/_cjs/actions/solana/transfer.js.map +1 -1
  18. package/_cjs/actions/solana/utils.js +9 -9
  19. package/_cjs/actions/solana/utils.js.map +1 -1
  20. package/_cjs/analytics.js +10 -228
  21. package/_cjs/analytics.js.map +1 -1
  22. package/_cjs/auth/utils/http.js +1 -0
  23. package/_cjs/auth/utils/http.js.map +1 -1
  24. package/_cjs/client/cdp.js +4 -7
  25. package/_cjs/client/cdp.js.map +1 -1
  26. package/_cjs/client/end-user/endUser.js +385 -4
  27. package/_cjs/client/end-user/endUser.js.map +1 -1
  28. package/_cjs/client/end-user/toEndUserAccount.js +201 -23
  29. package/_cjs/client/end-user/toEndUserAccount.js.map +1 -1
  30. package/_cjs/client/evm/evm.js +482 -227
  31. package/_cjs/client/evm/evm.js.map +1 -1
  32. package/_cjs/client/policies/policies.js +41 -11
  33. package/_cjs/client/policies/policies.js.map +1 -1
  34. package/_cjs/client/solana/solana.js +215 -118
  35. package/_cjs/client/solana/solana.js.map +1 -1
  36. package/_cjs/index.js +3 -1
  37. package/_cjs/index.js.map +1 -1
  38. package/_cjs/openapi-client/cdpApiClient.js +32 -0
  39. package/_cjs/openapi-client/cdpApiClient.js.map +1 -1
  40. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +178 -9
  41. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  42. package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js +261 -0
  43. package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +1 -0
  44. package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
  45. package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js +30 -1
  46. package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
  47. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +2 -2
  48. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
  49. package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
  50. package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
  51. package/_cjs/openapi-client/generated/faucets/faucets.js +6 -5
  52. package/_cjs/openapi-client/generated/faucets/faucets.js.map +1 -1
  53. package/_cjs/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
  54. package/_cjs/openapi-client/generated/onramp/onramp.js +15 -1
  55. package/_cjs/openapi-client/generated/onramp/onramp.js.map +1 -1
  56. package/_cjs/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
  57. package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
  58. package/_cjs/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
  59. package/_cjs/openapi-client/generated/sql-api/sql-api.js +75 -0
  60. package/_cjs/openapi-client/generated/sql-api/sql-api.js.map +1 -0
  61. package/_cjs/openapi-client/generated/webhooks/webhooks.js.map +1 -1
  62. package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
  63. package/_cjs/openapi-client/index.js +4 -1
  64. package/_cjs/openapi-client/index.js.map +1 -1
  65. package/_cjs/policies/evmSchema.js +127 -1
  66. package/_cjs/policies/evmSchema.js.map +1 -1
  67. package/_cjs/policies/solanaSchema.js +102 -1
  68. package/_cjs/policies/solanaSchema.js.map +1 -1
  69. package/_cjs/policies/types.js +7 -0
  70. package/_cjs/policies/types.js.map +1 -1
  71. package/_cjs/utils/export.js +6 -5
  72. package/_cjs/utils/export.js.map +1 -1
  73. package/_cjs/version.js +1 -1
  74. package/_esm/accounts/evm/eip6492.js +46 -0
  75. package/_esm/accounts/evm/eip6492.js.map +1 -0
  76. package/_esm/accounts/evm/toEvmDelegatedAccount.js +24 -0
  77. package/_esm/accounts/evm/toEvmDelegatedAccount.js.map +1 -0
  78. package/_esm/accounts/evm/toEvmServerAccount.js +127 -55
  79. package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -1
  80. package/_esm/accounts/evm/toEvmSmartAccount.js +115 -45
  81. package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -1
  82. package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js +31 -0
  83. package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
  84. package/_esm/accounts/solana/toSolanaAccount.js +49 -19
  85. package/_esm/accounts/solana/toSolanaAccount.js.map +1 -1
  86. package/_esm/actions/evm/waitForEvmEip7702DelegationStatus.js +34 -0
  87. package/_esm/actions/evm/waitForEvmEip7702DelegationStatus.js.map +1 -0
  88. package/_esm/actions/solana/transfer.js.map +1 -1
  89. package/_esm/actions/solana/utils.js +9 -9
  90. package/_esm/actions/solana/utils.js.map +1 -1
  91. package/_esm/analytics.js +9 -227
  92. package/_esm/analytics.js.map +1 -1
  93. package/_esm/auth/utils/http.js +1 -0
  94. package/_esm/auth/utils/http.js.map +1 -1
  95. package/_esm/client/cdp.js +4 -7
  96. package/_esm/client/cdp.js.map +1 -1
  97. package/_esm/client/end-user/endUser.js +385 -4
  98. package/_esm/client/end-user/endUser.js.map +1 -1
  99. package/_esm/client/end-user/toEndUserAccount.js +201 -23
  100. package/_esm/client/end-user/toEndUserAccount.js.map +1 -1
  101. package/_esm/client/evm/evm.js +482 -227
  102. package/_esm/client/evm/evm.js.map +1 -1
  103. package/_esm/client/policies/policies.js +41 -11
  104. package/_esm/client/policies/policies.js.map +1 -1
  105. package/_esm/client/solana/solana.js +215 -118
  106. package/_esm/client/solana/solana.js.map +1 -1
  107. package/_esm/index.js +1 -0
  108. package/_esm/index.js.map +1 -1
  109. package/_esm/openapi-client/cdpApiClient.js +32 -0
  110. package/_esm/openapi-client/cdpApiClient.js.map +1 -1
  111. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +175 -7
  112. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  113. package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js +243 -0
  114. package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +1 -0
  115. package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
  116. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js +27 -0
  117. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
  118. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +2 -2
  119. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
  120. package/_esm/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
  121. package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
  122. package/_esm/openapi-client/generated/faucets/faucets.js +6 -5
  123. package/_esm/openapi-client/generated/faucets/faucets.js.map +1 -1
  124. package/_esm/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
  125. package/_esm/openapi-client/generated/onramp/onramp.js +13 -0
  126. package/_esm/openapi-client/generated/onramp/onramp.js.map +1 -1
  127. package/_esm/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
  128. package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
  129. package/_esm/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
  130. package/_esm/openapi-client/generated/sql-api/sql-api.js +70 -0
  131. package/_esm/openapi-client/generated/sql-api/sql-api.js.map +1 -0
  132. package/_esm/openapi-client/generated/webhooks/webhooks.js.map +1 -1
  133. package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
  134. package/_esm/openapi-client/index.js +4 -1
  135. package/_esm/openapi-client/index.js.map +1 -1
  136. package/_esm/policies/evmSchema.js +126 -0
  137. package/_esm/policies/evmSchema.js.map +1 -1
  138. package/_esm/policies/solanaSchema.js +101 -0
  139. package/_esm/policies/solanaSchema.js.map +1 -1
  140. package/_esm/policies/types.js +9 -2
  141. package/_esm/policies/types.js.map +1 -1
  142. package/_esm/utils/export.js +6 -5
  143. package/_esm/utils/export.js.map +1 -1
  144. package/_esm/version.js +1 -1
  145. package/_types/accounts/evm/eip6492.d.ts +17 -0
  146. package/_types/accounts/evm/eip6492.d.ts.map +1 -0
  147. package/_types/accounts/evm/toEvmDelegatedAccount.d.ts +13 -0
  148. package/_types/accounts/evm/toEvmDelegatedAccount.d.ts.map +1 -0
  149. package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -1
  150. package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -1
  151. package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts +4 -4
  152. package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts.map +1 -1
  153. package/_types/accounts/evm/types.d.ts +3 -2
  154. package/_types/accounts/evm/types.d.ts.map +1 -1
  155. package/_types/accounts/solana/toSolanaAccount.d.ts.map +1 -1
  156. package/_types/actions/evm/waitForEvmEip7702DelegationStatus.d.ts +32 -0
  157. package/_types/actions/evm/waitForEvmEip7702DelegationStatus.d.ts.map +1 -0
  158. package/_types/actions/solana/transfer.d.ts +3 -4
  159. package/_types/actions/solana/transfer.d.ts.map +1 -1
  160. package/_types/actions/solana/types.d.ts +79 -29
  161. package/_types/actions/solana/types.d.ts.map +1 -1
  162. package/_types/actions/solana/utils.d.ts +10 -9
  163. package/_types/actions/solana/utils.d.ts.map +1 -1
  164. package/_types/analytics.d.ts +5 -38
  165. package/_types/analytics.d.ts.map +1 -1
  166. package/_types/auth/utils/http.d.ts.map +1 -1
  167. package/_types/client/cdp.d.ts +4 -0
  168. package/_types/client/cdp.d.ts.map +1 -1
  169. package/_types/client/end-user/endUser.d.ts +272 -1
  170. package/_types/client/end-user/endUser.d.ts.map +1 -1
  171. package/_types/client/end-user/endUser.types.d.ts +491 -1
  172. package/_types/client/end-user/endUser.types.d.ts.map +1 -1
  173. package/_types/client/end-user/toEndUserAccount.d.ts +4 -1
  174. package/_types/client/end-user/toEndUserAccount.d.ts.map +1 -1
  175. package/_types/client/evm/evm.d.ts +54 -1
  176. package/_types/client/evm/evm.d.ts.map +1 -1
  177. package/_types/client/evm/evm.types.d.ts +29 -2
  178. package/_types/client/evm/evm.types.d.ts.map +1 -1
  179. package/_types/client/policies/policies.d.ts.map +1 -1
  180. package/_types/client/solana/solana.d.ts +38 -12
  181. package/_types/client/solana/solana.d.ts.map +1 -1
  182. package/_types/index.d.ts +3 -1
  183. package/_types/index.d.ts.map +1 -1
  184. package/_types/openapi-client/cdpApiClient.d.ts.map +1 -1
  185. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +884 -90
  186. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
  187. package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts +163 -0
  188. package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts.map +1 -0
  189. package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts +9 -9
  190. package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts.map +1 -1
  191. package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts +35 -15
  192. package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts.map +1 -1
  193. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +14 -14
  194. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -1
  195. package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts +3 -3
  196. package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts.map +1 -1
  197. package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts +2 -2
  198. package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts.map +1 -1
  199. package/_types/openapi-client/generated/faucets/faucets.d.ts +9 -8
  200. package/_types/openapi-client/generated/faucets/faucets.d.ts.map +1 -1
  201. package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts +3 -3
  202. package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts.map +1 -1
  203. package/_types/openapi-client/generated/onramp/onramp.d.ts +12 -5
  204. package/_types/openapi-client/generated/onramp/onramp.d.ts.map +1 -1
  205. package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts +6 -6
  206. package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts.map +1 -1
  207. package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts +12 -12
  208. package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts.map +1 -1
  209. package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.d.ts +2 -2
  210. package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.d.ts.map +1 -1
  211. package/_types/openapi-client/generated/sql-api/sql-api.d.ts +73 -0
  212. package/_types/openapi-client/generated/sql-api/sql-api.d.ts.map +1 -0
  213. package/_types/openapi-client/generated/webhooks/webhooks.d.ts +6 -6
  214. package/_types/openapi-client/generated/webhooks/webhooks.d.ts.map +1 -1
  215. package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts +4 -4
  216. package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts.map +1 -1
  217. package/_types/openapi-client/index.d.ts +23 -3
  218. package/_types/openapi-client/index.d.ts.map +1 -1
  219. package/_types/policies/evmSchema.d.ts +3128 -1064
  220. package/_types/policies/evmSchema.d.ts.map +1 -1
  221. package/_types/policies/solanaSchema.d.ts +1411 -47
  222. package/_types/policies/solanaSchema.d.ts.map +1 -1
  223. package/_types/policies/types.d.ts +8427 -2942
  224. package/_types/policies/types.d.ts.map +1 -1
  225. package/_types/types/contract.d.ts.map +1 -1
  226. package/_types/utils/export.d.ts +1 -1
  227. package/_types/utils/export.d.ts.map +1 -1
  228. package/_types/version.d.ts +1 -1
  229. package/accounts/evm/eip6492.ts +60 -0
  230. package/accounts/evm/toEvmDelegatedAccount.ts +26 -0
  231. package/accounts/evm/toEvmServerAccount.ts +115 -67
  232. package/accounts/evm/toEvmSmartAccount.ts +114 -57
  233. package/accounts/evm/toNetworkScopedEvmSmartAccount.ts +44 -5
  234. package/accounts/evm/types.ts +8 -3
  235. package/accounts/solana/toSolanaAccount.ts +44 -24
  236. package/actions/evm/waitForEvmEip7702DelegationStatus.ts +57 -0
  237. package/actions/solana/transfer.ts +3 -3
  238. package/actions/solana/types.ts +79 -29
  239. package/actions/solana/utils.ts +13 -11
  240. package/analytics.ts +8 -294
  241. package/auth/utils/http.ts +1 -0
  242. package/client/cdp.ts +6 -8
  243. package/client/end-user/endUser.ts +513 -4
  244. package/client/end-user/endUser.types.ts +598 -0
  245. package/client/end-user/toEndUserAccount.ts +330 -26
  246. package/client/evm/evm.ts +517 -282
  247. package/client/evm/evm.types.ts +45 -2
  248. package/client/policies/policies.ts +41 -16
  249. package/client/solana/solana.ts +233 -153
  250. package/index.ts +36 -1
  251. package/openapi-client/cdpApiClient.ts +34 -0
  252. package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +1155 -172
  253. package/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts +455 -0
  254. package/openapi-client/generated/end-user-accounts/end-user-accounts.ts +12 -9
  255. package/openapi-client/generated/evm-accounts/evm-accounts.ts +66 -14
  256. package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts +16 -16
  257. package/openapi-client/generated/evm-swaps/evm-swaps.ts +3 -3
  258. package/openapi-client/generated/evm-token-balances/evm-token-balances.ts +2 -2
  259. package/openapi-client/generated/faucets/faucets.ts +9 -8
  260. package/openapi-client/generated/onchain-data/onchain-data.ts +3 -3
  261. package/openapi-client/generated/onramp/onramp.ts +28 -4
  262. package/openapi-client/generated/policy-engine/policy-engine.ts +12 -6
  263. package/openapi-client/generated/solana-accounts/solana-accounts.ts +12 -12
  264. package/openapi-client/generated/solana-token-balances/solana-token-balances.ts +2 -2
  265. package/openapi-client/generated/sql-api/sql-api.ts +92 -0
  266. package/openapi-client/generated/webhooks/webhooks.ts +6 -6
  267. package/openapi-client/generated/x402-facilitator/x402-facilitator.ts +6 -4
  268. package/openapi-client/index.ts +4 -1
  269. package/package.json +7 -8
  270. package/policies/evmSchema.ts +164 -0
  271. package/policies/solanaSchema.ts +130 -0
  272. package/policies/types.ts +14 -0
  273. package/types/contract.ts +2 -4
  274. package/utils/export.ts +6 -5
  275. package/version.ts +1 -1
  276. package/_cjs/openapi-client/generated/sql-api-alpha/sql-api-alpha.js +0 -55
  277. package/_cjs/openapi-client/generated/sql-api-alpha/sql-api-alpha.js.map +0 -1
  278. package/_esm/openapi-client/generated/sql-api-alpha/sql-api-alpha.js +0 -50
  279. package/_esm/openapi-client/generated/sql-api-alpha/sql-api-alpha.js.map +0 -1
  280. package/_types/openapi-client/generated/sql-api-alpha/sql-api-alpha.d.ts +0 -53
  281. package/_types/openapi-client/generated/sql-api-alpha/sql-api-alpha.d.ts.map +0 -1
  282. package/openapi-client/generated/sql-api-alpha/sql-api-alpha.ts +0 -72
@@ -64,18 +64,44 @@ export type AccountActions = {
64
64
  * // Create a Solana account
65
65
  * const account = await cdp.solana.createAccount();
66
66
  *
67
- * // Add your transaction instructions here
68
- * const transaction = new Transaction()
69
- *
70
- * // Make sure to set requireAllSignatures to false, since signing will be done through the API
71
- * const serializedTransaction = transaction.serialize({
72
- * requireAllSignatures: false,
73
- * });
74
- *
75
- * // Base64 encode the serialized transaction
76
- * const transaction = Buffer.from(serializedTransaction).toString("base64");
77
- *
78
- * // When you want to sign a transaction, you can do so by address and base64 encoded transaction
67
+ * // Build your transaction using @solana/kit
68
+ * import {
69
+ * address as solanaAddress,
70
+ * appendTransactionMessageInstructions,
71
+ * compileTransaction,
72
+ * createNoopSigner,
73
+ * createSolanaRpc,
74
+ * createTransactionMessage,
75
+ * getBase64EncodedWireTransaction,
76
+ * pipe,
77
+ * setTransactionMessageFeePayer,
78
+ * setTransactionMessageLifetimeUsingBlockhash,
79
+ * } from "@solana/kit";
80
+ * import { getTransferSolInstruction } from "@solana-program/system";
81
+ *
82
+ * const rpc = createSolanaRpc("https://api.devnet.solana.com");
83
+ * const { value: { blockhash, lastValidBlockHeight } } = await rpc.getLatestBlockhash().send();
84
+ *
85
+ * const txMsg = pipe(
86
+ * createTransactionMessage({ version: 0 }),
87
+ * (tx) => setTransactionMessageFeePayer(solanaAddress(account.address), tx),
88
+ * (tx) => setTransactionMessageLifetimeUsingBlockhash(
89
+ * { blockhash, lastValidBlockHeight },
90
+ * tx,
91
+ * ),
92
+ * (tx) => appendTransactionMessageInstructions([
93
+ * getTransferSolInstruction({
94
+ * source: createNoopSigner(solanaAddress(account.address)),
95
+ * destination: solanaAddress("3KzDtddx4i53FBkvCzuDmRbaMozTZoJBb1TToWhz3JfE"),
96
+ * amount: 10000n,
97
+ * }),
98
+ * ], tx),
99
+ * );
100
+ *
101
+ * // Base64 encode the compiled transaction
102
+ * const transaction = getBase64EncodedWireTransaction(compileTransaction(txMsg));
103
+ *
104
+ * // Sign the transaction via the CDP API
79
105
  * const { signedTransaction } = await account.signTransaction({
80
106
  * transaction,
81
107
  * });
@@ -97,18 +123,44 @@ export type AccountActions = {
97
123
  * // Create a Solana account
98
124
  * const account = await cdp.solana.createAccount();
99
125
  *
100
- * // Add your transaction instructions here
101
- * const transaction = new Transaction()
102
- *
103
- * // Make sure to set requireAllSignatures to false, since signing will be done through the API
104
- * const serializedTransaction = transaction.serialize({
105
- * requireAllSignatures: false,
106
- * });
107
- *
108
- * // Base64 encode the serialized transaction
109
- * const transaction = Buffer.from(serializedTransaction).toString("base64");
110
- *
111
- * // When you want to sign a transaction, you can do so by address and base64 encoded transaction
126
+ * // Build your transaction using @solana/kit
127
+ * import {
128
+ * address as solanaAddress,
129
+ * appendTransactionMessageInstructions,
130
+ * compileTransaction,
131
+ * createNoopSigner,
132
+ * createSolanaRpc,
133
+ * createTransactionMessage,
134
+ * getBase64EncodedWireTransaction,
135
+ * pipe,
136
+ * setTransactionMessageFeePayer,
137
+ * setTransactionMessageLifetimeUsingBlockhash,
138
+ * } from "@solana/kit";
139
+ * import { getTransferSolInstruction } from "@solana-program/system";
140
+ *
141
+ * const rpc = createSolanaRpc("https://api.devnet.solana.com");
142
+ * const { value: { blockhash, lastValidBlockHeight } } = await rpc.getLatestBlockhash().send();
143
+ *
144
+ * const txMsg = pipe(
145
+ * createTransactionMessage({ version: 0 }),
146
+ * (tx) => setTransactionMessageFeePayer(solanaAddress(account.address), tx),
147
+ * (tx) => setTransactionMessageLifetimeUsingBlockhash(
148
+ * { blockhash, lastValidBlockHeight },
149
+ * tx,
150
+ * ),
151
+ * (tx) => appendTransactionMessageInstructions([
152
+ * getTransferSolInstruction({
153
+ * source: createNoopSigner(solanaAddress(account.address)),
154
+ * destination: solanaAddress("3KzDtddx4i53FBkvCzuDmRbaMozTZoJBb1TToWhz3JfE"),
155
+ * amount: 10000n,
156
+ * }),
157
+ * ], tx),
158
+ * );
159
+ *
160
+ * // Base64 encode the compiled transaction
161
+ * const transaction = getBase64EncodedWireTransaction(compileTransaction(txMsg));
162
+ *
163
+ * // Send the transaction via the CDP API
112
164
  * const { transactionSignature } = await account.sendTransaction({
113
165
  * transaction,
114
166
  * });
@@ -121,20 +173,18 @@ export type AccountActions = {
121
173
  * @param {TransferOptions} options - Parameters for the transfer.
122
174
  * @param {string} options.to - The base58 encoded Solana address of the destination account.
123
175
  * @param {sol|usdc|string} options.token - The token to transfer ("sol" or "usdc"), or mint address of the SPL token to transfer.
124
- * @param {bigint} options.amount - The amount to transfer in atomic units of the token. For example, 0.01 * LAMPORTS_PER_SOL would transfer 0.01 SOL.
125
- * @param {string | Connection} options.network - The network identifier to use, or a Solana Connection object.
176
+ * @param {bigint} options.amount - The amount to transfer in atomic units of the token. For example, 1 SOL = 1_000_000_000 lamports.
177
+ * @param {string | SolanaRpcClient} options.network - The network identifier ("mainnet" or "devnet") to use, or an existing Solana RPC client.
126
178
  *
127
179
  * @returns A promise that resolves to the transaction signature, which can be used to wait for the transaction result.
128
180
  *
129
181
  * @example
130
182
  * ```ts
131
- * import { LAMPORTS_PER_SOL } from "@solana/web3.js";
132
- *
133
183
  * const account = await cdp.solana.getAccount({ name: "Account" });
134
184
  *
135
185
  * const { signature } = await account.transfer({
136
186
  * token: "sol",
137
- * amount: 5 * LAMPORTS_PER_SOL,
187
+ * amount: 5_000_000_000n, // 5 SOL in lamports
138
188
  * to: "3KzDtddx4i53FBkvCzuDmRbaMozTZoJBb1TToWhz3JfE",
139
189
  * network: "devnet",
140
190
  * });
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../actions/solana/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,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EACL,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAElE,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,aAAa,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;IAE5F;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,WAAW,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;IAExF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyDG;IACH,eAAe,EAAE,CACf,OAAO,EAAE,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,KAC7C,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyDG;IACH,eAAe,EAAE,CACf,OAAO,EAAE,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,KAC7C,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAEpC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;CAChF,CAAC"}
@@ -1,25 +1,26 @@
1
- import { Connection } from "@solana/web3.js";
1
+ import { createSolanaRpc } from "@solana/kit";
2
2
  export type Network = "mainnet" | "devnet";
3
+ export type SolanaRpcClient = ReturnType<typeof createSolanaRpc>;
3
4
  type GetOrCreateConnectionOptions = {
4
- networkOrConnection: Network | Connection;
5
+ networkOrConnection: Network | SolanaRpcClient;
5
6
  };
6
7
  /**
7
- * Get a connection for the Solana network
8
+ * Get a Solana RPC client for the given network or return the provided one
8
9
  *
9
10
  * @param options - The options for the connection
10
11
  *
11
- * @param options.networkOrConnection - The network to use or a connection
12
+ * @param options.networkOrConnection - The network to use or an existing RPC client
12
13
  *
13
- * @returns The connection
14
+ * @returns The RPC client
14
15
  */
15
- export declare function getOrCreateConnection({ networkOrConnection, }: GetOrCreateConnectionOptions): Connection;
16
+ export declare function getOrCreateConnection({ networkOrConnection, }: GetOrCreateConnectionOptions): SolanaRpcClient;
16
17
  /**
17
- * Legacy function for compatibility during migration
18
+ * Determine the network from the RPC client by checking the genesis hash
18
19
  *
19
- * @param connection - The Solana Connection instance
20
+ * @param rpc - The Solana RPC client
20
21
  * @returns The network type (mainnet or devnet)
21
22
  */
22
- export declare function getConnectedNetwork(connection: Connection): Promise<Network>;
23
+ export declare function getConnectedNetwork(rpc: SolanaRpcClient): Promise<Network>;
23
24
  /**
24
25
  * Get the USDC mint address for the given connection
25
26
  *
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../actions/solana/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAS7C,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE3C,KAAK,4BAA4B,GAAG;IAClC,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAAC;CAC3C,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,mBAAmB,GACpB,EAAE,4BAA4B,GAAG,UAAU,CAU3C;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,CAUlF;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAK3D"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../actions/solana/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAS9C,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE3C,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAEjE,KAAK,4BAA4B,GAAG;IAClC,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAAC;CAChD,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,mBAAmB,GACpB,EAAE,4BAA4B,GAAG,eAAe,CAUhD;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,CAUhF;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAK3D"}
@@ -43,17 +43,9 @@ type ActionEventData = {
43
43
  type EventData = ErrorEventData | ActionEventData;
44
44
  export declare const Analytics: {
45
45
  identifier: string;
46
- wrapClassWithErrorTracking: typeof wrapClassWithErrorTracking;
47
- wrapObjectMethodsWithErrorTracking: typeof wrapObjectMethodsWithErrorTracking;
48
- sendEvent: typeof sendEvent;
49
- trackAction: typeof trackAction;
50
- };
51
- export declare const AnalyticsDeprecated: {
52
- identifier: string;
53
- wrapClassWithErrorTracking: typeof wrapClassWithErrorTrackingDeprecated;
54
- wrapObjectMethodsWithErrorTracking: typeof wrapObjectMethodsWithErrorTrackingDeprecated;
55
46
  sendEvent: typeof sendEvent;
56
47
  trackAction: typeof trackAction;
48
+ trackError: typeof trackError;
57
49
  };
58
50
  /**
59
51
  * Sends an analytics event to the default endpoint
@@ -76,36 +68,11 @@ declare function trackAction(params: {
76
68
  properties?: Record<string, unknown>;
77
69
  }): void;
78
70
  /**
79
- * Wraps all methods of a class with error tracking.
80
- *
81
- * @param ClassToWrap - The class whose prototype methods should be wrapped.
82
- */
83
- declare function wrapClassWithErrorTracking(ClassToWrap: any): void;
84
- /**
85
- * Wraps all methods of an object with error tracking.
86
- *
87
- * @param object - The object whose methods should be wrapped.
88
- */
89
- declare function wrapObjectMethodsWithErrorTracking(object: any): void;
90
- /**
91
- * Wraps all methods of a class with error tracking.
92
- *
93
- * @deprecated This is the old implementation that has a bug with methods calling themselves via prototype.
94
- * Use Analytics.wrapClassWithErrorTracking instead.
95
- * Kept for test compatibility.
96
- *
97
- * @param ClassToWrap - The class whose prototype methods should be wrapped.
98
- */
99
- declare function wrapClassWithErrorTrackingDeprecated(ClassToWrap: any): void;
100
- /**
101
- * Wraps all methods of an object with error tracking.
102
- *
103
- * @deprecated This is the old implementation that has a bug with methods calling themselves via object property.
104
- * Use Analytics.wrapObjectMethodsWithErrorTracking instead.
105
- * Kept for test compatibility.
71
+ * Track an error that occurred in a method
106
72
  *
107
- * @param object - The object whose methods should be wrapped.
73
+ * @param error - The error to track
74
+ * @param method - The method name where the error occurred
108
75
  */
109
- declare function wrapObjectMethodsWithErrorTrackingDeprecated(object: any): void;
76
+ declare function trackError(error: unknown, method: string): void;
110
77
  export {};
111
78
  //# sourceMappingURL=analytics.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../analytics.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,KAAK,cAAc,GAAG;IACpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,KAAK,eAAe,GAAG;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC;IACpD;;OAEG;IACH,UAAU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MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAsCjC;AAwBD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAYlF"}
@@ -9,6 +9,8 @@ export interface CdpClientOptions {
9
9
  apiKeySecret?: string;
10
10
  /** The wallet secret. */
11
11
  walletSecret?: string;
12
+ /** The CDP project ID. Required for end-user delegation operations (signing, sending). */
13
+ projectId?: string;
12
14
  /** Whether to enable debugging. */
13
15
  debugging?: boolean;
14
16
  /** The host URL to connect to. */
@@ -41,6 +43,7 @@ export declare class CdpClient {
41
43
  * CDP_API_KEY_ID=your-api-key-id
42
44
  * CDP_API_KEY_SECRET=your-api-key-secret
43
45
  * CDP_WALLET_SECRET=your-wallet-secret
46
+ * CDP_PROJECT_ID=your-project-id
44
47
  * ```
45
48
  *
46
49
  * Or passed as options to the constructor:
@@ -50,6 +53,7 @@ export declare class CdpClient {
50
53
  * apiKeyId: "your-api-key-id",
51
54
  * apiKeySecret: "your-api-key-secret",
52
55
  * walletSecret: "your-wallet-secret",
56
+ * projectId: "your-project-id",
53
57
  * });
54
58
  * ```
55
59
  *
@@ -1 +1 @@
1
- {"version":3,"file":"cdp.d.ts","sourceRoot":"","sources":["../../client/cdp.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,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AAgB,CAAC;IAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;gBACS,OAAO,GAAE,gBAAqB;CAoE3C"}
@@ -1,9 +1,16 @@
1
- import { type ValidateAccessTokenOptions, type ListEndUsersOptions, type CreateEndUserOptions, type GetEndUserOptions, type ImportEndUserOptions, type AddEndUserEvmAccountOptions, type AddEndUserEvmAccountResult, type AddEndUserEvmSmartAccountOptions, type AddEndUserEvmSmartAccountResult, type AddEndUserSolanaAccountOptions, type AddEndUserSolanaAccountResult, type EndUserAccount } from "./endUser.types.js";
1
+ import { type ValidateAccessTokenOptions, type ListEndUsersOptions, type CreateEndUserOptions, type GetEndUserOptions, type ImportEndUserOptions, type AddEndUserEvmAccountOptions, type AddEndUserEvmAccountResult, type AddEndUserEvmSmartAccountOptions, type AddEndUserEvmSmartAccountResult, type AddEndUserSolanaAccountOptions, type AddEndUserSolanaAccountResult, type RevokeDelegationForEndUserOptions, type SignEvmHashOptions, type SignEvmHashResult, type SignEvmTransactionOptions, type SignEvmTransactionResult, type SignEvmMessageOptions, type SignEvmMessageResult, type SignEvmTypedDataOptions, type SignEvmTypedDataResult, type SendEvmTransactionOptions, type SendEvmTransactionResult, type SendEvmAssetOptions, type SendEvmAssetResult, type SendUserOperationOptions, type SendUserOperationResult, type CreateEvmEip7702DelegationOptions, type CreateEvmEip7702DelegationForEndUserResult, type SignSolanaHashOptions, type SignSolanaHashResult, type SignSolanaMessageOptions, type SignSolanaMessageResult, type SignSolanaTransactionOptions, type SignSolanaTransactionResult, type SendSolanaTransactionOptions, type SendSolanaTransactionResult, type SendSolanaAssetOptions, type SendSolanaAssetResult, type EndUserAccount } from "./endUser.types.js";
2
2
  import { type ListEndUsers200 } from "../../openapi-client/index.js";
3
3
  /**
4
4
  * The CDP end user client.
5
5
  */
6
6
  export declare class CDPEndUserClient {
7
+ private projectId?;
8
+ /**
9
+ * Creates a new CDPEndUserClient.
10
+ *
11
+ * @param projectId - The CDP project ID. Required for delegation operations (signing, sending).
12
+ */
13
+ constructor(projectId?: string);
7
14
  /**
8
15
  * Creates an end user. An end user is an entity that can own CDP EVM accounts,
9
16
  * EVM smart accounts, and/or Solana accounts.
@@ -141,6 +148,264 @@ export declare class CDPEndUserClient {
141
148
  * ```
142
149
  */
143
150
  addEndUserSolanaAccount(options: AddEndUserSolanaAccountOptions): Promise<AddEndUserSolanaAccountResult>;
151
+ /**
152
+ * Revokes all active delegations for the specified end user.
153
+ * This operation can be performed by the end user themselves or by a developer using their API key.
154
+ *
155
+ * @param options - The options for revoking the delegation.
156
+ *
157
+ * @returns A promise that resolves when the delegation has been revoked.
158
+ *
159
+ * @example **Revoke all delegations for an end user**
160
+ * ```ts
161
+ * await cdp.endUser.revokeDelegationForEndUser({
162
+ * userId: "user-123"
163
+ * });
164
+ * ```
165
+ */
166
+ revokeDelegationForEndUser(options: RevokeDelegationForEndUserOptions): Promise<void>;
167
+ /**
168
+ * Signs an EVM hash on behalf of an end user using a delegation.
169
+ * The end user must have previously created a delegation granting signing permissions.
170
+ *
171
+ * @param options - The options for signing an EVM hash.
172
+ *
173
+ * @returns A promise that resolves to the signature.
174
+ *
175
+ * @example
176
+ * ```ts
177
+ * const result = await cdp.endUser.signEvmHash({
178
+ * userId: "user-123",
179
+ * hash: "0xabcdef...",
180
+ * address: "0x1234..."
181
+ * });
182
+ * console.log(result.signature);
183
+ * ```
184
+ */
185
+ signEvmHash(options: SignEvmHashOptions): Promise<SignEvmHashResult>;
186
+ /**
187
+ * Signs an EVM transaction on behalf of an end user using a delegation.
188
+ *
189
+ * @param options - The options for signing an EVM transaction.
190
+ *
191
+ * @returns A promise that resolves to the signed transaction.
192
+ *
193
+ * @example
194
+ * ```ts
195
+ * const result = await cdp.endUser.signEvmTransaction({
196
+ * userId: "user-123",
197
+ * address: "0x1234...",
198
+ * transaction: "0x02..."
199
+ * });
200
+ * console.log(result.signedTransaction);
201
+ * ```
202
+ */
203
+ signEvmTransaction(options: SignEvmTransactionOptions): Promise<SignEvmTransactionResult>;
204
+ /**
205
+ * Signs an EVM message (EIP-191) on behalf of an end user using a delegation.
206
+ *
207
+ * @param options - The options for signing an EVM message.
208
+ *
209
+ * @returns A promise that resolves to the signature.
210
+ *
211
+ * @example
212
+ * ```ts
213
+ * const result = await cdp.endUser.signEvmMessage({
214
+ * userId: "user-123",
215
+ * address: "0x1234...",
216
+ * message: "Hello, World!"
217
+ * });
218
+ * console.log(result.signature);
219
+ * ```
220
+ */
221
+ signEvmMessage(options: SignEvmMessageOptions): Promise<SignEvmMessageResult>;
222
+ /**
223
+ * Signs EVM EIP-712 typed data on behalf of an end user using a delegation.
224
+ *
225
+ * @param options - The options for signing EVM typed data.
226
+ *
227
+ * @returns A promise that resolves to the signature.
228
+ *
229
+ * @example
230
+ * ```ts
231
+ * const result = await cdp.endUser.signEvmTypedData({
232
+ * userId: "user-123",
233
+ * address: "0x1234...",
234
+ * typedData: { domain: {}, types: {}, primaryType: "...", message: {} }
235
+ * });
236
+ * console.log(result.signature);
237
+ * ```
238
+ */
239
+ signEvmTypedData(options: SignEvmTypedDataOptions): Promise<SignEvmTypedDataResult>;
240
+ /**
241
+ * Sends an EVM transaction on behalf of an end user using a delegation.
242
+ *
243
+ * @param options - The options for sending an EVM transaction.
244
+ *
245
+ * @returns A promise that resolves to the transaction hash.
246
+ *
247
+ * @example
248
+ * ```ts
249
+ * const result = await cdp.endUser.sendEvmTransaction({
250
+ * userId: "user-123",
251
+ * address: "0x1234...",
252
+ * transaction: "0x02...",
253
+ * network: "base-sepolia"
254
+ * });
255
+ * console.log(result.transactionHash);
256
+ * ```
257
+ */
258
+ sendEvmTransaction(options: SendEvmTransactionOptions): Promise<SendEvmTransactionResult>;
259
+ /**
260
+ * Sends an EVM asset (e.g. USDC) on behalf of an end user using a delegation.
261
+ *
262
+ * @param options - The options for sending an EVM asset.
263
+ *
264
+ * @returns A promise that resolves to the transaction result.
265
+ *
266
+ * @example
267
+ * ```ts
268
+ * const result = await cdp.endUser.sendEvmAsset({
269
+ * userId: "user-123",
270
+ * address: "0x1234...",
271
+ * to: "0xabcd...",
272
+ * amount: "1000000",
273
+ * network: "base-sepolia"
274
+ * });
275
+ * console.log(result.transactionHash);
276
+ * ```
277
+ */
278
+ sendEvmAsset(options: SendEvmAssetOptions): Promise<SendEvmAssetResult>;
279
+ /**
280
+ * Sends a user operation on behalf of an end user using a delegation.
281
+ *
282
+ * @param options - The options for sending a user operation.
283
+ *
284
+ * @returns A promise that resolves to the user operation result.
285
+ *
286
+ * @example
287
+ * ```ts
288
+ * const result = await cdp.endUser.sendUserOperation({
289
+ * userId: "user-123",
290
+ * address: "0x1234...",
291
+ * network: "base-sepolia",
292
+ * calls: [{ to: "0xabcd...", value: "0", data: "0x" }],
293
+ * useCdpPaymaster: true
294
+ * });
295
+ * ```
296
+ */
297
+ sendUserOperation(options: SendUserOperationOptions): Promise<SendUserOperationResult>;
298
+ /**
299
+ * Creates an EVM EIP-7702 delegation on behalf of an end user.
300
+ *
301
+ * @param options - The options for creating an EIP-7702 delegation.
302
+ *
303
+ * @returns A promise that resolves to the delegation operation ID.
304
+ *
305
+ * @example
306
+ * ```ts
307
+ * const result = await cdp.endUser.createEvmEip7702Delegation({
308
+ * userId: "user-123",
309
+ * address: "0x1234...",
310
+ * network: "base-sepolia"
311
+ * });
312
+ * console.log(result.delegationOperationId);
313
+ * ```
314
+ */
315
+ createEvmEip7702Delegation(options: CreateEvmEip7702DelegationOptions): Promise<CreateEvmEip7702DelegationForEndUserResult>;
316
+ /**
317
+ * Signs a Solana hash on behalf of an end user using a delegation.
318
+ *
319
+ * @param options - The options for signing a Solana hash.
320
+ *
321
+ * @returns A promise that resolves to the signature.
322
+ *
323
+ * @example
324
+ * ```ts
325
+ * const result = await cdp.endUser.signSolanaHash({
326
+ * userId: "user-123",
327
+ * hash: "base64hash...",
328
+ * address: "So1ana..."
329
+ * });
330
+ * console.log(result.signature);
331
+ * ```
332
+ */
333
+ signSolanaHash(options: SignSolanaHashOptions): Promise<SignSolanaHashResult>;
334
+ /**
335
+ * Signs a Solana message on behalf of an end user using a delegation.
336
+ *
337
+ * @param options - The options for signing a Solana message.
338
+ *
339
+ * @returns A promise that resolves to the signature.
340
+ *
341
+ * @example
342
+ * ```ts
343
+ * const result = await cdp.endUser.signSolanaMessage({
344
+ * userId: "user-123",
345
+ * address: "So1ana...",
346
+ * message: "base64message..."
347
+ * });
348
+ * console.log(result.signature);
349
+ * ```
350
+ */
351
+ signSolanaMessage(options: SignSolanaMessageOptions): Promise<SignSolanaMessageResult>;
352
+ /**
353
+ * Signs a Solana transaction on behalf of an end user using a delegation.
354
+ *
355
+ * @param options - The options for signing a Solana transaction.
356
+ *
357
+ * @returns A promise that resolves to the signed transaction.
358
+ *
359
+ * @example
360
+ * ```ts
361
+ * const result = await cdp.endUser.signSolanaTransaction({
362
+ * userId: "user-123",
363
+ * address: "So1ana...",
364
+ * transaction: "base64tx..."
365
+ * });
366
+ * console.log(result.signedTransaction);
367
+ * ```
368
+ */
369
+ signSolanaTransaction(options: SignSolanaTransactionOptions): Promise<SignSolanaTransactionResult>;
370
+ /**
371
+ * Sends a Solana transaction on behalf of an end user using a delegation.
372
+ *
373
+ * @param options - The options for sending a Solana transaction.
374
+ *
375
+ * @returns A promise that resolves to the transaction signature.
376
+ *
377
+ * @example
378
+ * ```ts
379
+ * const result = await cdp.endUser.sendSolanaTransaction({
380
+ * userId: "user-123",
381
+ * address: "So1ana...",
382
+ * transaction: "base64tx...",
383
+ * network: "solana-devnet"
384
+ * });
385
+ * console.log(result.transactionSignature);
386
+ * ```
387
+ */
388
+ sendSolanaTransaction(options: SendSolanaTransactionOptions): Promise<SendSolanaTransactionResult>;
389
+ /**
390
+ * Sends a Solana asset (e.g. USDC) on behalf of an end user using a delegation.
391
+ *
392
+ * @param options - The options for sending a Solana asset.
393
+ *
394
+ * @returns A promise that resolves to the transaction signature.
395
+ *
396
+ * @example
397
+ * ```ts
398
+ * const result = await cdp.endUser.sendSolanaAsset({
399
+ * userId: "user-123",
400
+ * address: "So1ana...",
401
+ * to: "Recipi...",
402
+ * amount: "1000000",
403
+ * network: "solana-devnet"
404
+ * });
405
+ * console.log(result.transactionSignature);
406
+ * ```
407
+ */
408
+ sendSolanaAsset(options: SendSolanaAssetOptions): Promise<SendSolanaAssetResult>;
144
409
  /**
145
410
  * Validates an end user's access token. Throws an error if the access token is invalid.
146
411
  *
@@ -179,5 +444,11 @@ export declare class CDPEndUserClient {
179
444
  * ```
180
445
  */
181
446
  importEndUser(options: ImportEndUserOptions): Promise<EndUserAccount>;
447
+ /**
448
+ * Returns the configured project ID or throws if not configured.
449
+ *
450
+ * @returns The project ID.
451
+ */
452
+ private requireProjectId;
182
453
  }
183
454
  //# sourceMappingURL=endUser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"endUser.d.ts","sourceRoot":"","sources":["../../../client/end-user/endUser.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,cAAc,EACpB,MAAM,oBAAoB,CAAC;AAK5B,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEvF;;GAEG;AACH,qBAAa,gBAAgB;IAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACG,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,cAAc,CAAC;IAe3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACG,YAAY,CAAC,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,eAAe,CAAC;IAa/E;;;;;;;;;;;;;;OAcG;IACG,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAA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