@coinbase/cdp-sdk 1.49.2 → 1.51.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 (546) hide show
  1. package/README.md +39 -29
  2. package/_cjs/accounts/evm/chainToNetworkMapper.js.map +1 -1
  3. package/_cjs/accounts/evm/eip6492.js.map +1 -1
  4. package/_cjs/accounts/evm/getBaseNodeRpcUrl.js.map +1 -1
  5. package/_cjs/accounts/evm/networkCapabilities.js.map +1 -1
  6. package/_cjs/accounts/evm/networkToChainResolver.js.map +1 -1
  7. package/_cjs/accounts/evm/resolveViemClients.js.map +1 -1
  8. package/_cjs/accounts/evm/toEvmDelegatedAccount.js.map +1 -1
  9. package/_cjs/accounts/evm/toEvmServerAccount.js.map +1 -1
  10. package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -1
  11. package/_cjs/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
  12. package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
  13. package/_cjs/accounts/evm/types.js.map +1 -1
  14. package/_cjs/accounts/solana/toSolanaAccount.js.map +1 -1
  15. package/_cjs/accounts/solana/types.js.map +1 -1
  16. package/_cjs/actions/evm/getUserOperation.js.map +1 -1
  17. package/_cjs/actions/evm/listSpendPermissions.js.map +1 -1
  18. package/_cjs/actions/evm/listTokenBalances.js.map +1 -1
  19. package/_cjs/actions/evm/requestFaucet.js.map +1 -1
  20. package/_cjs/actions/evm/sendTransaction.js.map +1 -1
  21. package/_cjs/actions/evm/sendUserOperation.js.map +1 -1
  22. package/_cjs/actions/evm/signAndWrapTypedDataForSmartAccount.js.map +1 -1
  23. package/_cjs/actions/evm/spend-permissions/account.use.js.map +1 -1
  24. package/_cjs/actions/evm/spend-permissions/resolveSpendPermission.js.map +1 -1
  25. package/_cjs/actions/evm/spend-permissions/smartAccount.use.js.map +1 -1
  26. package/_cjs/actions/evm/spend-permissions/types.js.map +1 -1
  27. package/_cjs/actions/evm/swap/createSwapQuote.js.map +1 -1
  28. package/_cjs/actions/evm/swap/getSwapPrice.js.map +1 -1
  29. package/_cjs/actions/evm/swap/sendSwapOperation.js.map +1 -1
  30. package/_cjs/actions/evm/swap/sendSwapTransaction.js.map +1 -1
  31. package/_cjs/actions/evm/swap/types.js.map +1 -1
  32. package/_cjs/actions/evm/transfer/accountTransferStrategy.js.map +1 -1
  33. package/_cjs/actions/evm/transfer/smartAccountTransferStrategy.js.map +1 -1
  34. package/_cjs/actions/evm/transfer/transfer.js.map +1 -1
  35. package/_cjs/actions/evm/transfer/transferWithViem.js.map +1 -1
  36. package/_cjs/actions/evm/transfer/types.js.map +1 -1
  37. package/_cjs/actions/evm/transfer/utils.js.map +1 -1
  38. package/_cjs/actions/evm/types.js.map +1 -1
  39. package/_cjs/actions/evm/waitForEvmEip7702DelegationStatus.js.map +1 -1
  40. package/_cjs/actions/evm/waitForUserOperation.js.map +1 -1
  41. package/_cjs/actions/solana/constants.js.map +1 -1
  42. package/_cjs/actions/solana/requestFaucet.js.map +1 -1
  43. package/_cjs/actions/solana/rpc.js.map +1 -1
  44. package/_cjs/actions/solana/sendTransaction.js.map +1 -1
  45. package/_cjs/actions/solana/signMessage.js.map +1 -1
  46. package/_cjs/actions/solana/signTransaction.js.map +1 -1
  47. package/_cjs/actions/solana/transfer.js.map +1 -1
  48. package/_cjs/actions/solana/types.js.map +1 -1
  49. package/_cjs/actions/solana/utils.js.map +1 -1
  50. package/_cjs/actions/webhooks/createWebhookSubscription.js.map +1 -1
  51. package/_cjs/actions/webhooks/index.js.map +1 -1
  52. package/_cjs/analytics.js.map +1 -1
  53. package/_cjs/auth/errors.js.map +1 -1
  54. package/_cjs/auth/hooks/axios/index.js.map +1 -1
  55. package/_cjs/auth/hooks/axios/withAuth.js.map +1 -1
  56. package/_cjs/auth/index.js.map +1 -1
  57. package/_cjs/auth/utils/hash.js.map +1 -1
  58. package/_cjs/auth/utils/http.js.map +1 -1
  59. package/_cjs/auth/utils/index.js.map +1 -1
  60. package/_cjs/auth/utils/jwt.js.map +1 -1
  61. package/_cjs/auth/utils/ws.js.map +1 -1
  62. package/_cjs/client/cdp.js.map +1 -1
  63. package/_cjs/client/end-user/endUser.js +21 -42
  64. package/_cjs/client/end-user/endUser.js.map +1 -1
  65. package/_cjs/client/end-user/endUser.types.js.map +1 -1
  66. package/_cjs/client/end-user/toEndUserAccount.js +18 -43
  67. package/_cjs/client/end-user/toEndUserAccount.js.map +1 -1
  68. package/_cjs/client/evm/evm.js.map +1 -1
  69. package/_cjs/client/evm/evm.types.js.map +1 -1
  70. package/_cjs/client/policies/index.js.map +1 -1
  71. package/_cjs/client/policies/policies.js.map +1 -1
  72. package/_cjs/client/policies/policies.types.js.map +1 -1
  73. package/_cjs/client/solana/index.js.map +1 -1
  74. package/_cjs/client/solana/solana.js.map +1 -1
  75. package/_cjs/client/solana/solana.types.js.map +1 -1
  76. package/_cjs/client/webhooks/webhooks.js.map +1 -1
  77. package/_cjs/constants.js.map +1 -1
  78. package/_cjs/errors.js.map +1 -1
  79. package/_cjs/index.js.map +1 -1
  80. package/_cjs/openapi-client/cdpApiClient.js.map +1 -1
  81. package/_cjs/openapi-client/errors.js.map +1 -1
  82. package/_cjs/openapi-client/generated/accounts/accounts.js +50 -0
  83. package/_cjs/openapi-client/generated/accounts/accounts.js.map +1 -0
  84. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +526 -46
  85. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  86. package/_cjs/openapi-client/generated/deposit-destinations/deposit-destinations.js +34 -0
  87. package/_cjs/openapi-client/generated/deposit-destinations/deposit-destinations.js.map +1 -0
  88. package/_cjs/openapi-client/generated/end-user-account-management/end-user-account-management.js +132 -0
  89. package/_cjs/openapi-client/generated/end-user-account-management/end-user-account-management.js.map +1 -0
  90. package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.js +228 -74
  91. package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
  92. package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js +12 -12
  93. package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
  94. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +10 -10
  95. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
  96. package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.js +2 -2
  97. package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
  98. package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
  99. package/_cjs/openapi-client/generated/faucets/faucets.js.map +1 -1
  100. package/_cjs/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
  101. package/_cjs/openapi-client/generated/onramp/onramp.js.map +1 -1
  102. package/_cjs/openapi-client/generated/payment-methods/payment-methods.js +28 -0
  103. package/_cjs/openapi-client/generated/payment-methods/payment-methods.js.map +1 -0
  104. package/_cjs/openapi-client/generated/policy-engine/policy-engine.js +4 -4
  105. package/_cjs/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
  106. package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js +11 -11
  107. package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
  108. package/_cjs/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
  109. package/_cjs/openapi-client/generated/sql-api/sql-api.js +1 -1
  110. package/_cjs/openapi-client/generated/sql-api/sql-api.js.map +1 -1
  111. package/_cjs/openapi-client/generated/transfers/transfers.js +87 -0
  112. package/_cjs/openapi-client/generated/transfers/transfers.js.map +1 -0
  113. package/_cjs/openapi-client/generated/webhooks/webhooks.js +1 -1
  114. package/_cjs/openapi-client/generated/webhooks/webhooks.js.map +1 -1
  115. package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.js +3 -3
  116. package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
  117. package/_cjs/openapi-client/index.js +7 -3
  118. package/_cjs/openapi-client/index.js.map +1 -1
  119. package/_cjs/policies/evmSchema.js +54 -1
  120. package/_cjs/policies/evmSchema.js.map +1 -1
  121. package/_cjs/policies/solanaSchema.js.map +1 -1
  122. package/_cjs/policies/types.js +2 -0
  123. package/_cjs/policies/types.js.map +1 -1
  124. package/_cjs/spend-permissions/constants.js.map +1 -1
  125. package/_cjs/spend-permissions/types.js.map +1 -1
  126. package/_cjs/spend-permissions/utils.js.map +1 -1
  127. package/_cjs/types/calls.js.map +1 -1
  128. package/_cjs/types/contract.js.map +1 -1
  129. package/_cjs/types/misc.js.map +1 -1
  130. package/_cjs/types/multicall.js.map +1 -1
  131. package/_cjs/types/utils.js.map +1 -1
  132. package/_cjs/utils/bigint.js.map +1 -1
  133. package/_cjs/utils/export.js.map +1 -1
  134. package/_cjs/utils/hash.js.map +1 -1
  135. package/_cjs/utils/serializeTransaction.js.map +1 -1
  136. package/_cjs/utils/sortKeys.js.map +1 -1
  137. package/_cjs/utils/uuidV4.js.map +1 -1
  138. package/_cjs/utils/wait.js.map +1 -1
  139. package/_cjs/version.js +1 -1
  140. package/_cjs/version.js.map +1 -1
  141. package/_esm/accounts/evm/chainToNetworkMapper.js.map +1 -1
  142. package/_esm/accounts/evm/eip6492.js.map +1 -1
  143. package/_esm/accounts/evm/getBaseNodeRpcUrl.js.map +1 -1
  144. package/_esm/accounts/evm/networkCapabilities.js.map +1 -1
  145. package/_esm/accounts/evm/networkToChainResolver.js.map +1 -1
  146. package/_esm/accounts/evm/resolveViemClients.js.map +1 -1
  147. package/_esm/accounts/evm/toEvmDelegatedAccount.js.map +1 -1
  148. package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -1
  149. package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -1
  150. package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
  151. package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
  152. package/_esm/accounts/evm/types.js.map +1 -1
  153. package/_esm/accounts/solana/toSolanaAccount.js.map +1 -1
  154. package/_esm/accounts/solana/types.js.map +1 -1
  155. package/_esm/actions/evm/getUserOperation.js.map +1 -1
  156. package/_esm/actions/evm/listSpendPermissions.js.map +1 -1
  157. package/_esm/actions/evm/listTokenBalances.js.map +1 -1
  158. package/_esm/actions/evm/requestFaucet.js.map +1 -1
  159. package/_esm/actions/evm/sendTransaction.js.map +1 -1
  160. package/_esm/actions/evm/sendUserOperation.js.map +1 -1
  161. package/_esm/actions/evm/signAndWrapTypedDataForSmartAccount.js.map +1 -1
  162. package/_esm/actions/evm/spend-permissions/account.use.js.map +1 -1
  163. package/_esm/actions/evm/spend-permissions/resolveSpendPermission.js.map +1 -1
  164. package/_esm/actions/evm/spend-permissions/smartAccount.use.js.map +1 -1
  165. package/_esm/actions/evm/spend-permissions/types.js.map +1 -1
  166. package/_esm/actions/evm/swap/createSwapQuote.js.map +1 -1
  167. package/_esm/actions/evm/swap/getSwapPrice.js.map +1 -1
  168. package/_esm/actions/evm/swap/sendSwapOperation.js.map +1 -1
  169. package/_esm/actions/evm/swap/sendSwapTransaction.js.map +1 -1
  170. package/_esm/actions/evm/swap/types.js.map +1 -1
  171. package/_esm/actions/evm/transfer/accountTransferStrategy.js.map +1 -1
  172. package/_esm/actions/evm/transfer/smartAccountTransferStrategy.js.map +1 -1
  173. package/_esm/actions/evm/transfer/transfer.js.map +1 -1
  174. package/_esm/actions/evm/transfer/transferWithViem.js.map +1 -1
  175. package/_esm/actions/evm/transfer/types.js.map +1 -1
  176. package/_esm/actions/evm/transfer/utils.js.map +1 -1
  177. package/_esm/actions/evm/types.js.map +1 -1
  178. package/_esm/actions/evm/waitForEvmEip7702DelegationStatus.js.map +1 -1
  179. package/_esm/actions/evm/waitForUserOperation.js.map +1 -1
  180. package/_esm/actions/solana/constants.js.map +1 -1
  181. package/_esm/actions/solana/requestFaucet.js.map +1 -1
  182. package/_esm/actions/solana/rpc.js.map +1 -1
  183. package/_esm/actions/solana/sendTransaction.js.map +1 -1
  184. package/_esm/actions/solana/signMessage.js.map +1 -1
  185. package/_esm/actions/solana/signTransaction.js.map +1 -1
  186. package/_esm/actions/solana/transfer.js.map +1 -1
  187. package/_esm/actions/solana/types.js.map +1 -1
  188. package/_esm/actions/solana/utils.js.map +1 -1
  189. package/_esm/actions/webhooks/createWebhookSubscription.js.map +1 -1
  190. package/_esm/actions/webhooks/index.js.map +1 -1
  191. package/_esm/analytics.js.map +1 -1
  192. package/_esm/auth/errors.js.map +1 -1
  193. package/_esm/auth/hooks/axios/index.js.map +1 -1
  194. package/_esm/auth/hooks/axios/withAuth.js.map +1 -1
  195. package/_esm/auth/index.js.map +1 -1
  196. package/_esm/auth/utils/hash.js.map +1 -1
  197. package/_esm/auth/utils/http.js.map +1 -1
  198. package/_esm/auth/utils/index.js.map +1 -1
  199. package/_esm/auth/utils/jwt.js.map +1 -1
  200. package/_esm/auth/utils/ws.js.map +1 -1
  201. package/_esm/client/cdp.js.map +1 -1
  202. package/_esm/client/end-user/endUser.js +21 -42
  203. package/_esm/client/end-user/endUser.js.map +1 -1
  204. package/_esm/client/end-user/endUser.types.js.map +1 -1
  205. package/_esm/client/end-user/toEndUserAccount.js +18 -43
  206. package/_esm/client/end-user/toEndUserAccount.js.map +1 -1
  207. package/_esm/client/evm/evm.js.map +1 -1
  208. package/_esm/client/evm/evm.types.js.map +1 -1
  209. package/_esm/client/policies/index.js.map +1 -1
  210. package/_esm/client/policies/policies.js.map +1 -1
  211. package/_esm/client/policies/policies.types.js.map +1 -1
  212. package/_esm/client/solana/index.js.map +1 -1
  213. package/_esm/client/solana/solana.js.map +1 -1
  214. package/_esm/client/solana/solana.types.js.map +1 -1
  215. package/_esm/client/webhooks/webhooks.js.map +1 -1
  216. package/_esm/constants.js.map +1 -1
  217. package/_esm/errors.js.map +1 -1
  218. package/_esm/index.js.map +1 -1
  219. package/_esm/openapi-client/cdpApiClient.js.map +1 -1
  220. package/_esm/openapi-client/errors.js.map +1 -1
  221. package/_esm/openapi-client/generated/accounts/accounts.js +42 -0
  222. package/_esm/openapi-client/generated/accounts/accounts.js.map +1 -0
  223. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +522 -43
  224. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  225. package/_esm/openapi-client/generated/deposit-destinations/deposit-destinations.js +28 -0
  226. package/_esm/openapi-client/generated/deposit-destinations/deposit-destinations.js.map +1 -0
  227. package/_esm/openapi-client/generated/end-user-account-management/end-user-account-management.js +120 -0
  228. package/_esm/openapi-client/generated/end-user-account-management/end-user-account-management.js.map +1 -0
  229. package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.js +211 -64
  230. package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
  231. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js +12 -12
  232. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
  233. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +10 -10
  234. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
  235. package/_esm/openapi-client/generated/evm-swaps/evm-swaps.js +2 -2
  236. package/_esm/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
  237. package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
  238. package/_esm/openapi-client/generated/faucets/faucets.js.map +1 -1
  239. package/_esm/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
  240. package/_esm/openapi-client/generated/onramp/onramp.js.map +1 -1
  241. package/_esm/openapi-client/generated/payment-methods/payment-methods.js +23 -0
  242. package/_esm/openapi-client/generated/payment-methods/payment-methods.js.map +1 -0
  243. package/_esm/openapi-client/generated/policy-engine/policy-engine.js +4 -4
  244. package/_esm/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
  245. package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js +11 -11
  246. package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
  247. package/_esm/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
  248. package/_esm/openapi-client/generated/sql-api/sql-api.js +1 -1
  249. package/_esm/openapi-client/generated/sql-api/sql-api.js.map +1 -1
  250. package/_esm/openapi-client/generated/transfers/transfers.js +79 -0
  251. package/_esm/openapi-client/generated/transfers/transfers.js.map +1 -0
  252. package/_esm/openapi-client/generated/webhooks/webhooks.js +1 -1
  253. package/_esm/openapi-client/generated/webhooks/webhooks.js.map +1 -1
  254. package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.js +3 -3
  255. package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
  256. package/_esm/openapi-client/index.js +7 -3
  257. package/_esm/openapi-client/index.js.map +1 -1
  258. package/_esm/policies/evmSchema.js +52 -0
  259. package/_esm/policies/evmSchema.js.map +1 -1
  260. package/_esm/policies/solanaSchema.js.map +1 -1
  261. package/_esm/policies/types.js +3 -1
  262. package/_esm/policies/types.js.map +1 -1
  263. package/_esm/spend-permissions/constants.js.map +1 -1
  264. package/_esm/spend-permissions/types.js.map +1 -1
  265. package/_esm/spend-permissions/utils.js.map +1 -1
  266. package/_esm/types/calls.js.map +1 -1
  267. package/_esm/types/contract.js.map +1 -1
  268. package/_esm/types/misc.js.map +1 -1
  269. package/_esm/types/multicall.js.map +1 -1
  270. package/_esm/types/utils.js.map +1 -1
  271. package/_esm/utils/bigint.js.map +1 -1
  272. package/_esm/utils/export.js.map +1 -1
  273. package/_esm/utils/hash.js.map +1 -1
  274. package/_esm/utils/serializeTransaction.js.map +1 -1
  275. package/_esm/utils/sortKeys.js.map +1 -1
  276. package/_esm/utils/uuidV4.js.map +1 -1
  277. package/_esm/utils/wait.js.map +1 -1
  278. package/_esm/version.js +1 -1
  279. package/_esm/version.js.map +1 -1
  280. package/_types/accounts/evm/chainToNetworkMapper.d.ts.map +1 -1
  281. package/_types/accounts/evm/eip6492.d.ts.map +1 -1
  282. package/_types/accounts/evm/getBaseNodeRpcUrl.d.ts.map +1 -1
  283. package/_types/accounts/evm/networkCapabilities.d.ts.map +1 -1
  284. package/_types/accounts/evm/networkToChainResolver.d.ts.map +1 -1
  285. package/_types/accounts/evm/resolveViemClients.d.ts.map +1 -1
  286. package/_types/accounts/evm/toEvmDelegatedAccount.d.ts.map +1 -1
  287. package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -1
  288. package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -1
  289. package/_types/accounts/evm/toNetworkScopedEvmServerAccount.d.ts.map +1 -1
  290. package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts.map +1 -1
  291. package/_types/accounts/evm/types.d.ts.map +1 -1
  292. package/_types/accounts/solana/toSolanaAccount.d.ts.map +1 -1
  293. package/_types/accounts/solana/types.d.ts.map +1 -1
  294. package/_types/actions/evm/getUserOperation.d.ts.map +1 -1
  295. package/_types/actions/evm/listSpendPermissions.d.ts.map +1 -1
  296. package/_types/actions/evm/listTokenBalances.d.ts.map +1 -1
  297. package/_types/actions/evm/requestFaucet.d.ts.map +1 -1
  298. package/_types/actions/evm/sendTransaction.d.ts.map +1 -1
  299. package/_types/actions/evm/sendUserOperation.d.ts.map +1 -1
  300. package/_types/actions/evm/signAndWrapTypedDataForSmartAccount.d.ts.map +1 -1
  301. package/_types/actions/evm/spend-permissions/account.use.d.ts.map +1 -1
  302. package/_types/actions/evm/spend-permissions/resolveSpendPermission.d.ts.map +1 -1
  303. package/_types/actions/evm/spend-permissions/smartAccount.use.d.ts.map +1 -1
  304. package/_types/actions/evm/spend-permissions/types.d.ts.map +1 -1
  305. package/_types/actions/evm/swap/createSwapQuote.d.ts.map +1 -1
  306. package/_types/actions/evm/swap/getSwapPrice.d.ts.map +1 -1
  307. package/_types/actions/evm/swap/sendSwapOperation.d.ts.map +1 -1
  308. package/_types/actions/evm/swap/sendSwapTransaction.d.ts.map +1 -1
  309. package/_types/actions/evm/swap/types.d.ts.map +1 -1
  310. package/_types/actions/evm/transfer/accountTransferStrategy.d.ts.map +1 -1
  311. package/_types/actions/evm/transfer/smartAccountTransferStrategy.d.ts.map +1 -1
  312. package/_types/actions/evm/transfer/transfer.d.ts.map +1 -1
  313. package/_types/actions/evm/transfer/transferWithViem.d.ts.map +1 -1
  314. package/_types/actions/evm/transfer/types.d.ts.map +1 -1
  315. package/_types/actions/evm/transfer/utils.d.ts.map +1 -1
  316. package/_types/actions/evm/types.d.ts.map +1 -1
  317. package/_types/actions/evm/waitForEvmEip7702DelegationStatus.d.ts.map +1 -1
  318. package/_types/actions/evm/waitForUserOperation.d.ts.map +1 -1
  319. package/_types/actions/solana/constants.d.ts.map +1 -1
  320. package/_types/actions/solana/requestFaucet.d.ts.map +1 -1
  321. package/_types/actions/solana/rpc.d.ts.map +1 -1
  322. package/_types/actions/solana/sendTransaction.d.ts.map +1 -1
  323. package/_types/actions/solana/signMessage.d.ts.map +1 -1
  324. package/_types/actions/solana/signTransaction.d.ts.map +1 -1
  325. package/_types/actions/solana/transfer.d.ts.map +1 -1
  326. package/_types/actions/solana/types.d.ts.map +1 -1
  327. package/_types/actions/solana/utils.d.ts.map +1 -1
  328. package/_types/actions/webhooks/createWebhookSubscription.d.ts.map +1 -1
  329. package/_types/actions/webhooks/index.d.ts.map +1 -1
  330. package/_types/analytics.d.ts.map +1 -1
  331. package/_types/auth/errors.d.ts.map +1 -1
  332. package/_types/auth/hooks/axios/index.d.ts.map +1 -1
  333. package/_types/auth/hooks/axios/withAuth.d.ts.map +1 -1
  334. package/_types/auth/index.d.ts.map +1 -1
  335. package/_types/auth/utils/hash.d.ts.map +1 -1
  336. package/_types/auth/utils/http.d.ts.map +1 -1
  337. package/_types/auth/utils/index.d.ts.map +1 -1
  338. package/_types/auth/utils/jwt.d.ts.map +1 -1
  339. package/_types/auth/utils/ws.d.ts.map +1 -1
  340. package/_types/client/cdp.d.ts.map +1 -1
  341. package/_types/client/end-user/endUser.d.ts.map +1 -1
  342. package/_types/client/end-user/endUser.types.d.ts +63 -4
  343. package/_types/client/end-user/endUser.types.d.ts.map +1 -1
  344. package/_types/client/end-user/toEndUserAccount.d.ts.map +1 -1
  345. package/_types/client/evm/evm.d.ts.map +1 -1
  346. package/_types/client/evm/evm.types.d.ts.map +1 -1
  347. package/_types/client/policies/index.d.ts.map +1 -1
  348. package/_types/client/policies/policies.d.ts.map +1 -1
  349. package/_types/client/policies/policies.types.d.ts.map +1 -1
  350. package/_types/client/solana/index.d.ts.map +1 -1
  351. package/_types/client/solana/solana.d.ts.map +1 -1
  352. package/_types/client/solana/solana.types.d.ts.map +1 -1
  353. package/_types/client/webhooks/webhooks.d.ts.map +1 -1
  354. package/_types/constants.d.ts.map +1 -1
  355. package/_types/errors.d.ts.map +1 -1
  356. package/_types/index.d.ts.map +1 -1
  357. package/_types/openapi-client/cdpApiClient.d.ts.map +1 -1
  358. package/_types/openapi-client/errors.d.ts.map +1 -1
  359. package/_types/openapi-client/generated/accounts/accounts.d.ts +42 -0
  360. package/_types/openapi-client/generated/accounts/accounts.d.ts.map +1 -0
  361. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +1933 -269
  362. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
  363. package/_types/openapi-client/generated/deposit-destinations/deposit-destinations.d.ts +30 -0
  364. package/_types/openapi-client/generated/deposit-destinations/deposit-destinations.d.ts.map +1 -0
  365. package/_types/openapi-client/generated/end-user-account-management/end-user-account-management.d.ts +91 -0
  366. package/_types/openapi-client/generated/end-user-account-management/end-user-account-management.d.ts.map +1 -0
  367. package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts +142 -60
  368. package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts.map +1 -1
  369. package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts +12 -12
  370. package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts.map +1 -1
  371. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +10 -10
  372. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -1
  373. package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts +2 -2
  374. package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts.map +1 -1
  375. package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts.map +1 -1
  376. package/_types/openapi-client/generated/faucets/faucets.d.ts.map +1 -1
  377. package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts.map +1 -1
  378. package/_types/openapi-client/generated/onramp/onramp.d.ts.map +1 -1
  379. package/_types/openapi-client/generated/payment-methods/payment-methods.d.ts +31 -0
  380. package/_types/openapi-client/generated/payment-methods/payment-methods.d.ts.map +1 -0
  381. package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts +4 -4
  382. package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts.map +1 -1
  383. package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts +11 -11
  384. package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts.map +1 -1
  385. package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.d.ts.map +1 -1
  386. package/_types/openapi-client/generated/sql-api/sql-api.d.ts +1 -1
  387. package/_types/openapi-client/generated/sql-api/sql-api.d.ts.map +1 -1
  388. package/_types/openapi-client/generated/transfers/transfers.d.ts +74 -0
  389. package/_types/openapi-client/generated/transfers/transfers.d.ts.map +1 -0
  390. package/_types/openapi-client/generated/webhooks/webhooks.d.ts +1 -1
  391. package/_types/openapi-client/generated/webhooks/webhooks.d.ts.map +1 -1
  392. package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts +3 -3
  393. package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts.map +1 -1
  394. package/_types/openapi-client/index.d.ts +14 -10
  395. package/_types/openapi-client/index.d.ts.map +1 -1
  396. package/_types/policies/evmSchema.d.ts +884 -39
  397. package/_types/policies/evmSchema.d.ts.map +1 -1
  398. package/_types/policies/solanaSchema.d.ts +20 -20
  399. package/_types/policies/solanaSchema.d.ts.map +1 -1
  400. package/_types/policies/types.d.ts +1996 -629
  401. package/_types/policies/types.d.ts.map +1 -1
  402. package/_types/spend-permissions/constants.d.ts.map +1 -1
  403. package/_types/spend-permissions/types.d.ts.map +1 -1
  404. package/_types/spend-permissions/utils.d.ts.map +1 -1
  405. package/_types/types/calls.d.ts.map +1 -1
  406. package/_types/types/contract.d.ts.map +1 -1
  407. package/_types/types/misc.d.ts.map +1 -1
  408. package/_types/types/multicall.d.ts.map +1 -1
  409. package/_types/types/utils.d.ts.map +1 -1
  410. package/_types/utils/bigint.d.ts.map +1 -1
  411. package/_types/utils/export.d.ts.map +1 -1
  412. package/_types/utils/hash.d.ts.map +1 -1
  413. package/_types/utils/serializeTransaction.d.ts.map +1 -1
  414. package/_types/utils/sortKeys.d.ts.map +1 -1
  415. package/_types/utils/uuidV4.d.ts.map +1 -1
  416. package/_types/utils/wait.d.ts.map +1 -1
  417. package/_types/version.d.ts +1 -1
  418. package/_types/version.d.ts.map +1 -1
  419. package/package.json +24 -3
  420. package/{auth → src/auth}/README.md +3 -3
  421. package/{client → src/client}/end-user/endUser.ts +113 -69
  422. package/{client → src/client}/end-user/endUser.types.ts +63 -4
  423. package/{client → src/client}/end-user/toEndUserAccount.ts +103 -64
  424. package/src/openapi-client/generated/accounts/accounts.ts +103 -0
  425. package/{openapi-client → src/openapi-client}/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +2368 -363
  426. package/src/openapi-client/generated/deposit-destinations/deposit-destinations.ts +72 -0
  427. package/{openapi-client/generated/end-user-accounts/end-user-accounts.ts → src/openapi-client/generated/end-user-account-management/end-user-account-management.ts} +6 -6
  428. package/{openapi-client/generated/embedded-wallets/embedded-wallets.ts → src/openapi-client/generated/end-user-accounts/end-user-accounts.ts} +11 -11
  429. package/{openapi-client → src/openapi-client}/generated/evm-accounts/evm-accounts.ts +12 -12
  430. package/{openapi-client → src/openapi-client}/generated/evm-smart-accounts/evm-smart-accounts.ts +10 -10
  431. package/{openapi-client → src/openapi-client}/generated/evm-swaps/evm-swaps.ts +2 -2
  432. package/src/openapi-client/generated/payment-methods/payment-methods.ts +53 -0
  433. package/{openapi-client → src/openapi-client}/generated/policy-engine/policy-engine.ts +4 -4
  434. package/{openapi-client → src/openapi-client}/generated/solana-accounts/solana-accounts.ts +11 -11
  435. package/{openapi-client → src/openapi-client}/generated/sql-api/sql-api.ts +1 -1
  436. package/src/openapi-client/generated/transfers/transfers.ts +131 -0
  437. package/{openapi-client → src/openapi-client}/generated/webhooks/webhooks.ts +1 -1
  438. package/{openapi-client → src/openapi-client}/generated/x402-facilitator/x402-facilitator.ts +3 -3
  439. package/{openapi-client → src/openapi-client}/index.ts +7 -3
  440. package/{policies → src/policies}/evmSchema.ts +63 -0
  441. package/{policies → src/policies}/types.ts +4 -0
  442. package/src/version.ts +1 -0
  443. package/CHANGELOG.md +0 -631
  444. package/_cjs/openapi-client/generated/embedded-wallets/embedded-wallets.js +0 -286
  445. package/_cjs/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +0 -1
  446. package/_esm/openapi-client/generated/embedded-wallets/embedded-wallets.js +0 -267
  447. package/_esm/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +0 -1
  448. package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts +0 -173
  449. package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts.map +0 -1
  450. package/version.ts +0 -1
  451. /package/{accounts → src/accounts}/evm/chainToNetworkMapper.ts +0 -0
  452. /package/{accounts → src/accounts}/evm/eip6492.ts +0 -0
  453. /package/{accounts → src/accounts}/evm/getBaseNodeRpcUrl.ts +0 -0
  454. /package/{accounts → src/accounts}/evm/networkCapabilities.ts +0 -0
  455. /package/{accounts → src/accounts}/evm/networkToChainResolver.ts +0 -0
  456. /package/{accounts → src/accounts}/evm/resolveViemClients.ts +0 -0
  457. /package/{accounts → src/accounts}/evm/toEvmDelegatedAccount.ts +0 -0
  458. /package/{accounts → src/accounts}/evm/toEvmServerAccount.ts +0 -0
  459. /package/{accounts → src/accounts}/evm/toEvmSmartAccount.ts +0 -0
  460. /package/{accounts → src/accounts}/evm/toNetworkScopedEvmServerAccount.ts +0 -0
  461. /package/{accounts → src/accounts}/evm/toNetworkScopedEvmSmartAccount.ts +0 -0
  462. /package/{accounts → src/accounts}/evm/types.ts +0 -0
  463. /package/{accounts → src/accounts}/solana/toSolanaAccount.ts +0 -0
  464. /package/{accounts → src/accounts}/solana/types.ts +0 -0
  465. /package/{actions → src/actions}/evm/getUserOperation.ts +0 -0
  466. /package/{actions → src/actions}/evm/listSpendPermissions.ts +0 -0
  467. /package/{actions → src/actions}/evm/listTokenBalances.ts +0 -0
  468. /package/{actions → src/actions}/evm/requestFaucet.ts +0 -0
  469. /package/{actions → src/actions}/evm/sendTransaction.ts +0 -0
  470. /package/{actions → src/actions}/evm/sendUserOperation.ts +0 -0
  471. /package/{actions → src/actions}/evm/signAndWrapTypedDataForSmartAccount.ts +0 -0
  472. /package/{actions → src/actions}/evm/spend-permissions/account.use.ts +0 -0
  473. /package/{actions → src/actions}/evm/spend-permissions/resolveSpendPermission.ts +0 -0
  474. /package/{actions → src/actions}/evm/spend-permissions/smartAccount.use.ts +0 -0
  475. /package/{actions → src/actions}/evm/spend-permissions/types.ts +0 -0
  476. /package/{actions → src/actions}/evm/swap/createSwapQuote.ts +0 -0
  477. /package/{actions → src/actions}/evm/swap/getSwapPrice.ts +0 -0
  478. /package/{actions → src/actions}/evm/swap/sendSwapOperation.ts +0 -0
  479. /package/{actions → src/actions}/evm/swap/sendSwapTransaction.ts +0 -0
  480. /package/{actions → src/actions}/evm/swap/types.ts +0 -0
  481. /package/{actions → src/actions}/evm/transfer/accountTransferStrategy.ts +0 -0
  482. /package/{actions → src/actions}/evm/transfer/smartAccountTransferStrategy.ts +0 -0
  483. /package/{actions → src/actions}/evm/transfer/transfer.ts +0 -0
  484. /package/{actions → src/actions}/evm/transfer/transferWithViem.ts +0 -0
  485. /package/{actions → src/actions}/evm/transfer/types.ts +0 -0
  486. /package/{actions → src/actions}/evm/transfer/utils.ts +0 -0
  487. /package/{actions → src/actions}/evm/types.ts +0 -0
  488. /package/{actions → src/actions}/evm/waitForEvmEip7702DelegationStatus.ts +0 -0
  489. /package/{actions → src/actions}/evm/waitForUserOperation.ts +0 -0
  490. /package/{actions → src/actions}/solana/constants.ts +0 -0
  491. /package/{actions → src/actions}/solana/requestFaucet.ts +0 -0
  492. /package/{actions → src/actions}/solana/rpc.ts +0 -0
  493. /package/{actions → src/actions}/solana/sendTransaction.ts +0 -0
  494. /package/{actions → src/actions}/solana/signMessage.ts +0 -0
  495. /package/{actions → src/actions}/solana/signTransaction.ts +0 -0
  496. /package/{actions → src/actions}/solana/transfer.ts +0 -0
  497. /package/{actions → src/actions}/solana/types.ts +0 -0
  498. /package/{actions → src/actions}/solana/utils.ts +0 -0
  499. /package/{actions → src/actions}/webhooks/createWebhookSubscription.ts +0 -0
  500. /package/{actions → src/actions}/webhooks/index.ts +0 -0
  501. /package/{analytics.ts → src/analytics.ts} +0 -0
  502. /package/{auth → src/auth}/errors.ts +0 -0
  503. /package/{auth → src/auth}/hooks/axios/index.ts +0 -0
  504. /package/{auth → src/auth}/hooks/axios/withAuth.ts +0 -0
  505. /package/{auth → src/auth}/index.ts +0 -0
  506. /package/{auth → src/auth}/utils/hash.ts +0 -0
  507. /package/{auth → src/auth}/utils/http.ts +0 -0
  508. /package/{auth → src/auth}/utils/index.ts +0 -0
  509. /package/{auth → src/auth}/utils/jwt.ts +0 -0
  510. /package/{auth → src/auth}/utils/ws.ts +0 -0
  511. /package/{client → src/client}/cdp.ts +0 -0
  512. /package/{client → src/client}/evm/evm.ts +0 -0
  513. /package/{client → src/client}/evm/evm.types.ts +0 -0
  514. /package/{client → src/client}/policies/index.ts +0 -0
  515. /package/{client → src/client}/policies/policies.ts +0 -0
  516. /package/{client → src/client}/policies/policies.types.ts +0 -0
  517. /package/{client → src/client}/solana/index.ts +0 -0
  518. /package/{client → src/client}/solana/solana.ts +0 -0
  519. /package/{client → src/client}/solana/solana.types.ts +0 -0
  520. /package/{client → src/client}/webhooks/webhooks.ts +0 -0
  521. /package/{constants.ts → src/constants.ts} +0 -0
  522. /package/{errors.ts → src/errors.ts} +0 -0
  523. /package/{index.ts → src/index.ts} +0 -0
  524. /package/{openapi-client → src/openapi-client}/cdpApiClient.ts +0 -0
  525. /package/{openapi-client → src/openapi-client}/errors.ts +0 -0
  526. /package/{openapi-client → src/openapi-client}/generated/evm-token-balances/evm-token-balances.ts +0 -0
  527. /package/{openapi-client → src/openapi-client}/generated/faucets/faucets.ts +0 -0
  528. /package/{openapi-client → src/openapi-client}/generated/onchain-data/onchain-data.ts +0 -0
  529. /package/{openapi-client → src/openapi-client}/generated/onramp/onramp.ts +0 -0
  530. /package/{openapi-client → src/openapi-client}/generated/solana-token-balances/solana-token-balances.ts +0 -0
  531. /package/{policies → src/policies}/solanaSchema.ts +0 -0
  532. /package/{spend-permissions → src/spend-permissions}/constants.ts +0 -0
  533. /package/{spend-permissions → src/spend-permissions}/types.ts +0 -0
  534. /package/{spend-permissions → src/spend-permissions}/utils.ts +0 -0
  535. /package/{types → src/types}/calls.ts +0 -0
  536. /package/{types → src/types}/contract.ts +0 -0
  537. /package/{types → src/types}/misc.ts +0 -0
  538. /package/{types → src/types}/multicall.ts +0 -0
  539. /package/{types → src/types}/utils.ts +0 -0
  540. /package/{utils → src/utils}/bigint.ts +0 -0
  541. /package/{utils → src/utils}/export.ts +0 -0
  542. /package/{utils → src/utils}/hash.ts +0 -0
  543. /package/{utils → src/utils}/serializeTransaction.ts +0 -0
  544. /package/{utils → src/utils}/sortKeys.ts +0 -0
  545. /package/{utils → src/utils}/uuidV4.ts +0 -0
  546. /package/{utils → src/utils}/wait.ts +0 -0
@@ -1,132 +1,286 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.importEndUser = exports.addEndUserSolanaAccount = exports.addEndUserEvmSmartAccount = exports.addEndUserEvmAccount = exports.lookupEndUser = exports.getEndUser = exports.validateEndUserAccessToken = exports.listEndUsers = exports.createEndUser = void 0;
3
+ exports.sendSolanaAssetWithEndUserAccount = exports.sendSolanaTransactionWithEndUserAccount = exports.signSolanaTransactionWithEndUserAccount = exports.signSolanaMessageWithEndUserAccount = exports.sendUserOperationWithEndUserAccount = exports.createEvmEip7702DelegationWithEndUserAccount = exports.revokeDelegationForEndUserAccount = exports.getDelegationForEndUserAccount = exports.createDelegationForEndUserAccount = exports.revokeDelegationForEndUser = exports.getDelegationForEndUser = exports.signEvmTypedDataWithEndUserAccount = exports.signEvmMessageWithEndUserAccount = exports.sendEvmAssetWithEndUserAccount = exports.sendEvmTransactionWithEndUserAccount = exports.signEvmTransactionWithEndUserAccount = void 0;
4
4
  const cdpApiClient_js_1 = require("../../cdpApiClient.js");
5
5
  /**
6
- * Creates an end user. An end user is an entity that can own CDP EVM accounts, EVM smart accounts, and/or Solana accounts. 1 or more authentication methods must be associated with an end user. By default, no accounts are created unless the optional `evmAccount` and/or `solanaAccount` fields are provided.
7
- This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
8
- * @summary Create an end user
6
+ * Signs a transaction with the given end user EVM account.
7
+ The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
8
+
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.
10
+ * @summary Sign transaction via end user EVM account
9
11
  */
10
- const createEndUser = (createEndUserBody, options) => {
12
+ const signEvmTransactionWithEndUserAccount = (userId, signEvmTransactionWithEndUserAccountBody, params, options) => {
11
13
  return (0, cdpApiClient_js_1.cdpApiClient)({
12
- url: `/v2/end-users`,
14
+ url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/transaction`,
13
15
  method: "POST",
14
16
  headers: { "Content-Type": "application/json" },
15
- data: createEndUserBody,
17
+ data: signEvmTransactionWithEndUserAccountBody,
18
+ params,
16
19
  }, options);
17
20
  };
18
- exports.createEndUser = createEndUser;
21
+ exports.signEvmTransactionWithEndUserAccount = signEvmTransactionWithEndUserAccount;
19
22
  /**
20
- * Lists the end users belonging to the developer's CDP Project.
21
- By default, the response is sorted by creation date in ascending order and paginated to 20 users per page.
22
- * @summary List end users
23
+ * Signs a transaction with the given end user EVM account and sends it to the indicated supported network. This API handles nonce management and gas estimation, leaving the developer to provide only the minimal set of fields necessary to send the transaction. The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
24
+
25
+ The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md).
26
+
27
+
28
+ **Transaction fields and API behavior**
29
+
30
+ - `to` *(Required)*: The address of the contract or account to send the transaction to.
31
+ - `chainId` *(Ignored)*: The value of the `chainId` field in the transaction is ignored.
32
+ The transaction will be sent to the network indicated by the `network` field in the request body.
33
+
34
+ - `nonce` *(Optional)*: The nonce to use for the transaction. If not provided, the API will assign
35
+ a nonce to the transaction based on the current state of the account.
36
+
37
+ - `maxPriorityFeePerGas` *(Optional)*: The maximum priority fee per gas to use for the transaction.
38
+ If not provided, the API will estimate a value based on current network conditions.
39
+
40
+ - `maxFeePerGas` *(Optional)*: The maximum fee per gas to use for the transaction.
41
+ If not provided, the API will estimate a value based on current network conditions.
42
+
43
+ - `gasLimit` *(Optional)*: The gas limit to use for the transaction. If not provided, the API will estimate a value
44
+ based on the `to` and `data` fields of the transaction.
45
+
46
+ - `value` *(Optional)*: The amount of ETH, in wei, to send with the transaction.
47
+ - `data` *(Optional)*: The data to send with the transaction; only used for contract calls.
48
+ - `accessList` *(Optional)*: The access list to use for the transaction.
49
+ * @summary Send transaction via end user EVM account
23
50
  */
24
- const listEndUsers = (params, options) => {
25
- return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/end-users`, method: "GET", params }, options);
51
+ const sendEvmTransactionWithEndUserAccount = (userId, sendEvmTransactionWithEndUserAccountBody, params, options) => {
52
+ return (0, cdpApiClient_js_1.cdpApiClient)({
53
+ url: `/v2/embedded-wallet-api/end-users/${userId}/evm/send/transaction`,
54
+ method: "POST",
55
+ headers: { "Content-Type": "application/json" },
56
+ data: sendEvmTransactionWithEndUserAccountBody,
57
+ params,
58
+ }, options);
26
59
  };
27
- exports.listEndUsers = listEndUsers;
60
+ exports.sendEvmTransactionWithEndUserAccount = sendEvmTransactionWithEndUserAccount;
28
61
  /**
29
- * Validates the end user's access token and returns the end user's information. Returns an error if the access token is invalid or expired.
30
-
31
- This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
32
- * @summary Validate end user access token
62
+ * Sends USDC from an end user's EVM account (EOA or Smart Account) to a recipient address on a supported EVM network. This endpoint simplifies USDC transfers by automatically handling contract resolution, decimal conversion, gas estimation, and transaction encoding.
63
+ The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50").
64
+ * @summary Send USDC on EVM
33
65
  */
34
- const validateEndUserAccessToken = (validateEndUserAccessTokenBody, options) => {
66
+ const sendEvmAssetWithEndUserAccount = (userId, address, asset, sendEvmAssetWithEndUserAccountBody, params, options) => {
35
67
  return (0, cdpApiClient_js_1.cdpApiClient)({
36
- url: `/v2/end-users/auth/validate-token`,
68
+ url: `/v2/embedded-wallet-api/end-users/${userId}/evm/${address}/send/${asset}`,
37
69
  method: "POST",
38
70
  headers: { "Content-Type": "application/json" },
39
- data: validateEndUserAccessTokenBody,
71
+ data: sendEvmAssetWithEndUserAccountBody,
72
+ params,
40
73
  }, options);
41
74
  };
42
- exports.validateEndUserAccessToken = validateEndUserAccessToken;
75
+ exports.sendEvmAssetWithEndUserAccount = sendEvmAssetWithEndUserAccount;
43
76
  /**
44
- * Gets an end user by ID.
77
+ * Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given end user EVM account.
45
78
 
46
- This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
47
- * @summary Get an end user
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.
80
+ * @summary Sign EIP-191 message via end user EVM account
81
+ */
82
+ const signEvmMessageWithEndUserAccount = (userId, signEvmMessageWithEndUserAccountBody, params, options) => {
83
+ return (0, cdpApiClient_js_1.cdpApiClient)({
84
+ url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/message`,
85
+ method: "POST",
86
+ headers: { "Content-Type": "application/json" },
87
+ data: signEvmMessageWithEndUserAccountBody,
88
+ params,
89
+ }, options);
90
+ };
91
+ exports.signEvmMessageWithEndUserAccount = signEvmMessageWithEndUserAccount;
92
+ /**
93
+ * Signs [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data with the given end user EVM account.
94
+ * @summary Sign EIP-712 typed data via end user EVM account
48
95
  */
49
- const getEndUser = (userId, options) => {
50
- return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/end-users/${userId}`, method: "GET" }, options);
96
+ const signEvmTypedDataWithEndUserAccount = (userId, signEvmTypedDataWithEndUserAccountBody, params, options) => {
97
+ return (0, cdpApiClient_js_1.cdpApiClient)({
98
+ url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/typed-data`,
99
+ method: "POST",
100
+ headers: { "Content-Type": "application/json" },
101
+ data: signEvmTypedDataWithEndUserAccountBody,
102
+ params,
103
+ }, options);
51
104
  };
52
- exports.getEndUser = getEndUser;
105
+ exports.signEvmTypedDataWithEndUserAccount = signEvmTypedDataWithEndUserAccount;
53
106
  /**
54
- * Looks up end users. Exactly one lookup type must be provided per request:
55
-
56
- - **email**: searches across all email-based authentication methods
57
- (email, Google, Apple, GitHub). May return multiple end users if the
58
- same email address appears across different auth methods.
59
-
60
- - **oauthProvider + oauthSubject**: looks up a user by their OAuth
61
- provider and subject (the `sub` claim from the provider's ID token).
62
- Both params must be provided together.
63
-
64
- - **phoneNumber**: looks up a user by their SMS-verified phone number.
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;
114
+ /**
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.
116
+ * @summary Revoke delegation for end user
117
+ */
118
+ const revokeDelegationForEndUser = (userId, revokeDelegationForEndUserBody, params, options) => {
119
+ return (0, cdpApiClient_js_1.cdpApiClient)({
120
+ url: `/v2/embedded-wallet-api/end-users/${userId}/delegation`,
121
+ method: "DELETE",
122
+ headers: { "Content-Type": "application/json" },
123
+ data: revokeDelegationForEndUserBody,
124
+ params,
125
+ }, options);
126
+ };
127
+ exports.revokeDelegationForEndUser = revokeDelegationForEndUser;
128
+ /**
129
+ * Creates an account-scoped delegation that allows a developer to sign on behalf of an end user for a single blockchain account (identified by its address) for the specified duration. The end user must be authenticated to authorize this delegation.
130
+ Multiple account-scoped delegations may exist concurrently for a single end user (one per canonical account address). Account-scoped and user-scoped delegations cannot coexist for the same user.
131
+ When the address corresponds to an EVM Smart Account, the delegation is scoped to the Smart Account's owner EOA rather than the Smart Account address itself. This means `/address/{smartAccountAddress}/delegation` and `/address/{ownerEoaAddress}/delegation` resolve to the same delegation, and the 409 `account_scoped_delegation_active` error may be returned when creating via either address if one already exists for the canonical owner.
132
+ * @summary Create account-scoped delegation for end user
133
+ */
134
+ const createDelegationForEndUserAccount = (userId, address, createDelegationForEndUserAccountBody, params, options) => {
135
+ return (0, cdpApiClient_js_1.cdpApiClient)({
136
+ url: `/v2/embedded-wallet-api/end-users/${userId}/address/${address}/delegation`,
137
+ method: "POST",
138
+ headers: { "Content-Type": "application/json" },
139
+ data: createDelegationForEndUserAccountBody,
140
+ params,
141
+ }, options);
142
+ };
143
+ exports.createDelegationForEndUserAccount = createDelegationForEndUserAccount;
144
+ /**
145
+ * Returns the active account-scoped delegation for the specified end user account, if one exists. Useful for showing delegation status in a UI.
146
+ When the address corresponds to an EVM Smart Account, this returns the delegation for the Smart Account's owner EOA.
147
+ * @summary Get account-scoped delegation for end user
148
+ */
149
+ const getDelegationForEndUserAccount = (userId, address, params, options) => {
150
+ return (0, cdpApiClient_js_1.cdpApiClient)({
151
+ url: `/v2/embedded-wallet-api/end-users/${userId}/address/${address}/delegation`,
152
+ method: "GET",
153
+ params,
154
+ }, options);
155
+ };
156
+ exports.getDelegationForEndUserAccount = getDelegationForEndUserAccount;
157
+ /**
158
+ * Revokes the active account-scoped delegation for the specified end user account. Other account-scoped delegations for the same user are unaffected. This operation can be performed by the end user themselves or by a developer using their API key.
159
+ When the address corresponds to an EVM Smart Account, this revokes the delegation for the Smart Account's owner EOA.
160
+ * @summary Revoke account-scoped delegation for end user
161
+ */
162
+ const revokeDelegationForEndUserAccount = (userId, address, revokeDelegationForEndUserAccountBody, params, options) => {
163
+ return (0, cdpApiClient_js_1.cdpApiClient)({
164
+ url: `/v2/embedded-wallet-api/end-users/${userId}/address/${address}/delegation`,
165
+ method: "DELETE",
166
+ headers: { "Content-Type": "application/json" },
167
+ data: revokeDelegationForEndUserAccountBody,
168
+ params,
169
+ }, options);
170
+ };
171
+ exports.revokeDelegationForEndUserAccount = revokeDelegationForEndUserAccount;
172
+ /**
173
+ * Creates an EIP-7702 delegation for an end user's EVM EOA account, upgrading it with smart account capabilities.
65
174
 
66
- Returns all matching end users. If no end users match, an empty array is returned.
175
+ This endpoint:
176
+ - Retrieves delegation artifacts from onchain
177
+ - Signs the EIP-7702 authorization for delegation
178
+ - Assembles and submits a Type 4 transaction
179
+ - Creates an associated smart account object
67
180
 
68
- This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
69
- * @summary Look up end users by identity
181
+ The delegation allows the EVM EOA to be used as a smart account, which enables batched transactions and gas sponsorship via paymaster.
182
+ * @summary Create EIP-7702 delegation for end user EVM account
70
183
  */
71
- const lookupEndUser = (params, options) => {
72
- return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/end-users/lookup`, method: "GET", params }, options);
184
+ const createEvmEip7702DelegationWithEndUserAccount = (userId, createEvmEip7702DelegationWithEndUserAccountBody, params, options) => {
185
+ return (0, cdpApiClient_js_1.cdpApiClient)({
186
+ url: `/v2/embedded-wallet-api/end-users/${userId}/evm/eip7702/delegation`,
187
+ method: "POST",
188
+ headers: { "Content-Type": "application/json" },
189
+ data: createEvmEip7702DelegationWithEndUserAccountBody,
190
+ params,
191
+ }, options);
73
192
  };
74
- exports.lookupEndUser = lookupEndUser;
193
+ exports.createEvmEip7702DelegationWithEndUserAccount = createEvmEip7702DelegationWithEndUserAccount;
75
194
  /**
76
- * Adds a new EVM EOA account to an existing end user. End users can have up to 10 EVM accounts.
77
- This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
78
- * @summary Add an EVM account to an end user
195
+ * Prepares, signs, and sends a user operation for an end user's Smart Account.
196
+ * @summary Send user operation for end user Smart Account
79
197
  */
80
- const addEndUserEvmAccount = (userId, addEndUserEvmAccountBody, options) => {
198
+ const sendUserOperationWithEndUserAccount = (userId, address, sendUserOperationWithEndUserAccountBody, params, options) => {
81
199
  return (0, cdpApiClient_js_1.cdpApiClient)({
82
- url: `/v2/end-users/${userId}/evm`,
200
+ url: `/v2/embedded-wallet-api/end-users/${userId}/evm/smart-accounts/${address}/send`,
83
201
  method: "POST",
84
202
  headers: { "Content-Type": "application/json" },
85
- data: addEndUserEvmAccountBody,
203
+ data: sendUserOperationWithEndUserAccountBody,
204
+ params,
86
205
  }, options);
87
206
  };
88
- exports.addEndUserEvmAccount = addEndUserEvmAccount;
207
+ exports.sendUserOperationWithEndUserAccount = sendUserOperationWithEndUserAccount;
89
208
  /**
90
- * Creates an EVM smart account for an existing end user. The backend will create a new EVM EOA account to serve as the owner of the smart account.
91
- This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
92
- * @summary Add an EVM smart account to an end user
209
+ * Signs an arbitrary Base64 encoded message with the given Solana account.
210
+ **WARNING:** Never sign a message that you didn't generate as it may put your funds at risk.
211
+ * @summary Sign Base64-encoded message
93
212
  */
94
- const addEndUserEvmSmartAccount = (userId, addEndUserEvmSmartAccountBody, options) => {
213
+ const signSolanaMessageWithEndUserAccount = (userId, signSolanaMessageWithEndUserAccountBody, params, options) => {
95
214
  return (0, cdpApiClient_js_1.cdpApiClient)({
96
- url: `/v2/end-users/${userId}/evm-smart-account`,
215
+ url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/message`,
97
216
  method: "POST",
98
217
  headers: { "Content-Type": "application/json" },
99
- data: addEndUserEvmSmartAccountBody,
218
+ data: signSolanaMessageWithEndUserAccountBody,
219
+ params,
100
220
  }, options);
101
221
  };
102
- exports.addEndUserEvmSmartAccount = addEndUserEvmSmartAccount;
222
+ exports.signSolanaMessageWithEndUserAccount = signSolanaMessageWithEndUserAccount;
103
223
  /**
104
- * Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts.
105
- This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
106
- * @summary Add a Solana account to an end user
224
+ * Signs a transaction with the given end user Solana account.
225
+ The unsigned transaction should be serialized into a byte array and then encoded as base64.
226
+ **Transaction types**
227
+ The following transaction types are supported:
228
+ * [Legacy transactions](https://solana-labs.github.io/solana-web3.js/classes/Transaction.html)
229
+ * [Versioned transactions](https://solana-labs.github.io/solana-web3.js/classes/VersionedTransaction.html)
230
+ The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
231
+ * @summary Sign transaction via end user Solana account
107
232
  */
108
- const addEndUserSolanaAccount = (userId, addEndUserSolanaAccountBody, options) => {
233
+ const signSolanaTransactionWithEndUserAccount = (userId, signSolanaTransactionWithEndUserAccountBody, params, options) => {
109
234
  return (0, cdpApiClient_js_1.cdpApiClient)({
110
- url: `/v2/end-users/${userId}/solana`,
235
+ url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/transaction`,
111
236
  method: "POST",
112
237
  headers: { "Content-Type": "application/json" },
113
- data: addEndUserSolanaAccountBody,
238
+ data: signSolanaTransactionWithEndUserAccountBody,
239
+ params,
114
240
  }, options);
115
241
  };
116
- exports.addEndUserSolanaAccount = addEndUserSolanaAccount;
242
+ exports.signSolanaTransactionWithEndUserAccount = signSolanaTransactionWithEndUserAccount;
117
243
  /**
118
- * Imports an existing private key for an end user into the developer's CDP Project. The private key must be encrypted using the CDP SDK's encryption scheme before being sent to this endpoint. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted.
119
-
120
- This endpoint allows developers to import existing keys for their end users, supporting both EVM and Solana key types. The end user must have at least one authentication method configured.
121
- * @summary Import a private key for an end user
244
+ * Signs a transaction with the given end user Solana account and sends it to the indicated supported network.
245
+ The API handles recent blockhash management and fee estimation, leaving the developer to provide only the minimal set of fields necessary to send the transaction.
246
+ The unsigned transaction should be serialized into a byte array and then encoded as base64.
247
+ **Transaction types**
248
+ The following transaction types are supported:
249
+ * [Legacy transactions](https://solana.com/developers/guides/advanced/versions#current-transaction-versions)
250
+ * [Versioned transactions](https://solana.com/developers/guides/advanced/versions)
251
+ **Instruction Batching**
252
+ To batch multiple operations, include multiple instructions within a single transaction. All instructions within a transaction are executed atomically - if any instruction fails, the entire transaction fails and is rolled back.
253
+ **Network Support**
254
+ The following Solana networks are supported:
255
+ * `solana` - Solana Mainnet
256
+ * `solana-devnet` - Solana Devnet
257
+ The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
258
+ * @summary Send transaction via end user Solana account
259
+ */
260
+ const sendSolanaTransactionWithEndUserAccount = (userId, sendSolanaTransactionWithEndUserAccountBody, params, options) => {
261
+ return (0, cdpApiClient_js_1.cdpApiClient)({
262
+ url: `/v2/embedded-wallet-api/end-users/${userId}/solana/send/transaction`,
263
+ method: "POST",
264
+ headers: { "Content-Type": "application/json" },
265
+ data: sendSolanaTransactionWithEndUserAccountBody,
266
+ params,
267
+ }, options);
268
+ };
269
+ exports.sendSolanaTransactionWithEndUserAccount = sendSolanaTransactionWithEndUserAccount;
270
+ /**
271
+ * Sends USDC from an end user's Solana account to a recipient address on the Solana network. This endpoint simplifies USDC transfers by automatically handling mint resolution, Associated Token Account (ATA) creation, decimal conversion, and transaction encoding.
272
+ The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50").
273
+ Use the optional `createRecipientAta` parameter to control whether the sender pays for creating the recipient's Associated Token Account if it doesn't exist.
274
+ * @summary Send USDC on Solana
122
275
  */
123
- const importEndUser = (importEndUserBody, options) => {
276
+ const sendSolanaAssetWithEndUserAccount = (userId, address, asset, sendSolanaAssetWithEndUserAccountBody, params, options) => {
124
277
  return (0, cdpApiClient_js_1.cdpApiClient)({
125
- url: `/v2/end-users/import`,
278
+ url: `/v2/embedded-wallet-api/end-users/${userId}/solana/${address}/send/${asset}`,
126
279
  method: "POST",
127
280
  headers: { "Content-Type": "application/json" },
128
- data: importEndUserBody,
281
+ data: sendSolanaAssetWithEndUserAccountBody,
282
+ params,
129
283
  }, options);
130
284
  };
131
- exports.importEndUser = importEndUser;
285
+ exports.sendSolanaAssetWithEndUserAccount = sendSolanaAssetWithEndUserAccount;
132
286
  //# sourceMappingURL=end-user-accounts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"end-user-accounts.js","sourceRoot":"","sources":["../../../../openapi-client/generated/end-user-accounts/end-user-accounts.ts"],"names":[],"mappings":";;;AAwBA,2DAAqD;AAIrD;;;;GAIG;AACI,MAAM,aAAa,GAAG,CAC3B,iBAAoC,EACpC,OAAuD,EACvD,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,eAAe;QACpB,MAAM,EAAE,MAAM;QACd,OAAO,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;AACJ,CAAC,CAAC;AAbW,QAAA,aAAa,iBAaxB"}
1
+ {"version":3,"file":"end-user-accounts.js","sourceRoot":"","sources":["../../../../src/openapi-client/generated/end-user-accounts/end-user-accounts.ts"],"names":[],"mappings":";;;AAuDA,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;;;;GAIG;AACI,MAAM,8BAA8B,GAAG,CAC5C,MAAc,EACd,OAA0B,EAC1B,KAAa,EACb,kCAAsE,EACtE,MAA6C,EAC7C,OAAiF,EACjF,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,qCAAqC,MAAM,QAAQ,OAAO,SAAS,KAAK,EAAE;QAC/E,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C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AM,uCAAuC,GAAG,CACrD,MAAc,EACd,2CAAwF,EACxF,MAAsD,EACtD,OAA0F,EAC1F,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,qCAAqC,MAAM,0BAA0B;QAC1E,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,2CAA2C;QACjD,MAAM;KACP,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,uCAAuC,2CAgBlD;AACF;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,uCAAuC,GAAG,CACrD,MAAc,EACd,2CAAwF,EACxF,MAAsD,EACtD,OAA0F,EAC1F,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,qCAAqC,MAAM,0BAA0B;QAC1E,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,2CAA2C;QACjD,MAAM;KACP,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,uCAAuC,2CAgBlD;AACF;;;;;GAKG;AACI,MAAM,iCAAiC,GAAG,CAC/C,MAAc,EACd,OAA0B,EAC1B,KAAa,EACb,qCAA4E,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"}
@@ -13,7 +13,7 @@ const listEvmAccounts = (params, options) => {
13
13
  exports.listEvmAccounts = listEvmAccounts;
14
14
  /**
15
15
  * Creates a new EVM account.
16
- * @summary Create an EVM account
16
+ * @summary Create EVM account
17
17
  */
18
18
  const createEvmAccount = (createEvmAccountBody, options) => {
19
19
  return (0, cdpApiClient_js_1.cdpApiClient)({
@@ -26,7 +26,7 @@ const createEvmAccount = (createEvmAccountBody, options) => {
26
26
  exports.createEvmAccount = createEvmAccount;
27
27
  /**
28
28
  * Gets an EVM account by its address.
29
- * @summary Get an EVM account by address
29
+ * @summary Get EVM account by address
30
30
  */
31
31
  const getEvmAccount = (address, options) => {
32
32
  return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/accounts/${address}`, method: "GET" }, options);
@@ -34,7 +34,7 @@ const getEvmAccount = (address, options) => {
34
34
  exports.getEvmAccount = getEvmAccount;
35
35
  /**
36
36
  * Updates an existing EVM account. Use this to update the account's name or account-level policy.
37
- * @summary Update an EVM account
37
+ * @summary Update EVM account
38
38
  */
39
39
  const updateEvmAccount = (address, updateEvmAccountBody, options) => {
40
40
  return (0, cdpApiClient_js_1.cdpApiClient)({
@@ -47,7 +47,7 @@ const updateEvmAccount = (address, updateEvmAccountBody, options) => {
47
47
  exports.updateEvmAccount = updateEvmAccount;
48
48
  /**
49
49
  * Gets an EVM account by its name.
50
- * @summary Get an EVM account by name
50
+ * @summary Get EVM account by name
51
51
  */
52
52
  const getEvmAccountByName = (name, options) => {
53
53
  return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/accounts/by-name/${name}`, method: "GET" }, options);
@@ -80,7 +80,7 @@ The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com
80
80
  - `value` *(Optional)*: The amount of ETH, in wei, to send with the transaction.
81
81
  - `data` *(Optional)*: The data to send with the transaction; only used for contract calls.
82
82
  - `accessList` *(Optional)*: The access list to use for the transaction.
83
- * @summary Send a transaction
83
+ * @summary Send transaction
84
84
  */
85
85
  const sendEvmTransaction = (address, sendEvmTransactionBody, options) => {
86
86
  return (0, cdpApiClient_js_1.cdpApiClient)({
@@ -96,7 +96,7 @@ exports.sendEvmTransaction = sendEvmTransaction;
96
96
  The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
97
97
 
98
98
  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.
99
- * @summary Sign a transaction
99
+ * @summary Sign transaction
100
100
  */
101
101
  const signEvmTransaction = (address, signEvmTransactionBody, options) => {
102
102
  return (0, cdpApiClient_js_1.cdpApiClient)({
@@ -109,7 +109,7 @@ const signEvmTransaction = (address, signEvmTransactionBody, options) => {
109
109
  exports.signEvmTransaction = signEvmTransaction;
110
110
  /**
111
111
  * Signs an arbitrary 32 byte hash with the given EVM account.
112
- * @summary Sign a hash
112
+ * @summary Sign hash
113
113
  */
114
114
  const signEvmHash = (address, signEvmHashBody, options) => {
115
115
  return (0, cdpApiClient_js_1.cdpApiClient)({
@@ -124,7 +124,7 @@ exports.signEvmHash = signEvmHash;
124
124
  * Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given EVM account.
125
125
 
126
126
  Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)>` before being signed.
127
- * @summary Sign an EIP-191 message
127
+ * @summary Sign EIP-191 message
128
128
  */
129
129
  const signEvmMessage = (address, signEvmMessageBody, options) => {
130
130
  return (0, cdpApiClient_js_1.cdpApiClient)({
@@ -171,7 +171,7 @@ const createEvmEip7702Delegation = (address, createEvmEip7702DelegationBody, opt
171
171
  exports.createEvmEip7702Delegation = createEvmEip7702Delegation;
172
172
  /**
173
173
  * Returns the EIP-7702 delegation operation. Use the delegationOperationId returned by the Create EIP-7702 delegation endpoint to poll for operation completion.
174
- * @summary Get EIP-7702 delegation operation for an operationID
174
+ * @summary Get EIP-7702 delegation operation by ID
175
175
  */
176
176
  const getEvmEip7702DelegationOperationById = (delegationOperationId, options) => {
177
177
  return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/eip7702/delegation-operations/${delegationOperationId}`, method: "GET" }, options);
@@ -179,7 +179,7 @@ const getEvmEip7702DelegationOperationById = (delegationOperationId, options) =>
179
179
  exports.getEvmEip7702DelegationOperationById = getEvmEip7702DelegationOperationById;
180
180
  /**
181
181
  * Import an existing EVM account into the developer's CDP Project. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted.
182
- * @summary Import an EVM account
182
+ * @summary Import EVM account
183
183
  */
184
184
  const importEvmAccount = (importEvmAccountBody, options) => {
185
185
  return (0, cdpApiClient_js_1.cdpApiClient)({
@@ -192,7 +192,7 @@ const importEvmAccount = (importEvmAccountBody, options) => {
192
192
  exports.importEvmAccount = importEvmAccount;
193
193
  /**
194
194
  * Export an existing EVM account's private key. It is important to store the private key in a secure place after it's exported.
195
- * @summary Export an EVM account
195
+ * @summary Export EVM account
196
196
  */
197
197
  const exportEvmAccount = (address, exportEvmAccountBody, options) => {
198
198
  return (0, cdpApiClient_js_1.cdpApiClient)({
@@ -205,7 +205,7 @@ const exportEvmAccount = (address, exportEvmAccountBody, options) => {
205
205
  exports.exportEvmAccount = exportEvmAccount;
206
206
  /**
207
207
  * Export an existing EVM account's private key by its name. It is important to store the private key in a secure place after it's exported.
208
- * @summary Export an EVM account by name
208
+ * @summary Export EVM account by name
209
209
  */
210
210
  const exportEvmAccountByName = (name, exportEvmAccountByNameBody, options) => {
211
211
  return (0, cdpApiClient_js_1.cdpApiClient)({
@@ -1 +1 @@
1
- {"version":3,"file":"evm-accounts.js","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-accounts/evm-accounts.ts"],"names":[],"mappings":";;;AAiCA,2DAAqD;AAIrD;;;;GAIG;AACI,MAAM,eAAe,GAAG,CAC7B,MAA8B,EAC9B,OAAkE,EAClE,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB,EAAE,GAAG,EAAE,kBAAkB,EAAE,MAAM,EAAE,KA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E,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,oBAAoB;KAC3B,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,gBAAgB,oBAa3B;AACF;;;GAGG;AACI,MAAM,gBAAgB,GAAG,CAC9B,OAAe,EACf,oBAA0C,EAC1C,OAAmE,EACnE,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,oBAAoB,OAAO,SAAS;QACzC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,oBAAoB;KAC3B,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,gBAAgB,oBAc3B;AACF;;;GAGG;AACI,MAAM,sBAAsB,GAAG,CACpC,IAAY,EACZ,0BAAsD,EACtD,OAAyE,EACzE,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,mCAAmC,IAAI,EAAE;QAC9C,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,0BAA0B;KACjC,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,sBAAsB,0BAcjC"}
1
+ {"version":3,"file":"evm-accounts.js","sourceRoot":"","sources":["../../../../src/openapi-client/generated/evm-accounts/evm-accounts.ts"],"names":[],"mappings":";;;AAiCA,2DAAqD;AAIrD;;;;GAIG;AACI,MAAM,eAAe,GAAG,CAC7B,MAA8B,EAC9B,OAAkE,EAClE,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB,EAAE,GAAG,EAAE,kBAAkB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAClD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,eAAe,mBAQ1B;AACF;;;GAGG;AACI,MAAM,gBAAgB,GAAG,CAC9B,oBAA2C,EAC3C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G;AACI,MAAM,gBAAgB,GAAG,CAC9B,OAAe,EACf,oBAA0C,EAC1C,OAAmE,EACnE,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,oBAAoB,OAAO,SAAS;QACzC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,oBAAoB;KAC3B,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,gBAAgB,oBAc3B;AACF;;;GAGG;AACI,MAAM,sBAAsB,GAAG,CACpC,IAAY,EACZ,0BAAsD,EACtD,OAAyE,EACzE,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,mCAAmC,IAAI,EAAE;QAC9C,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,0BAA0B;KACjC,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,sBAAsB,0BAcjC"}
@@ -13,7 +13,7 @@ const listEvmSmartAccounts = (params, options) => {
13
13
  exports.listEvmSmartAccounts = listEvmSmartAccounts;
14
14
  /**
15
15
  * Creates a new Smart Account.
16
- * @summary Create a Smart Account
16
+ * @summary Create Smart Account
17
17
  */
18
18
  const createEvmSmartAccount = (createEvmSmartAccountBody, options) => {
19
19
  return (0, cdpApiClient_js_1.cdpApiClient)({
@@ -26,7 +26,7 @@ const createEvmSmartAccount = (createEvmSmartAccountBody, options) => {
26
26
  exports.createEvmSmartAccount = createEvmSmartAccount;
27
27
  /**
28
28
  * Gets a Smart Account by its name.
29
- * @summary Get a Smart Account by name
29
+ * @summary Get Smart Account by name
30
30
  */
31
31
  const getEvmSmartAccountByName = (name, options) => {
32
32
  return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/smart-accounts/by-name/${name}`, method: "GET" }, options);
@@ -34,7 +34,7 @@ const getEvmSmartAccountByName = (name, options) => {
34
34
  exports.getEvmSmartAccountByName = getEvmSmartAccountByName;
35
35
  /**
36
36
  * Gets a Smart Account by its address.
37
- * @summary Get a Smart Account by address
37
+ * @summary Get Smart Account by address
38
38
  */
39
39
  const getEvmSmartAccount = (address, options) => {
40
40
  return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/smart-accounts/${address}`, method: "GET" }, options);
@@ -42,7 +42,7 @@ const getEvmSmartAccount = (address, options) => {
42
42
  exports.getEvmSmartAccount = getEvmSmartAccount;
43
43
  /**
44
44
  * Updates an existing EVM smart account. Use this to update the smart account's name.
45
- * @summary Update an EVM Smart Account
45
+ * @summary Update EVM Smart Account
46
46
  */
47
47
  const updateEvmSmartAccount = (address, updateEvmSmartAccountBody, options) => {
48
48
  return (0, cdpApiClient_js_1.cdpApiClient)({
@@ -55,7 +55,7 @@ const updateEvmSmartAccount = (address, updateEvmSmartAccountBody, options) => {
55
55
  exports.updateEvmSmartAccount = updateEvmSmartAccount;
56
56
  /**
57
57
  * Prepares a new user operation on a Smart Account for a specific network.
58
- * @summary Prepare a user operation
58
+ * @summary Prepare user operation
59
59
  */
60
60
  const prepareUserOperation = (address, prepareUserOperationBody, options) => {
61
61
  return (0, cdpApiClient_js_1.cdpApiClient)({
@@ -68,7 +68,7 @@ const prepareUserOperation = (address, prepareUserOperationBody, options) => {
68
68
  exports.prepareUserOperation = prepareUserOperation;
69
69
  /**
70
70
  * Prepares, signs, and sends a user operation for an EVM Smart Account. This API can be used only if the owner on Smart Account is a CDP EVM Account.
71
- * @summary Prepare and send a user operation for EVM Smart Account
71
+ * @summary Prepare and send user operation
72
72
  */
73
73
  const prepareAndSendUserOperation = (address, prepareAndSendUserOperationBody, options) => {
74
74
  return (0, cdpApiClient_js_1.cdpApiClient)({
@@ -81,7 +81,7 @@ const prepareAndSendUserOperation = (address, prepareAndSendUserOperationBody, o
81
81
  exports.prepareAndSendUserOperation = prepareAndSendUserOperation;
82
82
  /**
83
83
  * Gets a user operation by its hash.
84
- * @summary Get a user operation
84
+ * @summary Get user operation
85
85
  */
86
86
  const getUserOperation = (address, userOpHash, options) => {
87
87
  return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/smart-accounts/${address}/user-operations/${userOpHash}`, method: "GET" }, options);
@@ -92,7 +92,7 @@ exports.getUserOperation = getUserOperation;
92
92
  The payload to sign must be the `userOpHash` field of the user operation. This hash should be signed directly (not using `personal_sign` or EIP-191 message hashing).
93
93
  The signature must be 65 bytes in length, consisting of: - 32 bytes for the `r` value - 32 bytes for the `s` value - 1 byte for the `v` value (must be 27 or 28)
94
94
  If using the CDP Paymaster, the user operation must be signed and sent within 2 minutes of being prepared.
95
- * @summary Send a user operation
95
+ * @summary Send user operation
96
96
  */
97
97
  const sendUserOperation = (address, userOpHash, sendUserOperationBody, options) => {
98
98
  return (0, cdpApiClient_js_1.cdpApiClient)({
@@ -105,7 +105,7 @@ const sendUserOperation = (address, userOpHash, sendUserOperationBody, options)
105
105
  exports.sendUserOperation = sendUserOperation;
106
106
  /**
107
107
  * Creates a spend permission for the given smart account address.
108
- * @summary Create a spend permission
108
+ * @summary Create spend permission
109
109
  */
110
110
  const createSpendPermission = (address, createSpendPermissionRequest, options) => {
111
111
  return (0, cdpApiClient_js_1.cdpApiClient)({
@@ -126,7 +126,7 @@ const listSpendPermissions = (address, params, options) => {
126
126
  exports.listSpendPermissions = listSpendPermissions;
127
127
  /**
128
128
  * Revokes an existing spend permission.
129
- * @summary Revoke a spend permission
129
+ * @summary Revoke spend permission
130
130
  */
131
131
  const revokeSpendPermission = (address, revokeSpendPermissionRequest, options) => {
132
132
  return (0, cdpApiClient_js_1.cdpApiClient)({