Releases: thirdweb-dev/js
[email protected]
Patch Changes
-
#7240
ad8cc9a
Thanks @joaquim-verges! - AddBridge.tokens()
function to retrieve supported Universal Bridge tokensNew function allows fetching and filtering tokens supported by the Universal Bridge service. Supports filtering by chain ID, token address, symbol, name, and includes pagination with limit/offset parameters.
import { Bridge } from "thirdweb"; // Get all supported tokens const tokens = await Bridge.tokens({ client: thirdwebClient, }); // Filter tokens by chain and symbol const ethTokens = await Bridge.tokens({ chainId: 1, symbol: "USDC", limit: 50, client: thirdwebClient, });
-
#7242
f10fbc8
Thanks @joaquim-verges! - Optimize fiat conversion query -
#7230
8245c06
Thanks @gregfromstl! - Fixes token pricing in PayEmbed -
#7234
4e93539
Thanks @MananTank! - Fallback to insight response if RPC request fails in ERC721 & ERC1155getNFTs
extension -
#7241
38627d3
Thanks @joaquim-verges! - Handle smart account detection for inApp and ecosystem wallets
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
[email protected]
Patch Changes
-
#7225
3edbe28
Thanks @gregfromstl! - Fix use of purchaseData in payment links -
#7220
4fed9f4
Thanks @joaquim-verges! - Update token price APIs to query from insight -
Updated dependencies [
4fed9f4
]:- @thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@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]