@coinbase/cdp-sdk 1.50.0 → 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 (541) 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.map +1 -1
  64. package/_cjs/client/end-user/endUser.types.js.map +1 -1
  65. package/_cjs/client/end-user/toEndUserAccount.js.map +1 -1
  66. package/_cjs/client/evm/evm.js.map +1 -1
  67. package/_cjs/client/evm/evm.types.js.map +1 -1
  68. package/_cjs/client/policies/index.js.map +1 -1
  69. package/_cjs/client/policies/policies.js.map +1 -1
  70. package/_cjs/client/policies/policies.types.js.map +1 -1
  71. package/_cjs/client/solana/index.js.map +1 -1
  72. package/_cjs/client/solana/solana.js.map +1 -1
  73. package/_cjs/client/solana/solana.types.js.map +1 -1
  74. package/_cjs/client/webhooks/webhooks.js.map +1 -1
  75. package/_cjs/constants.js.map +1 -1
  76. package/_cjs/errors.js.map +1 -1
  77. package/_cjs/index.js.map +1 -1
  78. package/_cjs/openapi-client/cdpApiClient.js.map +1 -1
  79. package/_cjs/openapi-client/errors.js.map +1 -1
  80. package/_cjs/openapi-client/generated/accounts/accounts.js +50 -0
  81. package/_cjs/openapi-client/generated/accounts/accounts.js.map +1 -0
  82. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +526 -46
  83. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  84. package/_cjs/openapi-client/generated/deposit-destinations/deposit-destinations.js +34 -0
  85. package/_cjs/openapi-client/generated/deposit-destinations/deposit-destinations.js.map +1 -0
  86. package/_cjs/openapi-client/generated/end-user-account-management/end-user-account-management.js +132 -0
  87. package/_cjs/openapi-client/generated/end-user-account-management/end-user-account-management.js.map +1 -0
  88. package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.js +228 -74
  89. package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
  90. package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js +12 -12
  91. package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
  92. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +10 -10
  93. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
  94. package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.js +2 -2
  95. package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
  96. package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
  97. package/_cjs/openapi-client/generated/faucets/faucets.js.map +1 -1
  98. package/_cjs/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
  99. package/_cjs/openapi-client/generated/onramp/onramp.js.map +1 -1
  100. package/_cjs/openapi-client/generated/payment-methods/payment-methods.js +28 -0
  101. package/_cjs/openapi-client/generated/payment-methods/payment-methods.js.map +1 -0
  102. package/_cjs/openapi-client/generated/policy-engine/policy-engine.js +4 -4
  103. package/_cjs/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
  104. package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js +11 -11
  105. package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
  106. package/_cjs/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
  107. package/_cjs/openapi-client/generated/sql-api/sql-api.js +1 -1
  108. package/_cjs/openapi-client/generated/sql-api/sql-api.js.map +1 -1
  109. package/_cjs/openapi-client/generated/transfers/transfers.js +87 -0
  110. package/_cjs/openapi-client/generated/transfers/transfers.js.map +1 -0
  111. package/_cjs/openapi-client/generated/webhooks/webhooks.js +1 -1
  112. package/_cjs/openapi-client/generated/webhooks/webhooks.js.map +1 -1
  113. package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.js +3 -3
  114. package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
  115. package/_cjs/openapi-client/index.js +7 -3
  116. package/_cjs/openapi-client/index.js.map +1 -1
  117. package/_cjs/policies/evmSchema.js +54 -1
  118. package/_cjs/policies/evmSchema.js.map +1 -1
  119. package/_cjs/policies/solanaSchema.js.map +1 -1
  120. package/_cjs/policies/types.js +2 -0
  121. package/_cjs/policies/types.js.map +1 -1
  122. package/_cjs/spend-permissions/constants.js.map +1 -1
  123. package/_cjs/spend-permissions/types.js.map +1 -1
  124. package/_cjs/spend-permissions/utils.js.map +1 -1
  125. package/_cjs/types/calls.js.map +1 -1
  126. package/_cjs/types/contract.js.map +1 -1
  127. package/_cjs/types/misc.js.map +1 -1
  128. package/_cjs/types/multicall.js.map +1 -1
  129. package/_cjs/types/utils.js.map +1 -1
  130. package/_cjs/utils/bigint.js.map +1 -1
  131. package/_cjs/utils/export.js.map +1 -1
  132. package/_cjs/utils/hash.js.map +1 -1
  133. package/_cjs/utils/serializeTransaction.js.map +1 -1
  134. package/_cjs/utils/sortKeys.js.map +1 -1
  135. package/_cjs/utils/uuidV4.js.map +1 -1
  136. package/_cjs/utils/wait.js.map +1 -1
  137. package/_cjs/version.js +1 -1
  138. package/_cjs/version.js.map +1 -1
  139. package/_esm/accounts/evm/chainToNetworkMapper.js.map +1 -1
  140. package/_esm/accounts/evm/eip6492.js.map +1 -1
  141. package/_esm/accounts/evm/getBaseNodeRpcUrl.js.map +1 -1
  142. package/_esm/accounts/evm/networkCapabilities.js.map +1 -1
  143. package/_esm/accounts/evm/networkToChainResolver.js.map +1 -1
  144. package/_esm/accounts/evm/resolveViemClients.js.map +1 -1
  145. package/_esm/accounts/evm/toEvmDelegatedAccount.js.map +1 -1
  146. package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -1
  147. package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -1
  148. package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
  149. package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
  150. package/_esm/accounts/evm/types.js.map +1 -1
  151. package/_esm/accounts/solana/toSolanaAccount.js.map +1 -1
  152. package/_esm/accounts/solana/types.js.map +1 -1
  153. package/_esm/actions/evm/getUserOperation.js.map +1 -1
  154. package/_esm/actions/evm/listSpendPermissions.js.map +1 -1
  155. package/_esm/actions/evm/listTokenBalances.js.map +1 -1
  156. package/_esm/actions/evm/requestFaucet.js.map +1 -1
  157. package/_esm/actions/evm/sendTransaction.js.map +1 -1
  158. package/_esm/actions/evm/sendUserOperation.js.map +1 -1
  159. package/_esm/actions/evm/signAndWrapTypedDataForSmartAccount.js.map +1 -1
  160. package/_esm/actions/evm/spend-permissions/account.use.js.map +1 -1
  161. package/_esm/actions/evm/spend-permissions/resolveSpendPermission.js.map +1 -1
  162. package/_esm/actions/evm/spend-permissions/smartAccount.use.js.map +1 -1
  163. package/_esm/actions/evm/spend-permissions/types.js.map +1 -1
  164. package/_esm/actions/evm/swap/createSwapQuote.js.map +1 -1
  165. package/_esm/actions/evm/swap/getSwapPrice.js.map +1 -1
  166. package/_esm/actions/evm/swap/sendSwapOperation.js.map +1 -1
  167. package/_esm/actions/evm/swap/sendSwapTransaction.js.map +1 -1
  168. package/_esm/actions/evm/swap/types.js.map +1 -1
  169. package/_esm/actions/evm/transfer/accountTransferStrategy.js.map +1 -1
  170. package/_esm/actions/evm/transfer/smartAccountTransferStrategy.js.map +1 -1
  171. package/_esm/actions/evm/transfer/transfer.js.map +1 -1
  172. package/_esm/actions/evm/transfer/transferWithViem.js.map +1 -1
  173. package/_esm/actions/evm/transfer/types.js.map +1 -1
  174. package/_esm/actions/evm/transfer/utils.js.map +1 -1
  175. package/_esm/actions/evm/types.js.map +1 -1
  176. package/_esm/actions/evm/waitForEvmEip7702DelegationStatus.js.map +1 -1
  177. package/_esm/actions/evm/waitForUserOperation.js.map +1 -1
  178. package/_esm/actions/solana/constants.js.map +1 -1
  179. package/_esm/actions/solana/requestFaucet.js.map +1 -1
  180. package/_esm/actions/solana/rpc.js.map +1 -1
  181. package/_esm/actions/solana/sendTransaction.js.map +1 -1
  182. package/_esm/actions/solana/signMessage.js.map +1 -1
  183. package/_esm/actions/solana/signTransaction.js.map +1 -1
  184. package/_esm/actions/solana/transfer.js.map +1 -1
  185. package/_esm/actions/solana/types.js.map +1 -1
  186. package/_esm/actions/solana/utils.js.map +1 -1
  187. package/_esm/actions/webhooks/createWebhookSubscription.js.map +1 -1
  188. package/_esm/actions/webhooks/index.js.map +1 -1
  189. package/_esm/analytics.js.map +1 -1
  190. package/_esm/auth/errors.js.map +1 -1
  191. package/_esm/auth/hooks/axios/index.js.map +1 -1
  192. package/_esm/auth/hooks/axios/withAuth.js.map +1 -1
  193. package/_esm/auth/index.js.map +1 -1
  194. package/_esm/auth/utils/hash.js.map +1 -1
  195. package/_esm/auth/utils/http.js.map +1 -1
  196. package/_esm/auth/utils/index.js.map +1 -1
  197. package/_esm/auth/utils/jwt.js.map +1 -1
  198. package/_esm/auth/utils/ws.js.map +1 -1
  199. package/_esm/client/cdp.js.map +1 -1
  200. package/_esm/client/end-user/endUser.js.map +1 -1
  201. package/_esm/client/end-user/endUser.types.js.map +1 -1
  202. package/_esm/client/end-user/toEndUserAccount.js.map +1 -1
  203. package/_esm/client/evm/evm.js.map +1 -1
  204. package/_esm/client/evm/evm.types.js.map +1 -1
  205. package/_esm/client/policies/index.js.map +1 -1
  206. package/_esm/client/policies/policies.js.map +1 -1
  207. package/_esm/client/policies/policies.types.js.map +1 -1
  208. package/_esm/client/solana/index.js.map +1 -1
  209. package/_esm/client/solana/solana.js.map +1 -1
  210. package/_esm/client/solana/solana.types.js.map +1 -1
  211. package/_esm/client/webhooks/webhooks.js.map +1 -1
  212. package/_esm/constants.js.map +1 -1
  213. package/_esm/errors.js.map +1 -1
  214. package/_esm/index.js.map +1 -1
  215. package/_esm/openapi-client/cdpApiClient.js.map +1 -1
  216. package/_esm/openapi-client/errors.js.map +1 -1
  217. package/_esm/openapi-client/generated/accounts/accounts.js +42 -0
  218. package/_esm/openapi-client/generated/accounts/accounts.js.map +1 -0
  219. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +522 -43
  220. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  221. package/_esm/openapi-client/generated/deposit-destinations/deposit-destinations.js +28 -0
  222. package/_esm/openapi-client/generated/deposit-destinations/deposit-destinations.js.map +1 -0
  223. package/_esm/openapi-client/generated/end-user-account-management/end-user-account-management.js +120 -0
  224. package/_esm/openapi-client/generated/end-user-account-management/end-user-account-management.js.map +1 -0
  225. package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.js +211 -64
  226. package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
  227. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js +12 -12
  228. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
  229. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +10 -10
  230. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
  231. package/_esm/openapi-client/generated/evm-swaps/evm-swaps.js +2 -2
  232. package/_esm/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
  233. package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
  234. package/_esm/openapi-client/generated/faucets/faucets.js.map +1 -1
  235. package/_esm/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
  236. package/_esm/openapi-client/generated/onramp/onramp.js.map +1 -1
  237. package/_esm/openapi-client/generated/payment-methods/payment-methods.js +23 -0
  238. package/_esm/openapi-client/generated/payment-methods/payment-methods.js.map +1 -0
  239. package/_esm/openapi-client/generated/policy-engine/policy-engine.js +4 -4
  240. package/_esm/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
  241. package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js +11 -11
  242. package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
  243. package/_esm/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
  244. package/_esm/openapi-client/generated/sql-api/sql-api.js +1 -1
  245. package/_esm/openapi-client/generated/sql-api/sql-api.js.map +1 -1
  246. package/_esm/openapi-client/generated/transfers/transfers.js +79 -0
  247. package/_esm/openapi-client/generated/transfers/transfers.js.map +1 -0
  248. package/_esm/openapi-client/generated/webhooks/webhooks.js +1 -1
  249. package/_esm/openapi-client/generated/webhooks/webhooks.js.map +1 -1
  250. package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.js +3 -3
  251. package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
  252. package/_esm/openapi-client/index.js +7 -3
  253. package/_esm/openapi-client/index.js.map +1 -1
  254. package/_esm/policies/evmSchema.js +52 -0
  255. package/_esm/policies/evmSchema.js.map +1 -1
  256. package/_esm/policies/solanaSchema.js.map +1 -1
  257. package/_esm/policies/types.js +3 -1
  258. package/_esm/policies/types.js.map +1 -1
  259. package/_esm/spend-permissions/constants.js.map +1 -1
  260. package/_esm/spend-permissions/types.js.map +1 -1
  261. package/_esm/spend-permissions/utils.js.map +1 -1
  262. package/_esm/types/calls.js.map +1 -1
  263. package/_esm/types/contract.js.map +1 -1
  264. package/_esm/types/misc.js.map +1 -1
  265. package/_esm/types/multicall.js.map +1 -1
  266. package/_esm/types/utils.js.map +1 -1
  267. package/_esm/utils/bigint.js.map +1 -1
  268. package/_esm/utils/export.js.map +1 -1
  269. package/_esm/utils/hash.js.map +1 -1
  270. package/_esm/utils/serializeTransaction.js.map +1 -1
  271. package/_esm/utils/sortKeys.js.map +1 -1
  272. package/_esm/utils/uuidV4.js.map +1 -1
  273. package/_esm/utils/wait.js.map +1 -1
  274. package/_esm/version.js +1 -1
  275. package/_esm/version.js.map +1 -1
  276. package/_types/accounts/evm/chainToNetworkMapper.d.ts.map +1 -1
  277. package/_types/accounts/evm/eip6492.d.ts.map +1 -1
  278. package/_types/accounts/evm/getBaseNodeRpcUrl.d.ts.map +1 -1
  279. package/_types/accounts/evm/networkCapabilities.d.ts.map +1 -1
  280. package/_types/accounts/evm/networkToChainResolver.d.ts.map +1 -1
  281. package/_types/accounts/evm/resolveViemClients.d.ts.map +1 -1
  282. package/_types/accounts/evm/toEvmDelegatedAccount.d.ts.map +1 -1
  283. package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -1
  284. package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -1
  285. package/_types/accounts/evm/toNetworkScopedEvmServerAccount.d.ts.map +1 -1
  286. package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts.map +1 -1
  287. package/_types/accounts/evm/types.d.ts.map +1 -1
  288. package/_types/accounts/solana/toSolanaAccount.d.ts.map +1 -1
  289. package/_types/accounts/solana/types.d.ts.map +1 -1
  290. package/_types/actions/evm/getUserOperation.d.ts.map +1 -1
  291. package/_types/actions/evm/listSpendPermissions.d.ts.map +1 -1
  292. package/_types/actions/evm/listTokenBalances.d.ts.map +1 -1
  293. package/_types/actions/evm/requestFaucet.d.ts.map +1 -1
  294. package/_types/actions/evm/sendTransaction.d.ts.map +1 -1
  295. package/_types/actions/evm/sendUserOperation.d.ts.map +1 -1
  296. package/_types/actions/evm/signAndWrapTypedDataForSmartAccount.d.ts.map +1 -1
  297. package/_types/actions/evm/spend-permissions/account.use.d.ts.map +1 -1
  298. package/_types/actions/evm/spend-permissions/resolveSpendPermission.d.ts.map +1 -1
  299. package/_types/actions/evm/spend-permissions/smartAccount.use.d.ts.map +1 -1
  300. package/_types/actions/evm/spend-permissions/types.d.ts.map +1 -1
  301. package/_types/actions/evm/swap/createSwapQuote.d.ts.map +1 -1
  302. package/_types/actions/evm/swap/getSwapPrice.d.ts.map +1 -1
  303. package/_types/actions/evm/swap/sendSwapOperation.d.ts.map +1 -1
  304. package/_types/actions/evm/swap/sendSwapTransaction.d.ts.map +1 -1
  305. package/_types/actions/evm/swap/types.d.ts.map +1 -1
  306. package/_types/actions/evm/transfer/accountTransferStrategy.d.ts.map +1 -1
  307. package/_types/actions/evm/transfer/smartAccountTransferStrategy.d.ts.map +1 -1
  308. package/_types/actions/evm/transfer/transfer.d.ts.map +1 -1
  309. package/_types/actions/evm/transfer/transferWithViem.d.ts.map +1 -1
  310. package/_types/actions/evm/transfer/types.d.ts.map +1 -1
  311. package/_types/actions/evm/transfer/utils.d.ts.map +1 -1
  312. package/_types/actions/evm/types.d.ts.map +1 -1
  313. package/_types/actions/evm/waitForEvmEip7702DelegationStatus.d.ts.map +1 -1
  314. package/_types/actions/evm/waitForUserOperation.d.ts.map +1 -1
  315. package/_types/actions/solana/constants.d.ts.map +1 -1
  316. package/_types/actions/solana/requestFaucet.d.ts.map +1 -1
  317. package/_types/actions/solana/rpc.d.ts.map +1 -1
  318. package/_types/actions/solana/sendTransaction.d.ts.map +1 -1
  319. package/_types/actions/solana/signMessage.d.ts.map +1 -1
  320. package/_types/actions/solana/signTransaction.d.ts.map +1 -1
  321. package/_types/actions/solana/transfer.d.ts.map +1 -1
  322. package/_types/actions/solana/types.d.ts.map +1 -1
  323. package/_types/actions/solana/utils.d.ts.map +1 -1
  324. package/_types/actions/webhooks/createWebhookSubscription.d.ts.map +1 -1
  325. package/_types/actions/webhooks/index.d.ts.map +1 -1
  326. package/_types/analytics.d.ts.map +1 -1
  327. package/_types/auth/errors.d.ts.map +1 -1
  328. package/_types/auth/hooks/axios/index.d.ts.map +1 -1
  329. package/_types/auth/hooks/axios/withAuth.d.ts.map +1 -1
  330. package/_types/auth/index.d.ts.map +1 -1
  331. package/_types/auth/utils/hash.d.ts.map +1 -1
  332. package/_types/auth/utils/http.d.ts.map +1 -1
  333. package/_types/auth/utils/index.d.ts.map +1 -1
  334. package/_types/auth/utils/jwt.d.ts.map +1 -1
  335. package/_types/auth/utils/ws.d.ts.map +1 -1
  336. package/_types/client/cdp.d.ts.map +1 -1
  337. package/_types/client/end-user/endUser.d.ts.map +1 -1
  338. package/_types/client/end-user/endUser.types.d.ts.map +1 -1
  339. package/_types/client/end-user/toEndUserAccount.d.ts.map +1 -1
  340. package/_types/client/evm/evm.d.ts.map +1 -1
  341. package/_types/client/evm/evm.types.d.ts.map +1 -1
  342. package/_types/client/policies/index.d.ts.map +1 -1
  343. package/_types/client/policies/policies.d.ts.map +1 -1
  344. package/_types/client/policies/policies.types.d.ts.map +1 -1
  345. package/_types/client/solana/index.d.ts.map +1 -1
  346. package/_types/client/solana/solana.d.ts.map +1 -1
  347. package/_types/client/solana/solana.types.d.ts.map +1 -1
  348. package/_types/client/webhooks/webhooks.d.ts.map +1 -1
  349. package/_types/constants.d.ts.map +1 -1
  350. package/_types/errors.d.ts.map +1 -1
  351. package/_types/index.d.ts.map +1 -1
  352. package/_types/openapi-client/cdpApiClient.d.ts.map +1 -1
  353. package/_types/openapi-client/errors.d.ts.map +1 -1
  354. package/_types/openapi-client/generated/accounts/accounts.d.ts +42 -0
  355. package/_types/openapi-client/generated/accounts/accounts.d.ts.map +1 -0
  356. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +1933 -269
  357. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
  358. package/_types/openapi-client/generated/deposit-destinations/deposit-destinations.d.ts +30 -0
  359. package/_types/openapi-client/generated/deposit-destinations/deposit-destinations.d.ts.map +1 -0
  360. package/_types/openapi-client/generated/end-user-account-management/end-user-account-management.d.ts +91 -0
  361. package/_types/openapi-client/generated/end-user-account-management/end-user-account-management.d.ts.map +1 -0
  362. package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts +142 -60
  363. package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts.map +1 -1
  364. package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts +12 -12
  365. package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts.map +1 -1
  366. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +10 -10
  367. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -1
  368. package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts +2 -2
  369. package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts.map +1 -1
  370. package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts.map +1 -1
  371. package/_types/openapi-client/generated/faucets/faucets.d.ts.map +1 -1
  372. package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts.map +1 -1
  373. package/_types/openapi-client/generated/onramp/onramp.d.ts.map +1 -1
  374. package/_types/openapi-client/generated/payment-methods/payment-methods.d.ts +31 -0
  375. package/_types/openapi-client/generated/payment-methods/payment-methods.d.ts.map +1 -0
  376. package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts +4 -4
  377. package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts.map +1 -1
  378. package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts +11 -11
  379. package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts.map +1 -1
  380. package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.d.ts.map +1 -1
  381. package/_types/openapi-client/generated/sql-api/sql-api.d.ts +1 -1
  382. package/_types/openapi-client/generated/sql-api/sql-api.d.ts.map +1 -1
  383. package/_types/openapi-client/generated/transfers/transfers.d.ts +74 -0
  384. package/_types/openapi-client/generated/transfers/transfers.d.ts.map +1 -0
  385. package/_types/openapi-client/generated/webhooks/webhooks.d.ts +1 -1
  386. package/_types/openapi-client/generated/webhooks/webhooks.d.ts.map +1 -1
  387. package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts +3 -3
  388. package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts.map +1 -1
  389. package/_types/openapi-client/index.d.ts +14 -10
  390. package/_types/openapi-client/index.d.ts.map +1 -1
  391. package/_types/policies/evmSchema.d.ts +884 -39
  392. package/_types/policies/evmSchema.d.ts.map +1 -1
  393. package/_types/policies/solanaSchema.d.ts +20 -20
  394. package/_types/policies/solanaSchema.d.ts.map +1 -1
  395. package/_types/policies/types.d.ts +1996 -629
  396. package/_types/policies/types.d.ts.map +1 -1
  397. package/_types/spend-permissions/constants.d.ts.map +1 -1
  398. package/_types/spend-permissions/types.d.ts.map +1 -1
  399. package/_types/spend-permissions/utils.d.ts.map +1 -1
  400. package/_types/types/calls.d.ts.map +1 -1
  401. package/_types/types/contract.d.ts.map +1 -1
  402. package/_types/types/misc.d.ts.map +1 -1
  403. package/_types/types/multicall.d.ts.map +1 -1
  404. package/_types/types/utils.d.ts.map +1 -1
  405. package/_types/utils/bigint.d.ts.map +1 -1
  406. package/_types/utils/export.d.ts.map +1 -1
  407. package/_types/utils/hash.d.ts.map +1 -1
  408. package/_types/utils/serializeTransaction.d.ts.map +1 -1
  409. package/_types/utils/sortKeys.d.ts.map +1 -1
  410. package/_types/utils/uuidV4.d.ts.map +1 -1
  411. package/_types/utils/wait.d.ts.map +1 -1
  412. package/_types/version.d.ts +1 -1
  413. package/_types/version.d.ts.map +1 -1
  414. package/package.json +24 -3
  415. package/{auth → src/auth}/README.md +3 -3
  416. package/src/openapi-client/generated/accounts/accounts.ts +103 -0
  417. package/{openapi-client → src/openapi-client}/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +2368 -363
  418. package/src/openapi-client/generated/deposit-destinations/deposit-destinations.ts +72 -0
  419. 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
  420. package/{openapi-client/generated/embedded-wallets/embedded-wallets.ts → src/openapi-client/generated/end-user-accounts/end-user-accounts.ts} +11 -11
  421. package/{openapi-client → src/openapi-client}/generated/evm-accounts/evm-accounts.ts +12 -12
  422. package/{openapi-client → src/openapi-client}/generated/evm-smart-accounts/evm-smart-accounts.ts +10 -10
  423. package/{openapi-client → src/openapi-client}/generated/evm-swaps/evm-swaps.ts +2 -2
  424. package/src/openapi-client/generated/payment-methods/payment-methods.ts +53 -0
  425. package/{openapi-client → src/openapi-client}/generated/policy-engine/policy-engine.ts +4 -4
  426. package/{openapi-client → src/openapi-client}/generated/solana-accounts/solana-accounts.ts +11 -11
  427. package/{openapi-client → src/openapi-client}/generated/sql-api/sql-api.ts +1 -1
  428. package/src/openapi-client/generated/transfers/transfers.ts +131 -0
  429. package/{openapi-client → src/openapi-client}/generated/webhooks/webhooks.ts +1 -1
  430. package/{openapi-client → src/openapi-client}/generated/x402-facilitator/x402-facilitator.ts +3 -3
  431. package/{openapi-client → src/openapi-client}/index.ts +7 -3
  432. package/{policies → src/policies}/evmSchema.ts +63 -0
  433. package/{policies → src/policies}/types.ts +4 -0
  434. package/src/version.ts +1 -0
  435. package/CHANGELOG.md +0 -637
  436. package/_cjs/openapi-client/generated/embedded-wallets/embedded-wallets.js +0 -286
  437. package/_cjs/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +0 -1
  438. package/_esm/openapi-client/generated/embedded-wallets/embedded-wallets.js +0 -267
  439. package/_esm/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +0 -1
  440. package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts +0 -173
  441. package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts.map +0 -1
  442. package/version.ts +0 -1
  443. /package/{accounts → src/accounts}/evm/chainToNetworkMapper.ts +0 -0
  444. /package/{accounts → src/accounts}/evm/eip6492.ts +0 -0
  445. /package/{accounts → src/accounts}/evm/getBaseNodeRpcUrl.ts +0 -0
  446. /package/{accounts → src/accounts}/evm/networkCapabilities.ts +0 -0
  447. /package/{accounts → src/accounts}/evm/networkToChainResolver.ts +0 -0
  448. /package/{accounts → src/accounts}/evm/resolveViemClients.ts +0 -0
  449. /package/{accounts → src/accounts}/evm/toEvmDelegatedAccount.ts +0 -0
  450. /package/{accounts → src/accounts}/evm/toEvmServerAccount.ts +0 -0
  451. /package/{accounts → src/accounts}/evm/toEvmSmartAccount.ts +0 -0
  452. /package/{accounts → src/accounts}/evm/toNetworkScopedEvmServerAccount.ts +0 -0
  453. /package/{accounts → src/accounts}/evm/toNetworkScopedEvmSmartAccount.ts +0 -0
  454. /package/{accounts → src/accounts}/evm/types.ts +0 -0
  455. /package/{accounts → src/accounts}/solana/toSolanaAccount.ts +0 -0
  456. /package/{accounts → src/accounts}/solana/types.ts +0 -0
  457. /package/{actions → src/actions}/evm/getUserOperation.ts +0 -0
  458. /package/{actions → src/actions}/evm/listSpendPermissions.ts +0 -0
  459. /package/{actions → src/actions}/evm/listTokenBalances.ts +0 -0
  460. /package/{actions → src/actions}/evm/requestFaucet.ts +0 -0
  461. /package/{actions → src/actions}/evm/sendTransaction.ts +0 -0
  462. /package/{actions → src/actions}/evm/sendUserOperation.ts +0 -0
  463. /package/{actions → src/actions}/evm/signAndWrapTypedDataForSmartAccount.ts +0 -0
  464. /package/{actions → src/actions}/evm/spend-permissions/account.use.ts +0 -0
  465. /package/{actions → src/actions}/evm/spend-permissions/resolveSpendPermission.ts +0 -0
  466. /package/{actions → src/actions}/evm/spend-permissions/smartAccount.use.ts +0 -0
  467. /package/{actions → src/actions}/evm/spend-permissions/types.ts +0 -0
  468. /package/{actions → src/actions}/evm/swap/createSwapQuote.ts +0 -0
  469. /package/{actions → src/actions}/evm/swap/getSwapPrice.ts +0 -0
  470. /package/{actions → src/actions}/evm/swap/sendSwapOperation.ts +0 -0
  471. /package/{actions → src/actions}/evm/swap/sendSwapTransaction.ts +0 -0
  472. /package/{actions → src/actions}/evm/swap/types.ts +0 -0
  473. /package/{actions → src/actions}/evm/transfer/accountTransferStrategy.ts +0 -0
  474. /package/{actions → src/actions}/evm/transfer/smartAccountTransferStrategy.ts +0 -0
  475. /package/{actions → src/actions}/evm/transfer/transfer.ts +0 -0
  476. /package/{actions → src/actions}/evm/transfer/transferWithViem.ts +0 -0
  477. /package/{actions → src/actions}/evm/transfer/types.ts +0 -0
  478. /package/{actions → src/actions}/evm/transfer/utils.ts +0 -0
  479. /package/{actions → src/actions}/evm/types.ts +0 -0
  480. /package/{actions → src/actions}/evm/waitForEvmEip7702DelegationStatus.ts +0 -0
  481. /package/{actions → src/actions}/evm/waitForUserOperation.ts +0 -0
  482. /package/{actions → src/actions}/solana/constants.ts +0 -0
  483. /package/{actions → src/actions}/solana/requestFaucet.ts +0 -0
  484. /package/{actions → src/actions}/solana/rpc.ts +0 -0
  485. /package/{actions → src/actions}/solana/sendTransaction.ts +0 -0
  486. /package/{actions → src/actions}/solana/signMessage.ts +0 -0
  487. /package/{actions → src/actions}/solana/signTransaction.ts +0 -0
  488. /package/{actions → src/actions}/solana/transfer.ts +0 -0
  489. /package/{actions → src/actions}/solana/types.ts +0 -0
  490. /package/{actions → src/actions}/solana/utils.ts +0 -0
  491. /package/{actions → src/actions}/webhooks/createWebhookSubscription.ts +0 -0
  492. /package/{actions → src/actions}/webhooks/index.ts +0 -0
  493. /package/{analytics.ts → src/analytics.ts} +0 -0
  494. /package/{auth → src/auth}/errors.ts +0 -0
  495. /package/{auth → src/auth}/hooks/axios/index.ts +0 -0
  496. /package/{auth → src/auth}/hooks/axios/withAuth.ts +0 -0
  497. /package/{auth → src/auth}/index.ts +0 -0
  498. /package/{auth → src/auth}/utils/hash.ts +0 -0
  499. /package/{auth → src/auth}/utils/http.ts +0 -0
  500. /package/{auth → src/auth}/utils/index.ts +0 -0
  501. /package/{auth → src/auth}/utils/jwt.ts +0 -0
  502. /package/{auth → src/auth}/utils/ws.ts +0 -0
  503. /package/{client → src/client}/cdp.ts +0 -0
  504. /package/{client → src/client}/end-user/endUser.ts +0 -0
  505. /package/{client → src/client}/end-user/endUser.types.ts +0 -0
  506. /package/{client → src/client}/end-user/toEndUserAccount.ts +0 -0
  507. /package/{client → src/client}/evm/evm.ts +0 -0
  508. /package/{client → src/client}/evm/evm.types.ts +0 -0
  509. /package/{client → src/client}/policies/index.ts +0 -0
  510. /package/{client → src/client}/policies/policies.ts +0 -0
  511. /package/{client → src/client}/policies/policies.types.ts +0 -0
  512. /package/{client → src/client}/solana/index.ts +0 -0
  513. /package/{client → src/client}/solana/solana.ts +0 -0
  514. /package/{client → src/client}/solana/solana.types.ts +0 -0
  515. /package/{client → src/client}/webhooks/webhooks.ts +0 -0
  516. /package/{constants.ts → src/constants.ts} +0 -0
  517. /package/{errors.ts → src/errors.ts} +0 -0
  518. /package/{index.ts → src/index.ts} +0 -0
  519. /package/{openapi-client → src/openapi-client}/cdpApiClient.ts +0 -0
  520. /package/{openapi-client → src/openapi-client}/errors.ts +0 -0
  521. /package/{openapi-client → src/openapi-client}/generated/evm-token-balances/evm-token-balances.ts +0 -0
  522. /package/{openapi-client → src/openapi-client}/generated/faucets/faucets.ts +0 -0
  523. /package/{openapi-client → src/openapi-client}/generated/onchain-data/onchain-data.ts +0 -0
  524. /package/{openapi-client → src/openapi-client}/generated/onramp/onramp.ts +0 -0
  525. /package/{openapi-client → src/openapi-client}/generated/solana-token-balances/solana-token-balances.ts +0 -0
  526. /package/{policies → src/policies}/solanaSchema.ts +0 -0
  527. /package/{spend-permissions → src/spend-permissions}/constants.ts +0 -0
  528. /package/{spend-permissions → src/spend-permissions}/types.ts +0 -0
  529. /package/{spend-permissions → src/spend-permissions}/utils.ts +0 -0
  530. /package/{types → src/types}/calls.ts +0 -0
  531. /package/{types → src/types}/contract.ts +0 -0
  532. /package/{types → src/types}/misc.ts +0 -0
  533. /package/{types → src/types}/multicall.ts +0 -0
  534. /package/{types → src/types}/utils.ts +0 -0
  535. /package/{utils → src/utils}/bigint.ts +0 -0
  536. /package/{utils → src/utils}/export.ts +0 -0
  537. /package/{utils → src/utils}/hash.ts +0 -0
  538. /package/{utils → src/utils}/serializeTransaction.ts +0 -0
  539. /package/{utils → src/utils}/sortKeys.ts +0 -0
  540. /package/{utils → src/utils}/uuidV4.ts +0 -0
  541. /package/{utils → src/utils}/wait.ts +0 -0
@@ -1,286 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
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
- const cdpApiClient_js_1 = require("../../cdpApiClient.js");
5
- /**
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 a transaction with end user EVM account
11
- */
12
- const signEvmTransactionWithEndUserAccount = (userId, signEvmTransactionWithEndUserAccountBody, params, options) => {
13
- return (0, cdpApiClient_js_1.cdpApiClient)({
14
- url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/transaction`,
15
- method: "POST",
16
- headers: { "Content-Type": "application/json" },
17
- data: signEvmTransactionWithEndUserAccountBody,
18
- params,
19
- }, options);
20
- };
21
- exports.signEvmTransactionWithEndUserAccount = signEvmTransactionWithEndUserAccount;
22
- /**
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 a transaction with end user EVM account
50
- */
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);
59
- };
60
- exports.sendEvmTransactionWithEndUserAccount = sendEvmTransactionWithEndUserAccount;
61
- /**
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
65
- */
66
- const sendEvmAssetWithEndUserAccount = (userId, address, asset, sendEvmAssetWithEndUserAccountBody, params, options) => {
67
- return (0, cdpApiClient_js_1.cdpApiClient)({
68
- url: `/v2/embedded-wallet-api/end-users/${userId}/evm/${address}/send/${asset}`,
69
- method: "POST",
70
- headers: { "Content-Type": "application/json" },
71
- data: sendEvmAssetWithEndUserAccountBody,
72
- params,
73
- }, options);
74
- };
75
- exports.sendEvmAssetWithEndUserAccount = sendEvmAssetWithEndUserAccount;
76
- /**
77
- * Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given end user EVM account.
78
-
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 an EIP-191 message with 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 with end user EVM account
95
- */
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);
104
- };
105
- exports.signEvmTypedDataWithEndUserAccount = signEvmTypedDataWithEndUserAccount;
106
- /**
107
- * Returns the active delegation for the specified end user, if one exists. This operation can be performed by the end user themselves or by a developer using their API key.
108
- * @summary Get delegation for end user
109
- */
110
- const getDelegationForEndUser = (userId, params, options) => {
111
- return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/embedded-wallet-api/end-users/${userId}/delegation`, method: "GET", params }, options);
112
- };
113
- exports.getDelegationForEndUser = getDelegationForEndUser;
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 an end user account
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 an end user account
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 an end user account
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.
174
-
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
180
-
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
183
- */
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);
192
- };
193
- exports.createEvmEip7702DelegationWithEndUserAccount = createEvmEip7702DelegationWithEndUserAccount;
194
- /**
195
- * Prepares, signs, and sends a user operation for an end user's Smart Account.
196
- * @summary Send a user operation for end user Smart Account
197
- */
198
- const sendUserOperationWithEndUserAccount = (userId, address, sendUserOperationWithEndUserAccountBody, params, options) => {
199
- return (0, cdpApiClient_js_1.cdpApiClient)({
200
- url: `/v2/embedded-wallet-api/end-users/${userId}/evm/smart-accounts/${address}/send`,
201
- method: "POST",
202
- headers: { "Content-Type": "application/json" },
203
- data: sendUserOperationWithEndUserAccountBody,
204
- params,
205
- }, options);
206
- };
207
- exports.sendUserOperationWithEndUserAccount = sendUserOperationWithEndUserAccount;
208
- /**
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 a Base64 encoded message
212
- */
213
- const signSolanaMessageWithEndUserAccount = (userId, signSolanaMessageWithEndUserAccountBody, params, options) => {
214
- return (0, cdpApiClient_js_1.cdpApiClient)({
215
- url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/message`,
216
- method: "POST",
217
- headers: { "Content-Type": "application/json" },
218
- data: signSolanaMessageWithEndUserAccountBody,
219
- params,
220
- }, options);
221
- };
222
- exports.signSolanaMessageWithEndUserAccount = signSolanaMessageWithEndUserAccount;
223
- /**
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 a transaction with end user Solana account
232
- */
233
- const signSolanaTransactionWithEndUserAccount = (userId, signSolanaTransactionWithEndUserAccountBody, params, options) => {
234
- return (0, cdpApiClient_js_1.cdpApiClient)({
235
- url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/transaction`,
236
- method: "POST",
237
- headers: { "Content-Type": "application/json" },
238
- data: signSolanaTransactionWithEndUserAccountBody,
239
- params,
240
- }, options);
241
- };
242
- exports.signSolanaTransactionWithEndUserAccount = signSolanaTransactionWithEndUserAccount;
243
- /**
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 a transaction with 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
275
- */
276
- const sendSolanaAssetWithEndUserAccount = (userId, address, asset, sendSolanaAssetWithEndUserAccountBody, params, options) => {
277
- return (0, cdpApiClient_js_1.cdpApiClient)({
278
- url: `/v2/embedded-wallet-api/end-users/${userId}/solana/${address}/send/${asset}`,
279
- method: "POST",
280
- headers: { "Content-Type": "application/json" },
281
- data: sendSolanaAssetWithEndUserAccountBody,
282
- params,
283
- }, options);
284
- };
285
- exports.sendSolanaAssetWithEndUserAccount = sendSolanaAssetWithEndUserAccount;
286
- //# sourceMappingURL=embedded-wallets.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"embedded-wallets.js","sourceRoot":"","sources":["../../../../openapi-client/generated/embedded-wallets/embedded-wallets.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,8B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ACR,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,iCAAiC,qCAkB5C"}
@@ -1,267 +0,0 @@
1
- import { cdpApiClient } from "../../cdpApiClient.js";
2
- /**
3
- * Signs a transaction with the given end user EVM account.
4
- The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
5
-
6
- 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.
7
- * @summary Sign a transaction with end user EVM account
8
- */
9
- export const signEvmTransactionWithEndUserAccount = (userId, signEvmTransactionWithEndUserAccountBody, params, options) => {
10
- return cdpApiClient({
11
- url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/transaction`,
12
- method: "POST",
13
- headers: { "Content-Type": "application/json" },
14
- data: signEvmTransactionWithEndUserAccountBody,
15
- params,
16
- }, options);
17
- };
18
- /**
19
- * 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/).
20
-
21
- The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md).
22
-
23
-
24
- **Transaction fields and API behavior**
25
-
26
- - `to` *(Required)*: The address of the contract or account to send the transaction to.
27
- - `chainId` *(Ignored)*: The value of the `chainId` field in the transaction is ignored.
28
- The transaction will be sent to the network indicated by the `network` field in the request body.
29
-
30
- - `nonce` *(Optional)*: The nonce to use for the transaction. If not provided, the API will assign
31
- a nonce to the transaction based on the current state of the account.
32
-
33
- - `maxPriorityFeePerGas` *(Optional)*: The maximum priority fee per gas to use for the transaction.
34
- If not provided, the API will estimate a value based on current network conditions.
35
-
36
- - `maxFeePerGas` *(Optional)*: The maximum fee per gas to use for the transaction.
37
- If not provided, the API will estimate a value based on current network conditions.
38
-
39
- - `gasLimit` *(Optional)*: The gas limit to use for the transaction. If not provided, the API will estimate a value
40
- based on the `to` and `data` fields of the transaction.
41
-
42
- - `value` *(Optional)*: The amount of ETH, in wei, to send with the transaction.
43
- - `data` *(Optional)*: The data to send with the transaction; only used for contract calls.
44
- - `accessList` *(Optional)*: The access list to use for the transaction.
45
- * @summary Send a transaction with end user EVM account
46
- */
47
- export const sendEvmTransactionWithEndUserAccount = (userId, sendEvmTransactionWithEndUserAccountBody, params, options) => {
48
- return cdpApiClient({
49
- url: `/v2/embedded-wallet-api/end-users/${userId}/evm/send/transaction`,
50
- method: "POST",
51
- headers: { "Content-Type": "application/json" },
52
- data: sendEvmTransactionWithEndUserAccountBody,
53
- params,
54
- }, options);
55
- };
56
- /**
57
- * 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.
58
- The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50").
59
- * @summary Send USDC on EVM
60
- */
61
- export const sendEvmAssetWithEndUserAccount = (userId, address, asset, sendEvmAssetWithEndUserAccountBody, params, options) => {
62
- return cdpApiClient({
63
- url: `/v2/embedded-wallet-api/end-users/${userId}/evm/${address}/send/${asset}`,
64
- method: "POST",
65
- headers: { "Content-Type": "application/json" },
66
- data: sendEvmAssetWithEndUserAccountBody,
67
- params,
68
- }, options);
69
- };
70
- /**
71
- * Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given end user EVM account.
72
-
73
- Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)>` before being signed.
74
- * @summary Sign an EIP-191 message with end user EVM account
75
- */
76
- export const signEvmMessageWithEndUserAccount = (userId, signEvmMessageWithEndUserAccountBody, params, options) => {
77
- return cdpApiClient({
78
- url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/message`,
79
- method: "POST",
80
- headers: { "Content-Type": "application/json" },
81
- data: signEvmMessageWithEndUserAccountBody,
82
- params,
83
- }, options);
84
- };
85
- /**
86
- * Signs [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data with the given end user EVM account.
87
- * @summary Sign EIP-712 typed data with end user EVM account
88
- */
89
- export const signEvmTypedDataWithEndUserAccount = (userId, signEvmTypedDataWithEndUserAccountBody, params, options) => {
90
- return cdpApiClient({
91
- url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/typed-data`,
92
- method: "POST",
93
- headers: { "Content-Type": "application/json" },
94
- data: signEvmTypedDataWithEndUserAccountBody,
95
- params,
96
- }, options);
97
- };
98
- /**
99
- * 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.
100
- * @summary Get delegation for end user
101
- */
102
- export const getDelegationForEndUser = (userId, params, options) => {
103
- return cdpApiClient({ url: `/v2/embedded-wallet-api/end-users/${userId}/delegation`, method: "GET", params }, options);
104
- };
105
- /**
106
- * 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.
107
- * @summary Revoke delegation for end user
108
- */
109
- export const revokeDelegationForEndUser = (userId, revokeDelegationForEndUserBody, params, options) => {
110
- return cdpApiClient({
111
- url: `/v2/embedded-wallet-api/end-users/${userId}/delegation`,
112
- method: "DELETE",
113
- headers: { "Content-Type": "application/json" },
114
- data: revokeDelegationForEndUserBody,
115
- params,
116
- }, options);
117
- };
118
- /**
119
- * 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.
120
- 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.
121
- 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.
122
- * @summary Create account-scoped delegation for an end user account
123
- */
124
- export const createDelegationForEndUserAccount = (userId, address, createDelegationForEndUserAccountBody, params, options) => {
125
- return cdpApiClient({
126
- url: `/v2/embedded-wallet-api/end-users/${userId}/address/${address}/delegation`,
127
- method: "POST",
128
- headers: { "Content-Type": "application/json" },
129
- data: createDelegationForEndUserAccountBody,
130
- params,
131
- }, options);
132
- };
133
- /**
134
- * Returns the active account-scoped delegation for the specified end user account, if one exists. Useful for showing delegation status in a UI.
135
- When the address corresponds to an EVM Smart Account, this returns the delegation for the Smart Account's owner EOA.
136
- * @summary Get account-scoped delegation for an end user account
137
- */
138
- export const getDelegationForEndUserAccount = (userId, address, params, options) => {
139
- return cdpApiClient({
140
- url: `/v2/embedded-wallet-api/end-users/${userId}/address/${address}/delegation`,
141
- method: "GET",
142
- params,
143
- }, options);
144
- };
145
- /**
146
- * 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.
147
- When the address corresponds to an EVM Smart Account, this revokes the delegation for the Smart Account's owner EOA.
148
- * @summary Revoke account-scoped delegation for an end user account
149
- */
150
- export const revokeDelegationForEndUserAccount = (userId, address, revokeDelegationForEndUserAccountBody, params, options) => {
151
- return cdpApiClient({
152
- url: `/v2/embedded-wallet-api/end-users/${userId}/address/${address}/delegation`,
153
- method: "DELETE",
154
- headers: { "Content-Type": "application/json" },
155
- data: revokeDelegationForEndUserAccountBody,
156
- params,
157
- }, options);
158
- };
159
- /**
160
- * Creates an EIP-7702 delegation for an end user's EVM EOA account, upgrading it with smart account capabilities.
161
-
162
- This endpoint:
163
- - Retrieves delegation artifacts from onchain
164
- - Signs the EIP-7702 authorization for delegation
165
- - Assembles and submits a Type 4 transaction
166
- - Creates an associated smart account object
167
-
168
- The delegation allows the EVM EOA to be used as a smart account, which enables batched transactions and gas sponsorship via paymaster.
169
- * @summary Create EIP-7702 delegation for end user EVM account
170
- */
171
- export const createEvmEip7702DelegationWithEndUserAccount = (userId, createEvmEip7702DelegationWithEndUserAccountBody, params, options) => {
172
- return cdpApiClient({
173
- url: `/v2/embedded-wallet-api/end-users/${userId}/evm/eip7702/delegation`,
174
- method: "POST",
175
- headers: { "Content-Type": "application/json" },
176
- data: createEvmEip7702DelegationWithEndUserAccountBody,
177
- params,
178
- }, options);
179
- };
180
- /**
181
- * Prepares, signs, and sends a user operation for an end user's Smart Account.
182
- * @summary Send a user operation for end user Smart Account
183
- */
184
- export const sendUserOperationWithEndUserAccount = (userId, address, sendUserOperationWithEndUserAccountBody, params, options) => {
185
- return cdpApiClient({
186
- url: `/v2/embedded-wallet-api/end-users/${userId}/evm/smart-accounts/${address}/send`,
187
- method: "POST",
188
- headers: { "Content-Type": "application/json" },
189
- data: sendUserOperationWithEndUserAccountBody,
190
- params,
191
- }, options);
192
- };
193
- /**
194
- * Signs an arbitrary Base64 encoded message with the given Solana account.
195
- **WARNING:** Never sign a message that you didn't generate as it may put your funds at risk.
196
- * @summary Sign a Base64 encoded message
197
- */
198
- export const signSolanaMessageWithEndUserAccount = (userId, signSolanaMessageWithEndUserAccountBody, params, options) => {
199
- return cdpApiClient({
200
- url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/message`,
201
- method: "POST",
202
- headers: { "Content-Type": "application/json" },
203
- data: signSolanaMessageWithEndUserAccountBody,
204
- params,
205
- }, options);
206
- };
207
- /**
208
- * Signs a transaction with the given end user Solana account.
209
- The unsigned transaction should be serialized into a byte array and then encoded as base64.
210
- **Transaction types**
211
- The following transaction types are supported:
212
- * [Legacy transactions](https://solana-labs.github.io/solana-web3.js/classes/Transaction.html)
213
- * [Versioned transactions](https://solana-labs.github.io/solana-web3.js/classes/VersionedTransaction.html)
214
- The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
215
- * @summary Sign a transaction with end user Solana account
216
- */
217
- export const signSolanaTransactionWithEndUserAccount = (userId, signSolanaTransactionWithEndUserAccountBody, params, options) => {
218
- return cdpApiClient({
219
- url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/transaction`,
220
- method: "POST",
221
- headers: { "Content-Type": "application/json" },
222
- data: signSolanaTransactionWithEndUserAccountBody,
223
- params,
224
- }, options);
225
- };
226
- /**
227
- * Signs a transaction with the given end user Solana account and sends it to the indicated supported network.
228
- 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.
229
- The unsigned transaction should be serialized into a byte array and then encoded as base64.
230
- **Transaction types**
231
- The following transaction types are supported:
232
- * [Legacy transactions](https://solana.com/developers/guides/advanced/versions#current-transaction-versions)
233
- * [Versioned transactions](https://solana.com/developers/guides/advanced/versions)
234
- **Instruction Batching**
235
- 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.
236
- **Network Support**
237
- The following Solana networks are supported:
238
- * `solana` - Solana Mainnet
239
- * `solana-devnet` - Solana Devnet
240
- The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
241
- * @summary Send a transaction with end user Solana account
242
- */
243
- export const sendSolanaTransactionWithEndUserAccount = (userId, sendSolanaTransactionWithEndUserAccountBody, params, options) => {
244
- return cdpApiClient({
245
- url: `/v2/embedded-wallet-api/end-users/${userId}/solana/send/transaction`,
246
- method: "POST",
247
- headers: { "Content-Type": "application/json" },
248
- data: sendSolanaTransactionWithEndUserAccountBody,
249
- params,
250
- }, options);
251
- };
252
- /**
253
- * 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.
254
- The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50").
255
- Use the optional `createRecipientAta` parameter to control whether the sender pays for creating the recipient's Associated Token Account if it doesn't exist.
256
- * @summary Send USDC on Solana
257
- */
258
- export const sendSolanaAssetWithEndUserAccount = (userId, address, asset, sendSolanaAssetWithEndUserAccountBody, params, options) => {
259
- return cdpApiClient({
260
- url: `/v2/embedded-wallet-api/end-users/${userId}/solana/${address}/send/${asset}`,
261
- method: "POST",
262
- headers: { "Content-Type": "application/json" },
263
- data: sendSolanaAssetWithEndUserAccountBody,
264
- params,
265
- }, options);
266
- };
267
- //# sourceMappingURL=embedded-wallets.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"embedded-wallets.js","sourceRoot":"","sources":["../../../../openapi-client/generated/embedded-wallets/embedded-wallets.ts"],"names":[],"mappings":"AAuDA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAClD,MAAc,EACd,wCAAkF,EAClF,MAAmD,EACnD,OAAuF,EACvF,EAAE;IACF,OAAO,YAAY,CACjB;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;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAClD,MAAc,EACd,wCAAkF,EAClF,MAAmD,EACnD,OAAuF,EACvF,EAAE;IACF,OAAO,YAAY,CACjB;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;AACF;;;;GAIG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAC5C,MAAc,EACd,OAA0B,EAC1B,KAAa,EACb,kCAAsE,EACtE,MAA6C,EAC7C,OAAiF,EACjF,EAAE;IACF,OAAO,YAAY,CACjB;QACE,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