Skip to content

Releases: thirdweb-dev/js

[email protected]

31 May 11:00
8abf3cc
Compare
Choose a tag to compare

Patch Changes

  • #7240 ad8cc9a Thanks @joaquim-verges! - Add Bridge.tokens() function to retrieve supported Universal Bridge tokens

    New 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 & ERC1155 getNFTs extension

  • #7241 38627d3 Thanks @joaquim-verges! - Handle smart account detection for inApp and ecosystem wallets

@thirdweb-dev/[email protected]

31 May 11:00
8abf3cc
Compare
Choose a tag to compare

[email protected]

30 May 17:21
913b243
Compare
Choose a tag to compare

Patch Changes

@thirdweb-dev/[email protected]

30 May 17:21
913b243
Compare
Choose a tag to compare

@thirdweb-dev/[email protected]

30 May 17:21
913b243
Compare
Choose a tag to compare

Patch Changes

@thirdweb-dev/[email protected]

30 May 17:21
913b243
Compare
Choose a tag to compare

Patch Changes

[email protected]

29 May 20:36
0299034
Compare
Choose a tag to compare

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 label

      import { 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 wallets

      import { 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

[email protected]

29 May 18:15
89e6af6
Compare
Choose a tag to compare

Patch Changes

@thirdweb-dev/[email protected]

29 May 20:36
0299034
Compare
Choose a tag to compare

@thirdweb-dev/[email protected]

29 May 18:15
89e6af6
Compare
Choose a tag to compare