Releases: thirdweb-dev/js
@thirdweb-dev/[email protected]
Patch Changes
- #7220
4fed9f4
Thanks @joaquim-verges! - Update to latest openAPI spec
[email protected]
Minor Changes
-
#7190
861e623
Thanks @joaquim-verges! - Enhanced Engine functionality with server wallet management, search transactions and batch transaction support:-
Added
Engine.createServerWallet()
to create a new server wallet with a custom labelimport { Engine } from "thirdweb"; const serverWallet = await Engine.createServerWallet({ client, label: "My Server Wallet", }); console.log(serverWallet.address); console.log(serverWallet.smartAccountAddress);
-
Added
Engine.getServerWallets()
to list all existing server walletsimport { Engine } from "thirdweb"; const serverWallets = await Engine.getServerWallets({ client, }); console.log(serverWallets);
-
Added
Engine.searchTransactions()
to search for transactions by various filters (id, chainId, from address, etc.)// Search by transaction IDs const transactions = await Engine.searchTransactions({ client, filters: [ { field: "id", values: ["1", "2", "3"], }, ], }); // Search by chain ID and sender address const transactions = await Engine.searchTransactions({ client, filters: [ { filters: [ { field: "from", values: ["0x1234567890123456789012345678901234567890"], }, { field: "chainId", values: ["8453"], }, ], operation: "AND", }, ], pageSize: 100, page: 0, });
-
Added
serverWallet.enqueueBatchTransaction()
to enqueue multiple transactions in a single batch// Prepare multiple transactions const transaction1 = claimTo({ contract, to: firstRecipient, quantity: 1n, }); const transaction2 = claimTo({ contract, to: secondRecipient, quantity: 1n, }); // Enqueue as a batch const { transactionId } = await serverWallet.enqueueBatchTransaction({ transactions: [transaction1, transaction2], }); // Wait for batch completion const { transactionHash } = await Engine.waitForTransactionHash({ client, transactionId, });
-
Improved server wallet transaction handling with better error reporting
-
Patch Changes
- Updated dependencies [
861e623
]:- @thirdweb-dev/[email protected]
[email protected]
Patch Changes
-
#7185
41e59a9
Thanks @gregfromstl! - Addscountry
to onramp parameters -
#7157
52d451f
Thanks @RobbyUitbeijerse! - default the spinner stroke color to currentColor and make the color prop optional -
#7158
ec7bc2b
Thanks @joaquim-verges! - Handle large NFT colletions when updating metadata -
#7183
655df03
Thanks @joaquim-verges! - Add ahiddenWallets
prop toConnectEmbed
,ConnectButton
, anduseConnectModal
to hide specific wallets from the connect list. -
#7191
44a7460
Thanks @gregfromstl! - Remove unnecessary Switch Network button in PayEmbed -
#7202
3d3c6f3
Thanks @gregfromstl! - Fixes a bug with purchaseData not being included on PayEmbed transfers -
Updated dependencies [
ec7bc2b
,ec7bc2b
]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
Patch Changes
- #7158
ec7bc2b
Thanks @joaquim-verges! - client id optional
@thirdweb-dev/[email protected]
Patch Changes
- #7190
861e623
Thanks @joaquim-verges! - Updated to latest API
@thirdweb-dev/[email protected]
Patch Changes
- #7158
ec7bc2b
Thanks @joaquim-verges! - client id optional
[email protected]
Patch Changes
-
#7151
5277edd
Thanks @gregfromstl! - Fix Webhook schema type -
#7147
3489ece
Thanks @joaquim-verges! - Better Quote errors
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]