@solana/react 5.3.0-canary-20260107190742 → 5.4.0-canary-20260108130911

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.
@@ -41,5 +41,40 @@ type Output = SolanaSignTransactionOutput;
41
41
  */
42
42
  export declare function useSignTransaction<TWalletAccount extends UiWalletAccount>(uiWalletAccount: TWalletAccount, chain: OnlySolanaChains<TWalletAccount['chains']>): (input: Input) => Promise<Output>;
43
43
  export declare function useSignTransaction<TWalletAccount extends UiWalletAccount>(uiWalletAccount: TWalletAccount, chain: `solana:${string}`): (input: Input) => Promise<Output>;
44
+ /**
45
+ * Use this to get a function capable of signing one or more serialized transactions with the private
46
+ * key of a {@link UiWalletAccount}. This supports batching multiple transactions in a single wallet
47
+ * prompt when the wallet implementation allows it.
48
+ *
49
+ * @example
50
+ * ```tsx
51
+ * import { useSignTransactions } from '@solana/react';
52
+ *
53
+ * function SignTransactionsButton({ account, transactionBytes1, transactionBytes2 }) {
54
+ * const signTransactions = useSignTransactions(account, 'solana:devnet');
55
+ * return (
56
+ * <button
57
+ * onClick={async () => {
58
+ * try {
59
+ * const [first, second] = await signTransactions(
60
+ * { transaction: transactionBytes1 },
61
+ * { transaction: transactionBytes2 },
62
+ * );
63
+ * window.alert(
64
+ * `First transaction bytes: ${first.signedTransaction.toString()}, second transaction bytes: ${second.signedTransaction.toString()}`,
65
+ * );
66
+ * } catch (e) {
67
+ * console.error('Failed to sign transactions', e);
68
+ * }
69
+ * }}
70
+ * >
71
+ * Sign Transactions
72
+ * </button>
73
+ * );
74
+ * }
75
+ * ```
76
+ */
77
+ export declare function useSignTransactions<TWalletAccount extends UiWalletAccount>(uiWalletAccount: TWalletAccount, chain: OnlySolanaChains<TWalletAccount['chains']>): (...inputs: readonly Input[]) => Promise<readonly Output[]>;
78
+ export declare function useSignTransactions<TWalletAccount extends UiWalletAccount>(uiWalletAccount: TWalletAccount, chain: `solana:${string}`): (...inputs: readonly Input[]) => Promise<readonly Output[]>;
44
79
  export {};
45
80
  //# sourceMappingURL=useSignTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSignTransaction.d.ts","sourceRoot":"","sources":["../../src/useSignTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,0BAA0B,EAC1B,2BAA2B,EAC9B,MAAM,kCAAkC,CAAC;AAK1C,OAAO,EAA2B,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,KAAK,KAAK,GAAG,QAAQ,CACjB,IAAI,CAAC,0BAA0B,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC,GAAG;IAChE,OAAO,CAAC,EAAE,QAAQ,CAAC;QACf,cAAc,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC,CAAC;CACN,CACJ,CAAC;AACF,KAAK,MAAM,GAAG,2BAA2B,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,kBAAkB,CAAC,cAAc,SAAS,eAAe,EACrE,eAAe,EAAE,cAAc,EAC/B,KAAK,EAAE,gBAAgB,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,GAClD,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AACrC,wBAAgB,kBAAkB,CAAC,cAAc,SAAS,eAAe,EACrE,eAAe,EAAE,cAAc,EAC/B,KAAK,EAAE,UAAU,MAAM,EAAE,GAC1B,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"useSignTransaction.d.ts","sourceRoot":"","sources":["../../src/useSignTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,0BAA0B,EAC1B,2BAA2B,EAC9B,MAAM,kCAAkC,CAAC;AAK1C,OAAO,EAA2B,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI/E,OAAO,EAAE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 @@
1
1
  {
2
2
  "name": "@solana/react",
3
- "version": "5.3.0-canary-20260107190742",
3
+ "version": "5.4.0-canary-20260108130911",
4
4
  "description": "React hooks for building Solana apps",
5
5
  "homepage": "https://www.solanakit.com/api#solanareact",
6
6
  "exports": {
@@ -60,13 +60,13 @@
60
60
  "@wallet-standard/errors": "^0.1.1",
61
61
  "@wallet-standard/ui": "^1.0.1",
62
62
  "@wallet-standard/ui-registry": "^1.0.1",
63
- "@solana/keys": "5.3.0-canary-20260107190742",
64
- "@solana/errors": "5.3.0-canary-20260107190742",
65
- "@solana/addresses": "5.3.0-canary-20260107190742",
66
- "@solana/promises": "5.3.0-canary-20260107190742",
67
- "@solana/signers": "5.3.0-canary-20260107190742",
68
- "@solana/transactions": "5.3.0-canary-20260107190742",
69
- "@solana/transaction-messages": "5.3.0-canary-20260107190742"
63
+ "@solana/addresses": "5.4.0-canary-20260108130911",
64
+ "@solana/errors": "5.4.0-canary-20260108130911",
65
+ "@solana/keys": "5.4.0-canary-20260108130911",
66
+ "@solana/signers": "5.4.0-canary-20260108130911",
67
+ "@solana/promises": "5.4.0-canary-20260108130911",
68
+ "@solana/transaction-messages": "5.4.0-canary-20260108130911",
69
+ "@solana/transactions": "5.4.0-canary-20260108130911"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "react": ">=18"