@distilled.cloud/coinbase 0.17.0 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/lib/credentials.d.ts +1 -1
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +16 -10
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.d.ts +51 -0
  6. package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.d.ts.map +1 -0
  7. package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js +62 -0
  8. package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js.map +1 -0
  9. package/lib/operations/getDelegationForEndUser.d.ts +25 -0
  10. package/lib/operations/getDelegationForEndUser.d.ts.map +1 -0
  11. package/lib/operations/getDelegationForEndUser.js +31 -0
  12. package/lib/operations/getDelegationForEndUser.js.map +1 -0
  13. package/lib/operations/revokeDelegationForEndUser.d.ts +32 -0
  14. package/lib/operations/revokeDelegationForEndUser.d.ts.map +1 -0
  15. package/lib/operations/revokeDelegationForEndUser.js +40 -0
  16. package/lib/operations/revokeDelegationForEndUser.js.map +1 -0
  17. package/lib/operations/sendEvmAssetWithEndUserAccount.d.ts +58 -0
  18. package/lib/operations/sendEvmAssetWithEndUserAccount.d.ts.map +1 -0
  19. package/lib/operations/sendEvmAssetWithEndUserAccount.js +68 -0
  20. package/lib/operations/sendEvmAssetWithEndUserAccount.js.map +1 -0
  21. package/lib/operations/sendEvmTransactionWithEndUserAccount.d.ts +61 -0
  22. package/lib/operations/sendEvmTransactionWithEndUserAccount.d.ts.map +1 -0
  23. package/lib/operations/sendEvmTransactionWithEndUserAccount.js +76 -0
  24. package/lib/operations/sendEvmTransactionWithEndUserAccount.js.map +1 -0
  25. package/lib/operations/sendSolanaAssetWithEndUserAccount.d.ts +57 -0
  26. package/lib/operations/sendSolanaAssetWithEndUserAccount.d.ts.map +1 -0
  27. package/lib/operations/sendSolanaAssetWithEndUserAccount.js +56 -0
  28. package/lib/operations/sendSolanaAssetWithEndUserAccount.js.map +1 -0
  29. package/lib/operations/sendSolanaTransactionWithEndUserAccount.d.ts +60 -0
  30. package/lib/operations/sendSolanaTransactionWithEndUserAccount.d.ts.map +1 -0
  31. package/lib/operations/sendSolanaTransactionWithEndUserAccount.js +62 -0
  32. package/lib/operations/sendSolanaTransactionWithEndUserAccount.js.map +1 -0
  33. package/lib/operations/sendUserOperationWithEndUserAccount.d.ts +100 -0
  34. package/lib/operations/sendUserOperationWithEndUserAccount.d.ts.map +1 -0
  35. package/lib/operations/sendUserOperationWithEndUserAccount.js +105 -0
  36. package/lib/operations/sendUserOperationWithEndUserAccount.js.map +1 -0
  37. package/lib/operations/signEvmMessageWithEndUserAccount.d.ts +44 -0
  38. package/lib/operations/signEvmMessageWithEndUserAccount.d.ts.map +1 -0
  39. package/lib/operations/signEvmMessageWithEndUserAccount.js +48 -0
  40. package/lib/operations/signEvmMessageWithEndUserAccount.js.map +1 -0
  41. package/lib/operations/signEvmTransactionWithEndUserAccount.d.ts +45 -0
  42. package/lib/operations/signEvmTransactionWithEndUserAccount.d.ts.map +1 -0
  43. package/lib/operations/signEvmTransactionWithEndUserAccount.js +49 -0
  44. package/lib/operations/signEvmTransactionWithEndUserAccount.js.map +1 -0
  45. package/lib/operations/signEvmTypedDataWithEndUserAccount.d.ts +65 -0
  46. package/lib/operations/signEvmTypedDataWithEndUserAccount.d.ts.map +1 -0
  47. package/lib/operations/signEvmTypedDataWithEndUserAccount.js +58 -0
  48. package/lib/operations/signEvmTypedDataWithEndUserAccount.js.map +1 -0
  49. package/lib/operations/signSolanaMessageWithEndUserAccount.d.ts +44 -0
  50. package/lib/operations/signSolanaMessageWithEndUserAccount.d.ts.map +1 -0
  51. package/lib/operations/signSolanaMessageWithEndUserAccount.js +48 -0
  52. package/lib/operations/signSolanaMessageWithEndUserAccount.js.map +1 -0
  53. package/lib/operations/signSolanaTransactionWithEndUserAccount.d.ts +49 -0
  54. package/lib/operations/signSolanaTransactionWithEndUserAccount.d.ts.map +1 -0
  55. package/lib/operations/signSolanaTransactionWithEndUserAccount.js +53 -0
  56. package/lib/operations/signSolanaTransactionWithEndUserAccount.js.map +1 -0
  57. package/package.json +2 -2
  58. package/src/credentials.ts +24 -10
  59. package/src/operations/createEvmEip7702DelegationWithEndUserAccount.ts +70 -0
  60. package/src/operations/getDelegationForEndUser.ts +41 -0
  61. package/src/operations/revokeDelegationForEndUser.ts +50 -0
  62. package/src/operations/sendEvmAssetWithEndUserAccount.ts +76 -0
  63. package/src/operations/sendEvmTransactionWithEndUserAccount.ts +84 -0
  64. package/src/operations/sendSolanaAssetWithEndUserAccount.ts +64 -0
  65. package/src/operations/sendSolanaTransactionWithEndUserAccount.ts +70 -0
  66. package/src/operations/sendUserOperationWithEndUserAccount.ts +123 -0
  67. package/src/operations/signEvmMessageWithEndUserAccount.ts +56 -0
  68. package/src/operations/signEvmTransactionWithEndUserAccount.ts +57 -0
  69. package/src/operations/signEvmTypedDataWithEndUserAccount.ts +66 -0
  70. package/src/operations/signSolanaMessageWithEndUserAccount.ts +56 -0
  71. package/src/operations/signSolanaTransactionWithEndUserAccount.ts +61 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendEvmTransactionWithEndUserAccount.js","sourceRoot":"","sources":["../../src/operations/sendEvmTransactionWithEndUserAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,eAAe;AACf,MAAM,CAAC,MAAM,yCAAyC;AACpD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC;QACvB,MAAM;QACN,cAAc;QACd,UAAU;QACV,kBAAkB;QAClB,WAAW;QACX,SAAS;QACT,UAAU;QACV,UAAU;QACV,kBAAkB;QAClB,OAAO;QACP,eAAe;KAChB,CAAC;IACF,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,MAAM,CAAC,MAAM;CAC3B,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,iEAAiE;CACxE,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C;AACrD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,eAAe,EAAE,MAAM,CAAC,MAAM;CAC/B,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,MAAM,oCAAoC;AAC/C,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,yCAAyC;IACtD,YAAY,EAAE,0CAA0C;CACzD,CAAC,CAAC,CAAC"}
@@ -0,0 +1,57 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const SendSolanaAssetWithEndUserAccountInput: Schema.Struct<{
3
+ readonly userId: Schema.String;
4
+ readonly address: Schema.String;
5
+ readonly asset: Schema.Literals<readonly ["usdc"]>;
6
+ readonly projectID: Schema.optional<Schema.String>;
7
+ readonly to: Schema.String;
8
+ readonly amount: Schema.String;
9
+ readonly network: Schema.Literals<readonly ["solana", "solana-devnet"]>;
10
+ readonly createRecipientAta: Schema.optional<Schema.Boolean>;
11
+ readonly walletSecretId: Schema.optional<Schema.String>;
12
+ readonly useCdpSponsor: Schema.optional<Schema.Boolean>;
13
+ }>;
14
+ export type SendSolanaAssetWithEndUserAccountInput = typeof SendSolanaAssetWithEndUserAccountInput.Type;
15
+ export declare const SendSolanaAssetWithEndUserAccountOutput: Schema.Struct<{
16
+ readonly transactionSignature: Schema.String;
17
+ }>;
18
+ export type SendSolanaAssetWithEndUserAccountOutput = typeof SendSolanaAssetWithEndUserAccountOutput.Type;
19
+ /**
20
+ * Send USDC on Solana
21
+ *
22
+ * 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.
23
+ * The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50").
24
+ * Use the optional `createRecipientAta` parameter to control whether the sender pays for creating the recipient's Associated Token Account if it doesn't exist.
25
+ *
26
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
27
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
28
+ section of our Authentication docs for more details on how to generate your Wallet Token.
29
+
30
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
31
+ When included, duplicate requests with the same key will return identical responses.
32
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
33
+
34
+ * @param X-Developer-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
35
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
36
+ section of our Authentication docs for more details on how to generate your Wallet Token.
37
+
38
+ * @param userId - The ID of the end user.
39
+ * @param address - The base58 encoded address of the Solana account to send USDC from.
40
+ * @param asset - The asset to send. Currently only "usdc" is supported.
41
+ * @param projectID - The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
42
+ */
43
+ export declare const sendSolanaAssetWithEndUserAccount: import("@distilled.cloud/core/client").OperationMethod<{
44
+ readonly address: string;
45
+ readonly amount: string;
46
+ readonly asset: "usdc";
47
+ readonly createRecipientAta?: boolean | undefined;
48
+ readonly network: "solana" | "solana-devnet";
49
+ readonly projectID?: string | undefined;
50
+ readonly to: string;
51
+ readonly useCdpSponsor?: boolean | undefined;
52
+ readonly userId: string;
53
+ readonly walletSecretId?: string | undefined;
54
+ }, {
55
+ readonly transactionSignature: string;
56
+ }, never, import("../credentials.ts").Credentials>;
57
+ //# sourceMappingURL=sendSolanaAssetWithEndUserAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendSolanaAssetWithEndUserAccount.d.ts","sourceRoot":"","sources":["../../src/operations/sendSolanaAssetWithEndUserAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,sCAAsC;;;;;;;;;;;EAiBhD,CAAC;AACJ,MAAM,MAAM,sCAAsC,GAChD,OAAO,sCAAsC,CAAC,IAAI,CAAC;AAGrD,eAAO,MAAM,uCAAuC;;EAGhD,CAAC;AACL,MAAM,MAAM,uCAAuC,GACjD,OAAO,uCAAuC,CAAC,IAAI,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;kDAIzC,CAAC"}
@@ -0,0 +1,56 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client.js";
3
+ import * as T from "../traits.js";
4
+ // Input Schema
5
+ export const SendSolanaAssetWithEndUserAccountInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ userId: Schema.String.pipe(T.PathParam()),
8
+ address: Schema.String.pipe(T.PathParam()),
9
+ asset: Schema.Literals(["usdc"]).pipe(T.PathParam()),
10
+ projectID: Schema.optional(Schema.String),
11
+ to: Schema.String,
12
+ amount: Schema.String,
13
+ network: Schema.Literals(["solana", "solana-devnet"]),
14
+ createRecipientAta: Schema.optional(Schema.Boolean),
15
+ walletSecretId: Schema.optional(Schema.String),
16
+ useCdpSponsor: Schema.optional(Schema.Boolean),
17
+ }).pipe(T.Http({
18
+ method: "POST",
19
+ path: "/v2/embedded-wallet-api/end-users/{userId}/solana/{address}/send/{asset}",
20
+ }));
21
+ // Output Schema
22
+ export const SendSolanaAssetWithEndUserAccountOutput =
23
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
24
+ transactionSignature: Schema.String,
25
+ });
26
+ // The operation
27
+ /**
28
+ * Send USDC on Solana
29
+ *
30
+ * 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.
31
+ * The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50").
32
+ * Use the optional `createRecipientAta` parameter to control whether the sender pays for creating the recipient's Associated Token Account if it doesn't exist.
33
+ *
34
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
35
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
36
+ section of our Authentication docs for more details on how to generate your Wallet Token.
37
+
38
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
39
+ When included, duplicate requests with the same key will return identical responses.
40
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
41
+
42
+ * @param X-Developer-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
43
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
44
+ section of our Authentication docs for more details on how to generate your Wallet Token.
45
+
46
+ * @param userId - The ID of the end user.
47
+ * @param address - The base58 encoded address of the Solana account to send USDC from.
48
+ * @param asset - The asset to send. Currently only "usdc" is supported.
49
+ * @param projectID - The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
50
+ */
51
+ export const sendSolanaAssetWithEndUserAccount =
52
+ /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
53
+ inputSchema: SendSolanaAssetWithEndUserAccountInput,
54
+ outputSchema: SendSolanaAssetWithEndUserAccountOutput,
55
+ }));
56
+ //# sourceMappingURL=sendSolanaAssetWithEndUserAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendSolanaAssetWithEndUserAccount.js","sourceRoot":"","sources":["../../src/operations/sendSolanaAssetWithEndUserAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,eAAe;AACf,MAAM,CAAC,MAAM,sCAAsC;AACjD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC1C,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACpD,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,MAAM,CAAC,MAAM;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;IACrD,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IACnD,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC9C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;CAC/C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,0EAA0E;CACjF,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC;AAClD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,oBAAoB,EAAE,MAAM,CAAC,MAAM;CACpC,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,iCAAiC;AAC5C,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,sCAAsC;IACnD,YAAY,EAAE,uCAAuC;CACtD,CAAC,CAAC,CAAC"}
@@ -0,0 +1,60 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const SendSolanaTransactionWithEndUserAccountInput: Schema.Struct<{
3
+ readonly userId: Schema.String;
4
+ readonly projectID: Schema.optional<Schema.String>;
5
+ readonly address: Schema.String;
6
+ readonly network: Schema.Literals<readonly ["solana", "solana-devnet"]>;
7
+ readonly walletSecretId: Schema.optional<Schema.String>;
8
+ readonly transaction: Schema.String;
9
+ readonly useCdpSponsor: Schema.optional<Schema.Boolean>;
10
+ }>;
11
+ export type SendSolanaTransactionWithEndUserAccountInput = typeof SendSolanaTransactionWithEndUserAccountInput.Type;
12
+ export declare const SendSolanaTransactionWithEndUserAccountOutput: Schema.Struct<{
13
+ readonly transactionSignature: Schema.String;
14
+ }>;
15
+ export type SendSolanaTransactionWithEndUserAccountOutput = typeof SendSolanaTransactionWithEndUserAccountOutput.Type;
16
+ /**
17
+ * Send a transaction with end user Solana account
18
+ *
19
+ * Signs a transaction with the given end user Solana account and sends it to the indicated supported network.
20
+ * 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.
21
+ * The unsigned transaction should be serialized into a byte array and then encoded as base64.
22
+ * **Transaction types**
23
+ * The following transaction types are supported:
24
+ * * [Legacy transactions](https://solana.com/developers/guides/advanced/versions#current-transaction-versions)
25
+ * * [Versioned transactions](https://solana.com/developers/guides/advanced/versions)
26
+ * **Instruction Batching**
27
+ * 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.
28
+ * **Network Support**
29
+ * The following Solana networks are supported:
30
+ * * `solana` - Solana Mainnet
31
+ * * `solana-devnet` - Solana Devnet
32
+ * The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
33
+ *
34
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
35
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
36
+ section of our Authentication docs for more details on how to generate your Wallet Token.
37
+
38
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
39
+ When included, duplicate requests with the same key will return identical responses.
40
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
41
+
42
+ * @param X-Developer-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
43
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
44
+ section of our Authentication docs for more details on how to generate your Wallet Token.
45
+
46
+ * @param userId - The ID of the end user.
47
+ * @param projectID - The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
48
+ */
49
+ export declare const sendSolanaTransactionWithEndUserAccount: import("@distilled.cloud/core/client").OperationMethod<{
50
+ readonly address: string;
51
+ readonly network: "solana" | "solana-devnet";
52
+ readonly projectID?: string | undefined;
53
+ readonly transaction: string;
54
+ readonly useCdpSponsor?: boolean | undefined;
55
+ readonly userId: string;
56
+ readonly walletSecretId?: string | undefined;
57
+ }, {
58
+ readonly transactionSignature: string;
59
+ }, never, import("../credentials.ts").Credentials>;
60
+ //# sourceMappingURL=sendSolanaTransactionWithEndUserAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendSolanaTransactionWithEndUserAccount.d.ts","sourceRoot":"","sources":["../../src/operations/sendSolanaTransactionWithEndUserAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,4CAA4C;;;;;;;;EActD,CAAC;AACJ,MAAM,MAAM,4CAA4C,GACtD,OAAO,4CAA4C,CAAC,IAAI,CAAC;AAG3D,eAAO,MAAM,6CAA6C;;EAGtD,CAAC;AACL,MAAM,MAAM,6CAA6C,GACvD,OAAO,6CAA6C,CAAC,IAAI,CAAC;AAG5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,uCAAuC;;;;;;;;;;kDAI/C,CAAC"}
@@ -0,0 +1,62 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client.js";
3
+ import * as T from "../traits.js";
4
+ // Input Schema
5
+ export const SendSolanaTransactionWithEndUserAccountInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ userId: Schema.String.pipe(T.PathParam()),
8
+ projectID: Schema.optional(Schema.String),
9
+ address: Schema.String,
10
+ network: Schema.Literals(["solana", "solana-devnet"]),
11
+ walletSecretId: Schema.optional(Schema.String),
12
+ transaction: Schema.String,
13
+ useCdpSponsor: Schema.optional(Schema.Boolean),
14
+ }).pipe(T.Http({
15
+ method: "POST",
16
+ path: "/v2/embedded-wallet-api/end-users/{userId}/solana/send/transaction",
17
+ }));
18
+ // Output Schema
19
+ export const SendSolanaTransactionWithEndUserAccountOutput =
20
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
21
+ transactionSignature: Schema.String,
22
+ });
23
+ // The operation
24
+ /**
25
+ * Send a transaction with end user Solana account
26
+ *
27
+ * Signs a transaction with the given end user Solana account and sends it to the indicated supported network.
28
+ * 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.
29
+ * The unsigned transaction should be serialized into a byte array and then encoded as base64.
30
+ * **Transaction types**
31
+ * The following transaction types are supported:
32
+ * * [Legacy transactions](https://solana.com/developers/guides/advanced/versions#current-transaction-versions)
33
+ * * [Versioned transactions](https://solana.com/developers/guides/advanced/versions)
34
+ * **Instruction Batching**
35
+ * 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.
36
+ * **Network Support**
37
+ * The following Solana networks are supported:
38
+ * * `solana` - Solana Mainnet
39
+ * * `solana-devnet` - Solana Devnet
40
+ * The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
41
+ *
42
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
43
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
44
+ section of our Authentication docs for more details on how to generate your Wallet Token.
45
+
46
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
47
+ When included, duplicate requests with the same key will return identical responses.
48
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
49
+
50
+ * @param X-Developer-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
51
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
52
+ section of our Authentication docs for more details on how to generate your Wallet Token.
53
+
54
+ * @param userId - The ID of the end user.
55
+ * @param projectID - The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
56
+ */
57
+ export const sendSolanaTransactionWithEndUserAccount =
58
+ /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
59
+ inputSchema: SendSolanaTransactionWithEndUserAccountInput,
60
+ outputSchema: SendSolanaTransactionWithEndUserAccountOutput,
61
+ }));
62
+ //# sourceMappingURL=sendSolanaTransactionWithEndUserAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendSolanaTransactionWithEndUserAccount.js","sourceRoot":"","sources":["../../src/operations/sendSolanaTransactionWithEndUserAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,eAAe;AACf,MAAM,CAAC,MAAM,4CAA4C;AACvD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;IACrD,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,MAAM,CAAC,MAAM;IAC1B,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;CAC/C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,oEAAoE;CAC3E,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,6CAA6C;AACxD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,oBAAoB,EAAE,MAAM,CAAC,MAAM;CACpC,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,CAAC,MAAM,uCAAuC;AAClD,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,4CAA4C;IACzD,YAAY,EAAE,6CAA6C;CAC5D,CAAC,CAAC,CAAC"}
@@ -0,0 +1,100 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const SendUserOperationWithEndUserAccountInput: Schema.Struct<{
3
+ readonly userId: Schema.String;
4
+ readonly address: Schema.String;
5
+ readonly projectID: Schema.optional<Schema.String>;
6
+ readonly network: Schema.Literals<readonly ["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>;
7
+ readonly calls: Schema.$Array<Schema.Struct<{
8
+ readonly to: Schema.String;
9
+ readonly value: Schema.String;
10
+ readonly data: Schema.String;
11
+ readonly overrideGasLimit: Schema.optional<Schema.String>;
12
+ }>>;
13
+ readonly useCdpPaymaster: Schema.Boolean;
14
+ readonly paymasterUrl: Schema.optional<Schema.String>;
15
+ readonly walletSecretId: Schema.optional<Schema.String>;
16
+ readonly dataSuffix: Schema.optional<Schema.String>;
17
+ }>;
18
+ export type SendUserOperationWithEndUserAccountInput = typeof SendUserOperationWithEndUserAccountInput.Type;
19
+ export declare const SendUserOperationWithEndUserAccountOutput: Schema.Struct<{
20
+ readonly network: Schema.Literals<readonly ["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>;
21
+ readonly userOpHash: Schema.String;
22
+ readonly calls: Schema.$Array<Schema.Struct<{
23
+ readonly to: Schema.String;
24
+ readonly value: Schema.String;
25
+ readonly data: Schema.String;
26
+ readonly overrideGasLimit: Schema.optional<Schema.String>;
27
+ }>>;
28
+ readonly status: Schema.Literals<readonly ["pending", "signed", "broadcast", "complete", "dropped", "failed"]>;
29
+ readonly transactionHash: Schema.optional<Schema.String>;
30
+ readonly receipts: Schema.optional<Schema.$Array<Schema.Struct<{
31
+ readonly revert: Schema.optional<Schema.Struct<{
32
+ readonly data: Schema.String;
33
+ readonly message: Schema.String;
34
+ }>>;
35
+ readonly transactionHash: Schema.optional<Schema.String>;
36
+ readonly blockHash: Schema.optional<Schema.String>;
37
+ readonly blockNumber: Schema.optional<Schema.Number>;
38
+ readonly gasUsed: Schema.optional<Schema.String>;
39
+ }>>>;
40
+ }>;
41
+ export type SendUserOperationWithEndUserAccountOutput = typeof SendUserOperationWithEndUserAccountOutput.Type;
42
+ /**
43
+ * Send a user operation for end user Smart Account
44
+ *
45
+ * Prepares, signs, and sends a user operation for an end user's Smart Account.
46
+ *
47
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
48
+ When included, duplicate requests with the same key will return identical responses.
49
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
50
+
51
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
52
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
53
+ section of our Authentication docs for more details on how to generate your Wallet Token.
54
+
55
+ * @param userId - The ID of the end user.
56
+ * @param address - The address of the EVM Smart Account to execute the user operation from.
57
+ * @param X-Developer-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
58
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
59
+ section of our Authentication docs for more details on how to generate your Wallet Token.
60
+
61
+ * @param projectID - The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
62
+ */
63
+ export declare const sendUserOperationWithEndUserAccount: import("@distilled.cloud/core/client").OperationMethod<{
64
+ readonly address: string;
65
+ readonly calls: readonly {
66
+ readonly data: string;
67
+ readonly overrideGasLimit?: string | undefined;
68
+ readonly to: string;
69
+ readonly value: string;
70
+ }[];
71
+ readonly dataSuffix?: string | undefined;
72
+ readonly network: "arbitrum" | "avalanche" | "base" | "base-sepolia" | "bnb" | "ethereum" | "ethereum-sepolia" | "optimism" | "polygon" | "zora";
73
+ readonly paymasterUrl?: string | undefined;
74
+ readonly projectID?: string | undefined;
75
+ readonly useCdpPaymaster: boolean;
76
+ readonly userId: string;
77
+ readonly walletSecretId?: string | undefined;
78
+ }, {
79
+ readonly calls: readonly {
80
+ readonly data: string;
81
+ readonly overrideGasLimit?: string | undefined;
82
+ readonly to: string;
83
+ readonly value: string;
84
+ }[];
85
+ readonly network: "arbitrum" | "avalanche" | "base" | "base-sepolia" | "bnb" | "ethereum" | "ethereum-sepolia" | "optimism" | "polygon" | "zora";
86
+ readonly receipts?: readonly {
87
+ readonly blockHash?: string | undefined;
88
+ readonly blockNumber?: number | undefined;
89
+ readonly gasUsed?: string | undefined;
90
+ readonly revert?: {
91
+ readonly data: string;
92
+ readonly message: string;
93
+ } | undefined;
94
+ readonly transactionHash?: string | undefined;
95
+ }[] | undefined;
96
+ readonly status: "broadcast" | "complete" | "dropped" | "failed" | "pending" | "signed";
97
+ readonly transactionHash?: string | undefined;
98
+ readonly userOpHash: string;
99
+ }, never, import("../credentials.ts").Credentials>;
100
+ //# sourceMappingURL=sendUserOperationWithEndUserAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendUserOperationWithEndUserAccount.d.ts","sourceRoot":"","sources":["../../src/operations/sendUserOperationWithEndUserAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;EAkClD,CAAC;AACJ,MAAM,MAAM,wCAAwC,GAClD,OAAO,wCAAwC,CAAC,IAAI,CAAC;AAGvD,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;EAgDlD,CAAC;AACL,MAAM,MAAM,yCAAyC,GACnD,OAAO,yCAAyC,CAAC,IAAI,CAAC;AAGxD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAI3C,CAAC"}
@@ -0,0 +1,105 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client.js";
3
+ import * as T from "../traits.js";
4
+ // Input Schema
5
+ export const SendUserOperationWithEndUserAccountInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ userId: Schema.String.pipe(T.PathParam()),
8
+ address: Schema.String.pipe(T.PathParam()),
9
+ projectID: Schema.optional(Schema.String),
10
+ network: Schema.Literals([
11
+ "base-sepolia",
12
+ "base",
13
+ "arbitrum",
14
+ "optimism",
15
+ "zora",
16
+ "polygon",
17
+ "bnb",
18
+ "avalanche",
19
+ "ethereum",
20
+ "ethereum-sepolia",
21
+ ]),
22
+ calls: Schema.Array(Schema.Struct({
23
+ to: Schema.String,
24
+ value: Schema.String,
25
+ data: Schema.String,
26
+ overrideGasLimit: Schema.optional(Schema.String),
27
+ })),
28
+ useCdpPaymaster: Schema.Boolean,
29
+ paymasterUrl: Schema.optional(Schema.String),
30
+ walletSecretId: Schema.optional(Schema.String),
31
+ dataSuffix: Schema.optional(Schema.String),
32
+ }).pipe(T.Http({
33
+ method: "POST",
34
+ path: "/v2/embedded-wallet-api/end-users/{userId}/evm/smart-accounts/{address}/send",
35
+ }));
36
+ // Output Schema
37
+ export const SendUserOperationWithEndUserAccountOutput =
38
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
39
+ network: Schema.Literals([
40
+ "base-sepolia",
41
+ "base",
42
+ "arbitrum",
43
+ "optimism",
44
+ "zora",
45
+ "polygon",
46
+ "bnb",
47
+ "avalanche",
48
+ "ethereum",
49
+ "ethereum-sepolia",
50
+ ]),
51
+ userOpHash: Schema.String,
52
+ calls: Schema.Array(Schema.Struct({
53
+ to: Schema.String,
54
+ value: Schema.String,
55
+ data: Schema.String,
56
+ overrideGasLimit: Schema.optional(Schema.String),
57
+ })),
58
+ status: Schema.Literals([
59
+ "pending",
60
+ "signed",
61
+ "broadcast",
62
+ "complete",
63
+ "dropped",
64
+ "failed",
65
+ ]),
66
+ transactionHash: Schema.optional(Schema.String),
67
+ receipts: Schema.optional(Schema.Array(Schema.Struct({
68
+ revert: Schema.optional(Schema.Struct({
69
+ data: Schema.String,
70
+ message: Schema.String,
71
+ })),
72
+ transactionHash: Schema.optional(Schema.String),
73
+ blockHash: Schema.optional(Schema.String),
74
+ blockNumber: Schema.optional(Schema.Number),
75
+ gasUsed: Schema.optional(Schema.String),
76
+ }))),
77
+ });
78
+ // The operation
79
+ /**
80
+ * Send a user operation for end user Smart Account
81
+ *
82
+ * Prepares, signs, and sends a user operation for an end user's Smart Account.
83
+ *
84
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
85
+ When included, duplicate requests with the same key will return identical responses.
86
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
87
+
88
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
89
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
90
+ section of our Authentication docs for more details on how to generate your Wallet Token.
91
+
92
+ * @param userId - The ID of the end user.
93
+ * @param address - The address of the EVM Smart Account to execute the user operation from.
94
+ * @param X-Developer-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
95
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
96
+ section of our Authentication docs for more details on how to generate your Wallet Token.
97
+
98
+ * @param projectID - The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
99
+ */
100
+ export const sendUserOperationWithEndUserAccount =
101
+ /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
102
+ inputSchema: SendUserOperationWithEndUserAccountInput,
103
+ outputSchema: SendUserOperationWithEndUserAccountOutput,
104
+ }));
105
+ //# sourceMappingURL=sendUserOperationWithEndUserAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendUserOperationWithEndUserAccount.js","sourceRoot":"","sources":["../../src/operations/sendUserOperationWithEndUserAccount.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,44 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const SignEvmMessageWithEndUserAccountInput: Schema.Struct<{
3
+ readonly userId: Schema.String;
4
+ readonly projectID: Schema.optional<Schema.String>;
5
+ readonly address: Schema.String;
6
+ readonly message: Schema.String;
7
+ readonly walletSecretId: Schema.optional<Schema.String>;
8
+ }>;
9
+ export type SignEvmMessageWithEndUserAccountInput = typeof SignEvmMessageWithEndUserAccountInput.Type;
10
+ export declare const SignEvmMessageWithEndUserAccountOutput: Schema.Struct<{
11
+ readonly signature: Schema.String;
12
+ }>;
13
+ export type SignEvmMessageWithEndUserAccountOutput = typeof SignEvmMessageWithEndUserAccountOutput.Type;
14
+ /**
15
+ * Sign an EIP-191 message with end user EVM account
16
+ *
17
+ * Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given end user EVM account.
18
+ * Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\\n" + len(message)>` before being signed.
19
+ *
20
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
21
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
22
+ section of our Authentication docs for more details on how to generate your Wallet Token.
23
+
24
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
25
+ When included, duplicate requests with the same key will return identical responses.
26
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
27
+
28
+ * @param userId - The ID of the end user.
29
+ * @param X-Developer-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
30
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
31
+ section of our Authentication docs for more details on how to generate your Wallet Token.
32
+
33
+ * @param projectID - The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
34
+ */
35
+ export declare const signEvmMessageWithEndUserAccount: import("@distilled.cloud/core/client").OperationMethod<{
36
+ readonly address: string;
37
+ readonly message: string;
38
+ readonly projectID?: string | undefined;
39
+ readonly userId: string;
40
+ readonly walletSecretId?: string | undefined;
41
+ }, {
42
+ readonly signature: string;
43
+ }, never, import("../credentials.ts").Credentials>;
44
+ //# sourceMappingURL=signEvmMessageWithEndUserAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signEvmMessageWithEndUserAccount.d.ts","sourceRoot":"","sources":["../../src/operations/signEvmMessageWithEndUserAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,qCAAqC;;;;;;EAY/C,CAAC;AACJ,MAAM,MAAM,qCAAqC,GAC/C,OAAO,qCAAqC,CAAC,IAAI,CAAC;AAGpD,eAAO,MAAM,sCAAsC;;EAG/C,CAAC;AACL,MAAM,MAAM,sCAAsC,GAChD,OAAO,sCAAsC,CAAC,IAAI,CAAC;AAGrD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;kDAIxC,CAAC"}
@@ -0,0 +1,48 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client.js";
3
+ import * as T from "../traits.js";
4
+ // Input Schema
5
+ export const SignEvmMessageWithEndUserAccountInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ userId: Schema.String.pipe(T.PathParam()),
8
+ projectID: Schema.optional(Schema.String),
9
+ address: Schema.String,
10
+ message: Schema.String,
11
+ walletSecretId: Schema.optional(Schema.String),
12
+ }).pipe(T.Http({
13
+ method: "POST",
14
+ path: "/v2/embedded-wallet-api/end-users/{userId}/evm/sign/message",
15
+ }));
16
+ // Output Schema
17
+ export const SignEvmMessageWithEndUserAccountOutput =
18
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19
+ signature: Schema.String,
20
+ });
21
+ // The operation
22
+ /**
23
+ * Sign an EIP-191 message with end user EVM account
24
+ *
25
+ * Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given end user EVM account.
26
+ * Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\\n" + len(message)>` before being signed.
27
+ *
28
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
29
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
30
+ section of our Authentication docs for more details on how to generate your Wallet Token.
31
+
32
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
33
+ When included, duplicate requests with the same key will return identical responses.
34
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
35
+
36
+ * @param userId - The ID of the end user.
37
+ * @param X-Developer-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
38
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
39
+ section of our Authentication docs for more details on how to generate your Wallet Token.
40
+
41
+ * @param projectID - The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
42
+ */
43
+ export const signEvmMessageWithEndUserAccount =
44
+ /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
45
+ inputSchema: SignEvmMessageWithEndUserAccountInput,
46
+ outputSchema: SignEvmMessageWithEndUserAccountOutput,
47
+ }));
48
+ //# sourceMappingURL=signEvmMessageWithEndUserAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signEvmMessageWithEndUserAccount.js","sourceRoot":"","sources":["../../src/operations/signEvmMessageWithEndUserAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,eAAe;AACf,MAAM,CAAC,MAAM,qCAAqC;AAChD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC/C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,6DAA6D;CACpE,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC;AACjD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC,MAAM;CACzB,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,gCAAgC;AAC3C,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,qCAAqC;IAClD,YAAY,EAAE,sCAAsC;CACrD,CAAC,CAAC,CAAC"}
@@ -0,0 +1,45 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const SignEvmTransactionWithEndUserAccountInput: Schema.Struct<{
3
+ readonly userId: Schema.String;
4
+ readonly projectID: Schema.optional<Schema.String>;
5
+ readonly address: Schema.String;
6
+ readonly transaction: Schema.String;
7
+ readonly walletSecretId: Schema.optional<Schema.String>;
8
+ }>;
9
+ export type SignEvmTransactionWithEndUserAccountInput = typeof SignEvmTransactionWithEndUserAccountInput.Type;
10
+ export declare const SignEvmTransactionWithEndUserAccountOutput: Schema.Struct<{
11
+ readonly signedTransaction: Schema.String;
12
+ }>;
13
+ export type SignEvmTransactionWithEndUserAccountOutput = typeof SignEvmTransactionWithEndUserAccountOutput.Type;
14
+ /**
15
+ * Sign a transaction with end user EVM account
16
+ *
17
+ * Signs a transaction with the given end user EVM account.
18
+ * The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
19
+ * 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.
20
+ *
21
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
22
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
23
+ section of our Authentication docs for more details on how to generate your Wallet Token.
24
+
25
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
26
+ When included, duplicate requests with the same key will return identical responses.
27
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
28
+
29
+ * @param userId - The ID of the end user.
30
+ * @param X-Developer-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
31
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
32
+ section of our Authentication docs for more details on how to generate your Wallet Token.
33
+
34
+ * @param projectID - The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
35
+ */
36
+ export declare const signEvmTransactionWithEndUserAccount: import("@distilled.cloud/core/client").OperationMethod<{
37
+ readonly address: string;
38
+ readonly projectID?: string | undefined;
39
+ readonly transaction: string;
40
+ readonly userId: string;
41
+ readonly walletSecretId?: string | undefined;
42
+ }, {
43
+ readonly signedTransaction: string;
44
+ }, never, import("../credentials.ts").Credentials>;
45
+ //# sourceMappingURL=signEvmTransactionWithEndUserAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signEvmTransactionWithEndUserAccount.d.ts","sourceRoot":"","sources":["../../src/operations/signEvmTransactionWithEndUserAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,yCAAyC;;;;;;EAYnD,CAAC;AACJ,MAAM,MAAM,yCAAyC,GACnD,OAAO,yCAAyC,CAAC,IAAI,CAAC;AAGxD,eAAO,MAAM,0CAA0C;;EAGnD,CAAC;AACL,MAAM,MAAM,0CAA0C,GACpD,OAAO,0CAA0C,CAAC,IAAI,CAAC;AAGzD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;kDAI5C,CAAC"}